<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>Nosbig.net &#187; Samba</title>
	<atom:link href="http://www.nosbig.net/category/technology/linux/samba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nosbig.net</link>
	<description>Like my life, in a perpetual state of construction...</description>
	<lastBuildDate>Sat, 06 Aug 2011 07:38:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<!-- podcast_generator="Blubrry PowerPress/2.0.4" -->
	<itunes:summary>Like my life, in a perpetual state of construction...</itunes:summary>
	<itunes:author>Nosbig.net</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.nosbig.net/wp-content/plugins/powerpress/itunes_default.jpg" />
	<itunes:subtitle>Like my life, in a perpetual state of construction...</itunes:subtitle>
	<image>
		<title>Nosbig.net &#187; Samba</title>
		<url>http://www.nosbig.net/wp-content/plugins/powerpress/rss_default.jpg</url>
		<link>http://www.nosbig.net/category/technology/linux/samba/</link>
	</image>
		<item>
		<title>Learning from Broken Equipment and Minor Mistakes</title>
		<link>http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/</link>
		<comments>http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 16:32:36 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=321</guid>
		<description><![CDATA[A few days ago, I noticed that websites were loading very slowly, particularly in the early stages.  It appeared as if there were problems with the DNS service being provided by my internal storage server.  I tried to SSH into &#8230; <a href="http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I noticed that websites were loading very slowly, particularly in the early stages.  It appeared as if there were problems with the DNS service being provided by my internal storage server.  I tried to SSH into the machine to do some investigation and access the Webmin web interface; neither option worked.  However, I was able to receive replys to pings sent to the server.  I knew something was up, but I would have to dig in to figure out exactly what.</p>
<p><span id="more-321"></span></p>
<p>After seeing these symptoms and a machine that is totally unresponsive, I chose to blindly reboot the machine, as I was running the server headless.  Not something I would <strong>ever</strong> do in a production environment, but it&#8217;s my home server.  After a reboot, the server wouldn&#8217;t even respond to ping requests, and I saw in my router that it had not registered its DHCP lease upon boot.  My obvious next step was to connect a monitor to this machine and actually see what was going on.  As I moved the machine around to plug in the monitor cable, I noticed that the steel case was warm (borderline hot, in fact) to the touch.  Once the monitor was connected, I immediately saw the root of the problem.  I was staring at a BIOS screen telling me the boot drive had failed.</p>
<p>Knowing what the problem was made for a clear path for recovering.  I located a replacement IDE hard drive and swapped it into the case and reloaded a stock installation of Debian 6, Squeeze.  Recreating the basic installation was no problem, and I added Webmin back onto the system.  Fortunately, I had no user data on the orignal hard drive, and I had kept the data volume in its own volume group, to avoid problems like this, should they ever come up.  The only parts of the configuration that were located on the original drive were mounting, NFS, Samba, and DNS configurations.  On the other hand, I had not gotten around to backing up that configuration to another machine to avoid such a problem.  ;-)</p>
<p>After getting a new boot drive with an OS on it, I moved to getting the data volume up and running.  Based upon <a title="A Weekend Project" href="http://www.nosbig.net/a-weekend-project/">my previous post</a>, the data lives inside of a LVM logical volume on top of a physical RAID1 array.  Since I was simply trying to locate and re-enable an existing array, I ran: &#8220;mdadm &#8211;assemble &#8211;scan&#8221; which found the two partitions in the RAID1 and activated them.  Since they had not been touched in quite some time, no resync was even necessary.</p>
<p>The next step was to locate and reactivate the logical volume so that I could actually mount and use the data stored on the volume.  I ran each of the LVM *scan commands, &#8220;vgscan&#8221;, &#8220;pvscan&#8221;, and &#8220;lvscan&#8221; to confirm the metadata had been preserved.  Everything looked good, so I just had to reactivate the volume with the &#8220;vgchange -y a&#8221; command, which tells LVM to activate all available volume groups and logical volumes.  I was finally able to mount the data drives and verify that all of the expected data was there.</p>
<p>Now that the data drives were healthy, I had to finish recreating the lost configurations.  I added a permanent entry in /etc/fstab to mount the volume at boot, along with my NFS exports.  Also, I added the local users to the system and gave Samba passwords.  My only time-consuming task was to re-enter the forward and reverse DNS entries for my internal machines and set the DNS forwarders.</p>
<p>Now that the configuration was back to where I wanted it, I took the extra step of using Webmin&#8217;s backup module to export all of the configuration information from the system to my laptop.</p>
<p>Once I really knew what was hapenning, the fix really didn&#8217;t take that long.  I spent about 4 hours between loading the OS, reactivating the data drives, and getting the local services set back up again.  With the added knowledge of RAID and LVM recovery in Linux, as well as configuration backups, it would probably only take about an hour; most of that time would be waiting on the OS to install to the drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Weekend Project</title>
		<link>http://www.nosbig.net/a-weekend-project/</link>
		<comments>http://www.nosbig.net/a-weekend-project/#comments</comments>
		<pubDate>Fri, 13 May 2011 14:19:22 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=294</guid>
		<description><![CDATA[This weekend, I finished the bulk of the work of a long-standing project I had been pondering. I had all sorts of data lying around on my desktop machine that I didn’t want to lose. Photos, videos, school assignments, and &#8230; <a href="http://www.nosbig.net/a-weekend-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This weekend, I finished the bulk of the work of a long-standing project I had been pondering. I had all sorts of data lying around on my desktop machine that I didn’t want to lose. Photos, videos, school assignments, and the like. I wanted to be able to back up multiple machines and be able to synchronize my documents, especially while I was using my laptop. Knowing what I wanted to do, and being the IT control freak I am, I chose to build out a home storage appliance. I thought I would share my build process.</p>
<p><span id="more-294"></span></p>
<p>The hardware you can use for this project is fairly straightforward. I used a hodgepodge of parts I had laying around. I used:</p>
<ul>
<li>Case: older Antec case</li>
<li>Motherboard: Mini-ITX M10000N small form-factor motherboard, nearly everything integrated</li>
<li>System Hard Disk Drive: IDE drive I had lying around, 30 GB</li>
</ul>
<p>I had the bulk of what I needed for the project, but I still needed the drives and a way to attach them to the motherboard. I ordered:</p>
<ul>
<li>2 SATA hard drives, 1TB, from <a title="NewEgg" href="http://www.newegg.com">NewEgg</a></li>
<li>SATA Host-Bus Adapter to add SATA ports to the system from <a title="Deal Extreme" href="http://www.dealextreme.com/p/silicon-image-4-port-sata-pci-expansion-card-4660">Deal Extreme</a></li>
<li>Assorted SATA data and power cables from <a title="MonoPrice" href="http://www.monoprice.com">MonoPrice</a></li>
</ul>
<p>Once all the parts arrived, I started my build. For anyone who has built a computer or replaced parts knows how simple the build really is. The motherboard is mounted into the case, along with the drives. The SATA card is placed into this motherboard’s PCI slot, and the cabling is connected. About an hour later (I removed a VERY old motherboard from this case.), I had the system built and ready for the software for the project.</p>
<p>Several distributions of free software could manage both the storage array and the services designed to present the array to the rest of the network. I chose to use a stock installation of <a href="http://www.debian.org">Debian</a> 6.0 stable, with as few packages installed as possible, to keep the bloat down. Of the specific software that I made sure to have installed was the SSH server, NFS file sharing services, and Samba file sharing services. After I installed Debian, I manually installed&nbsp;<a href="http://www.webmin.com">WebMin</a> to provide a web interface for configuring everything.</p>
<p>First business is to create the array from the SATA disks. I used the cfdisk utility at the command-line to create a single partition over the entire drive, using a partition type of DA, which is listed as a Non-FS data partition. I then repeated the procedure for the second disk. Next, I used the webmin panel to create a RAID1 array (/dev/md0) with both of the disks. After I had the array, I created a new LVM volume group to contain the data array. Creating the volume group in Webmin requires a physical volume to be added to the newly created volume group; I chose the RAID array. Finally, I created an ext4 filesystem and waited for the disks in the array to sync. The synchronization process took roughly eight hours.</p>
<p>The next day, I used webmin to create some SMB shares and NFS filesystems. These will allow my Linux machines to use&nbsp;the data as if it were local and give access to the couple of Windows-centric devices available on my network.</p>
<p>With two fairly short days, and some waiting for disk synchronizing, my file storage device is complete. I am in the process of copying my data from my unreliable desktop to the device as we speak. Among my future improvements and enhancements to the configuration will be a tweaking the mounts and setting up a dedicated space for each user, instead of&nbsp;just a single wide-open storage space. &nbsp;From the hardware side, I eventually will upgrade to a hot-swap carriage from <a title="IcyDock" href="http://www.icydock.com/goods.php?id=128">IcyDock</a>. &nbsp;I can also add up to two more hard drives to the existing card. &nbsp;As long as the drives are at least 1TB, I can expand the existing RAID1 into a RAID5. &nbsp;If the drives are larger, I will create one partition as large as the partitions on the original drives. &nbsp;I can then create a new partition for the rest of the new drives and create a new array. &nbsp;This is, to the best of my knowledge, is the way the Drobo allows for expanding storage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/a-weekend-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RCHFH Network</title>
		<link>http://www.nosbig.net/rchfh-network/</link>
		<comments>http://www.nosbig.net/rchfh-network/#comments</comments>
		<pubDate>Thu, 07 Mar 2002 20:38:47 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://localhost/~nosbig/website/?p=49</guid>
		<description><![CDATA[Things got a little interesting today as I was trying to set up the network for RCHFH. The major problem was that the two clients I was running could ping each other, but not the server. I suspected a cable &#8230; <a href="http://www.nosbig.net/rchfh-network/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Things got a little interesting today as I was trying to set up the network for RCHFH.</p>
<p>The major problem was that the two clients I was running could ping each other, but not the server.  I suspected a cable or simple configuration problem, but I tried to ping from the server to the clients, and that worked.  I knew it wasn&#8217;t the cable.</p>
<p>Next, I tried examining the IP configuration of the clients.  All looked normal.</p>
<p>Finally, it dawned on me that I had set up a firewall at one point through the Mandrake Control Cent<br />
er.  I took down the ethernet interface and flushed the chains from iptables.  That wasn&#8217;t successful, so I took eth0 down again and removed the iptables kernel modules entirely.  A quick ping later, and I was in business.</p>
<p>Now, the connectivity is restored; Samba actually logged me onto multiple machines and allowed me to connect to the server with the shares that I had set up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/rchfh-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba/Network for RCHFH</title>
		<link>http://www.nosbig.net/sambanetwork-for-rchfh/</link>
		<comments>http://www.nosbig.net/sambanetwork-for-rchfh/#comments</comments>
		<pubDate>Thu, 28 Feb 2002 03:41:49 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://localhost/~nosbig/website/?p=48</guid>
		<description><![CDATA[Over the last week or so, I have been putting together a network for the Richland County Habitat for Humanity. Today, I configured Samba to allow for storage of the critical files on their network to occur on the server &#8230; <a href="http://www.nosbig.net/sambanetwork-for-rchfh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Over the last week or so, I have been putting together a network for the <a HREF="http://www.richland-habitat.org">Richland County Habitat for Humanity</a>.</p>
<p>Today, I configured Samba to allow for storage of the critical files on their network to occur on the server instead of their Windows 9x clients.  I was able to use smbclient on the server and get logged in and browsing around with that.</p>
<p>So far, no actual network gear has been donated or purchased, but I hope that will come soon.  A few more phone calls will have to be made, and then a decision as to where to make our purchases (Staples <img src='http://www.nosbig.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/sambanetwork-for-rchfh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

