<?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/"
	>

<channel>
	<title>Cyberward.net &#187; Building a NAS</title>
	<atom:link href="http://www.cyberward.net/blog/tag/nas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberward.net/blog</link>
	<description>The Drive Failures and Shutter Clicks of Christopher Ward</description>
	<lastBuildDate>Mon, 03 Oct 2011 13:00:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sent back the ReadyNAS</title>
		<link>http://www.cyberward.net/blog/2009/09/sent-back-the-readynas/</link>
		<comments>http://www.cyberward.net/blog/2009/09/sent-back-the-readynas/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 19:44:07 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[ReadyNAS]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=1514</guid>
		<description><![CDATA[I am so done with anything to do with hard drives.¬† I am starting to want to stop doing anything that deals with creating files that take up lots of space and need to be backed up. (ie photography) But I know this is just &#8220;resistance&#8221;. (I have been reading &#8220;War of Art&#8221;, but that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-1499" title="readynas" src="http://www.cyberward.net/blog/wp-content/uploads/readynas-150x150.jpg" alt="readynas" width="150" height="150" />I am so done with anything to do with hard drives.¬† I am starting to want to stop doing anything that deals with creating files that take up lots of space and need to be backed up. (ie photography) But I know this is just &#8220;resistance&#8221;. (I have been reading &#8220;War of Art&#8221;, but that is another post coming up)</p>
<p>I gave up and sent the ReadyNAS back to NewEgg. I spent two long nights fighting with something that I thought was a plug and play device.¬† First, my drives were not recognized. Actually, the first of the three was, no matter which of the three I put in the first slot. Technically, the other two would appear as functioning drives, but on the volumes tab, where you specify drives, raid settings, and volume info, only the first would appear.</p>
<p>I first tried to upgrade the firmware, thinking there might be something flaky going on there. That took everything south. Couldn&#8217;t boot. Then tried to do TFTP boot, and a USB boot, but neither worked. It&#8217;s packed up and ready to ship to NewEgg. At least they didn&#8217;t give me any hassles. I am getting a replcaement, so the saga will continue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/09/sent-back-the-readynas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating LVM Virtual Drives</title>
		<link>http://www.cyberward.net/blog/2009/06/creating-lvm-virtual-drives/</link>
		<comments>http://www.cyberward.net/blog/2009/06/creating-lvm-virtual-drives/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 12:00:50 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=1361</guid>
		<description><![CDATA[Now that we have a raid array created, we are going to create some virtual drives. Why virtual drives? Well, we have one large terabyte drive right now, and if we just put folders in there, it can quickly get cumbersome. You have no control on size of those folders, and permissions can be more [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1362 alignnone" title="driveicons" src="http://www.cyberward.net/blog/wp-content/uploads/driveicons.png" alt="driveicons" width="430" height="112" /></p>
<p>Now that we have a raid array created, we are going to create some virtual drives. Why virtual drives? Well, we have one large terabyte drive right now, and if we just put folders in there, it can quickly get cumbersome. You have no control on size of those folders, and permissions can be more difficult. And if you try to share this drive, you can&#8217;t assign different drive letters in windows to different folders, just one to the drive. One other issue is file system. I am going to use just a basic file system here, but in the past I have created different file systems based on the type of use ie. large video files, small text files, etc. Making those decisions is beyond the scope of this tutorial, and I have decided that for my purposes now, it doesn&#8217;t matter that much. You can decided differently.</p>
<p>What we will discuss is using LVM. This enables you to set up virtual drives that can contain different file systems, and that can be grown and shrunk (usually) to fit the space needs of the system. We will look at maintenance of these file systems at a later tutorial. Here we will create a backup, and a pictures virtual drive. We will not use the full terabyte of space, so that we can grow these as needed, or add another for say music at another time.</p>
<p>I will once again be doing this on an ubuntu system, but the use of these tools is fairly standard across linux distributions.<br />
<span id="more-1361"></span><br />
First we will need to make sure that you have LVM installed.</p>
<pre class="linux">sudo apt-get install lvm2</pre>
<p>We need to create what is called a physical volume. We need to tell LVM what actual physical drives are involved. Lets check what drives we have again.</p>
<pre class="linux">$ sudo fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      121601   976760001   fd  Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfe76bc93

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121601   976760001   fd  Linux raid autodetect</pre>
<p>This is just a partial list of the drives. See that the /dev/sda1 and /dev/sdb1 drives have a system type of fd. In the last part of teh tutorial we set up software raid. If you are NOT using raid, you will need to add these devices to your physical volume. For us, we are going to add /dev/md0 that we created last time. Lets just verify that the array is there.</p>
<pre class="linux">$ sudo mdadm --detail --scan
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=00.90 UUID=****</pre>
<p><em>Note: all UUID&#8217;s will be replaced with **** in this doc. They will be different on every machine anyway.</em></p>
<p>As you can see, array /dev/md0 is ready to go. Lets create that physical volume finally.</p>
<pre class="linux">sudo pvcreate /dev/md0</pre>
<p>You can verify that it is created with the pvdisplay command.</p>
<pre class="linux">$ sudo pvdisplay
  "/dev/md0" is a new physical volume of "931.51 GB"
  --- NEW Physical volume ---
  PV Name               /dev/md0
  VG Name
  PV Size               931.51 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               ****</pre>
<p>Now we need to create our volume group. That last step identified what hardware LVM has available. This next step groups that hardware into volume groups. I will call my &#8220;nas&#8221;.</p>
<pre class="linux">sudo vgcreate nas /dev/md0</pre>
<p>We can then verify our volume group.</p>
<pre class="linux">$ sudo vgdisplay
  --- Volume group ---
  VG Name               nas
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               931.51 GB
  PE Size               4.00 MB
  Total PE              238466
  Alloc PE / Size       0 / 0
  Free  PE / Size       238466 / 931.51 GB
  VG UUID               ****</pre>
<p>Next, we can finally create our virtual drives. I am going to create a backup drive of 100 gig, and a pictures drive of 400 gig, both which are added to the &#8220;nas&#8221; volume group. You can create drives of what ever size you would like.</p>
<pre class="linux">sudo lvcreate --name backup --size 100G nas
sudo lvcreate --name pictures --size 400G nas</pre>
<p>You can see information about these virtual drives with another display command. Guess what it is.</p>
<pre class="linux">$ sudo lvdisplay
  --- Logical volume ---
  LV Name                /dev/nas/backup
  VG Name                nas
  LV UUID                gqrIVE-YtS4-cBne-QyPK-oMO1-7V7V-UaBoUL
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                100.00 GB
  Current LE             25600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0

  --- Logical volume ---
  LV Name                /dev/nas/pictures
  VG Name                nas
  LV UUID                oDxJJi-lxsG-9RHw-RBME-oJah-jOJJ-J8I4p3
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                400.00 GB
  Current LE             102400
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1</pre>
<p>Now that we have our virtual drives, can we start filling them up? Not quite. We need partitions on them. These drives are just like a bare drive from the factory. We can put whatever file system we want on them. I am just going to use ext3. This may not be the best file system out there, but it is proven, and works good enough for me.</p>
<pre class="linux">sudo mkfs.ext3 /dev/nas/backup
sudo mkfs.ext3 /dev/nas/pictures</pre>
<p>That takes a little bit of time, just as would without LVM. As far as your programs, and bash, and Gnome are concerned, /dev/nas/backup is just another drive. It does not care, and does no know that underneath all this is a raid array and virtual drives.</p>
<p>Now we need to get them mounted so that they are useable. First off, I create a couple of mount points. I like to keep them organized.</p>
<pre class="linux">sudo mkdir /var/nas
sudo mkdir /var/nas/backup /var/nas/pictures

sudo mount /dev/nas/backup /var/nas/backup
sudo mount /dev/nas/pictures /var/nas/pictures</pre>
<p>Now, do a &#8220;df&#8221; to see the drives on the system and the space used.</p>
<pre class="linux">$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdd1            186693520   2469660 174740292   2% /
/dev/mapper/nas-backup
                     103212320    192248  97777192   1% /var/nas/backup
/dev/mapper/nas-pictures
                     412849328    203156 391674652   1% /var/nas/pictures</pre>
<p><em>Note: I removed other system file systems that we are not talking about here.</em></p>
<p>You can see that our two drives are there. They are listed at /var/mapper/nas-backup and /var/mapper/nas-pictures, but they are the /dev/nas/backup and /dev/nas/pictures we have been setting up.</p>
<p>Now you can copy your data into these drives.</p>
<p>I am not the only one that uses these drives, and they will be shared on samba (later tutorial) so I like to change the permissions on these folders. I will create a &#8220;nas&#8221; group, add myself (insert your user id for *user*), and change the permissions.</p>
<pre class="linux">sudo groupadd nas
sudo adduser *user* nas
sudo chown -R *user*:nas /var/nas/backup
sudo chown -R *user*:nas /var/nas/pictures</pre>
<p>The file permissions are set up as writable by owner and readable by group and other. I will leave them this way for now.</p>
<p>Things look good to go, and they would for awhile, until you reboot. Then your drives would disappear. We need to make them a little more permanent. We do this by putting some entries in the /etc/fstab file. This is the list of all mountable file systems that the OS uses to connect things up when booting.</p>
<p>This file in Ubuntu is using UUID&#8217;s, so we will to. First thing you need to do is find out what yours are. So&#8230;</p>
<pre class="linux">
$ sudo blkid
/dev/sdc1: UUID="****1" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdd1: UUID="****2" TYPE="ext3"
/dev/sdd5: TYPE="swap" UUID="****3"
/dev/sda1: UUID="****4" TYPE="mdraid"
/dev/sdb1: UUID="****5" TYPE="mdraid"
/dev/md0: UUID="****6" TYPE="lvm2pv"
/dev/mapper/nas-backup: UUID="****7" TYPE="ext3"
/dev/mapper/nas-pictures: UUID="****8" TYPE="ext3"
</pre>
<p>You can see the unique ID&#8217;s that are assigned to the drives in the array, the raid array its self, the LVM physical volume, and finally, the two logical volumes. Use these UUID&#8217;s that you get when you execute blkid. Now lets edit /etc/fstab</p>
<pre class="linux">
$ sudo nano -w /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>
<options>       <dump>
<pass>
proc            /proc           proc    defaults        0       0
# /dev/sdd1
UUID=****2 /               ext3    relatime,errors=remount-ro 0  $
# /dev/sdd5
UUID=****3 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0

#/dev/nas/backup
UUID=****7 /var/nas/backup ext3    relatime,noexec 0 2

#/dev/nas/pictures
UUID=****8 /var/nas/pictures ext3  relatime,noexec 0 2
</pre>
<p>You shouldn&#8217;t have to change anything except add the lines at the bottom for the backup and pictures drives (or whatever you created) . Please use the UUID&#8217;s you found from blkid.</p>
<p>Press ctrl-x to exit nano and save the file. </p>
<p>Try a reboot and see how it works. Once you bring the system back up, open a terminal and type df. This will show you all mounted drives, and your new drives should be there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/06/creating-lvm-virtual-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deciding on the NAS Software</title>
		<link>http://www.cyberward.net/blog/2009/01/deciding-on-the-nas-software/</link>
		<comments>http://www.cyberward.net/blog/2009/01/deciding-on-the-nas-software/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 15:07:17 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=497</guid>
		<description><![CDATA[So, I hope you have a box ready, because we are going to install some software today. I had said this was going to be built using Linux, but we really should take another look at some of the possibilities. I don&#8217;t want to run Windows server on this box. If that is something you [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-501" title="tux" src="http://www.cyberward.net/blog/wp-content/uploads/penguin-150x150.jpg" alt="tux" width="150" height="150" />So, I hope you have a box ready, because we are going to install some software today. I had said this was going to be built using Linux, but we really should take another look at some of the possibilities. I don&#8217;t want to run Windows server on this box. If that is something you are interested in, you will have to use some Google skills. I wan to look at how we can use some Free and Open Source Software (FOSS) to do what we want to do. There are some alternatives to rolling it ourselves, and they are worth a look. But first, lets decide what it is that we want to run on this box, or what capabilities it needs to have.<br />
<span id="more-497"></span></p>
<ul>
<li>Software Raid &#8211; I have two large drives, and I want the data mirrored. If one drive fails, I can replace it without losing my data.</li>
<li>Volume Management &#8211; I have two large drives, but I want it partitioned dynamically. I don&#8217;t just want a great big dumping ground. I want separate locations for music, video, pictures, etc. I don&#8217;t just want to partition these drives and have the sizes set in stone. I want to be able to re-size them as need fits.</li>
<li>Serve files to Windows, Mac, and Linux computers. This generally means I want to be able to run something like Samba and NFS so that other computers can &#8220;see&#8221; my shares.</li>
<li>Users &#8211; I want to be able to have users set up with different permissions.</li>
</ul>
<p>So, with that in mind, what open source software can we find that will fit the bill? There is more than just vanilla Linux out there. There are a few projects that make NAS like software. Lets look at those first.</p>
<ol>
<li><a href="http://www.openfiler.com/">Openfiler</a> &#8211; I had missed this before when looking, but it looks to have all of the required items.</li>
<li><a href="http://www.freenas.org/">FreeNAS</a> &#8211; I have wanted to try this for awhile, but the volume management has been in beta. I can&#8217;t tell for sure if this is still the case or not. It is also¬†BSD based which I am less familiar.</li>
<li><a href="http://www.serverelements.com/">NasLite</a> &#8211; This isn&#8217;t open source, so I am not considering it, but it does seem inexpensive.</li>
<li>Roll Your Own &#8211; This would take a linux distro and add or configure the pieces to create a NAS</li>
</ol>
<p>I would urge you to look into Openfiler or FreeNAS. For this series, it would be pretty short if we used one of them, so we are going to roll our own <img src='http://www.cyberward.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  (I may get to trying and reporting on those others at a different time) Also, if you decide you want to add some other software to those such as a UPnP or iTunes or MythTV or CVS server it is more difficult, or not possible.</p>
<p><img class="alignleft size-full wp-image-503" title="ubuntu" src="http://www.cyberward.net/blog/wp-content/uploads/19586.png" alt="19586" width="154" height="154" />So, we need a linux distro. You really could pick any linux distribution you want, but for this series, I am going to use <a href="http://www.ubuntu.com/">Ubuntu</a>. I used to use Gentoo (for several years), but I find Ubuntu a little easier now, and have switched to using it. Depending on your hardware, you may want to consider their server edition without a desktop, but I am going to install the desktop version. Why? Well, I find it easier to have multiple terminals open I can look at, a web browser to Google what the heck just went wrong, and to check email where I sometimes save notes to myself. If you think I am nuts, go ahead with the server version. You will save yourself some CPU cycles not having Gnome running. I will try to base this series entirely on the command line, so it shouldn&#8217;t matter.</p>
<p>I am not going to cover installing Ubuntu. It is dead simple. If you would like some documentation, Ubuntu has good documentation on <a href="https://help.ubuntu.com/community/GraphicalInstall">installing </a>their software, so I wont try to duplicate it.</p>
<p>Go ahead, install Ubuntu onto the OS drive you have, and next time we will look at¬†Linux Software RAID as a way to provide some data redundancy with the other¬†two¬†drives.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/01/deciding-on-the-nas-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The NAS is still down</title>
		<link>http://www.cyberward.net/blog/2008/12/the-nas-is-still-down/</link>
		<comments>http://www.cyberward.net/blog/2008/12/the-nas-is-still-down/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 04:45:34 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Building a NAS]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=283</guid>
		<description><![CDATA[I got my Western Digital green 1TB drives the other day. That didn&#8217;t work. I got a new power supply, thinking that the new drives just took more power than the old clunker could muster. No luck. Still dead. Not sure what the issue is at the moment. I need more time to troubleshoot. The [...]]]></description>
			<content:encoded><![CDATA[<p>I got my Western Digital green 1TB drives the other day. That didn&#8217;t work. I got a new power supply, thinking that the new drives just took more power than the old clunker could muster. No luck. Still dead. Not sure what the issue is at the moment. I need more time to troubleshoot. The system takes forever to boot, whether it is the existing system disk, or a CD of Ubuntu. It sits there just after a boot logo for a long time. With the drives in, it never gets further. Without them, it eventually continues. I can&#8217;t figure out where it gets stalled. What could be causing this?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/12/the-nas-is-still-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 Terrabytes of Backup Goodness. Maybe.</title>
		<link>http://www.cyberward.net/blog/2008/12/2-terrabytes-of-backup-goodness-maybe/</link>
		<comments>http://www.cyberward.net/blog/2008/12/2-terrabytes-of-backup-goodness-maybe/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 18:27:58 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Building a NAS]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=248</guid>
		<description><![CDATA[It doesn&#8217;t do much good to have any amount of backup if you can&#8217;t use it. Right now, the NAS, where I intended to put them appears dead. Not sure what happened. I powered down, put the new drives in, powered up with the newest Ubuntu server disk, and it dies on the install. Now [...]]]></description>
			<content:encoded><![CDATA[<p>It doesn&#8217;t do much good to have any amount of backup if you can&#8217;t use it. Right now, the NAS, where I intended to put them appears dead. Not sure what happened. I powered down, put the new drives in, powered up with the newest Ubuntu server disk, and it dies on the install.  Now it won&#8217;t start up at all. I get the Ubuntu graphic, then a blinking cursor. I am going to have to pull everything out, and put back pieces until it starts up. Just what I wanted to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/12/2-terrabytes-of-backup-goodness-maybe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Flash and Drives</title>
		<link>http://www.cyberward.net/blog/2008/12/new-flash-and-drives/</link>
		<comments>http://www.cyberward.net/blog/2008/12/new-flash-and-drives/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 17:27:37 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[SB400]]></category>
		<category><![CDATA[SB800]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=185</guid>
		<description><![CDATA[Not a flash drive. A SB800 flash, and two Western Digital 1TB green drives. These should be arriving today via UPS. I am excited to get the SB800. I have a SB400 right now, but I am looking forward to trying out the new flash wirelessly. That will be cool. Also, the head turns better, [...]]]></description>
			<content:encoded><![CDATA[<p>Not a flash drive. A SB800 flash, and two Western Digital 1TB green drives. These should be arriving today via UPS.</p>
<p>I am excited to get the SB800. I have a SB400 right now, but I am looking forward to trying out the new flash wirelessly. That will be cool. Also, the head turns better, there is a pop up bounce card and it will be much easier to gel than the SB400.</p>
<p>The drives were needed. I discovered the other day that both of the raid 1 drives in my NAS were failing. It would appear that the cron job to run <a href="http://smartmontools.sourceforge.net/">smartmon</a> wasn&#8217;t working, and I didn&#8217;t get an email that the drives were failing. Yikes. Almost all of the properties were saying &#8220;old age&#8221;. The drives are only 1.5 years old too. I think part of the problem is that they never spin down. I need to figure out how to get that to happen. I don&#8217;t really need instantaneous access from my NAS, and it does sit idle (except for the drives unfortunately) most of the time.</p>
<p>More on the new toys as I get to use them&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/12/new-flash-and-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No room at the inn</title>
		<link>http://www.cyberward.net/blog/2008/11/no-room-at-the-inn/</link>
		<comments>http://www.cyberward.net/blog/2008/11/no-room-at-the-inn/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 19:50:57 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=148</guid>
		<description><![CDATA[I was uploading pictures to my iMac from my camera when I got a warning from Aperture that my computer was running out of space and that if I didn&#8217;t do something immediately to advert catastrophe, my library would be corrupted. Well, ok, the message wasn&#8217;t that dire, but I was still out of space. [...]]]></description>
			<content:encoded><![CDATA[<p>I was uploading pictures to my iMac from my camera when I got a warning from Aperture that my computer was running out of space and that if I didn&#8217;t do something immediately to advert catastrophe, my library would be corrupted. Well, ok, the message wasn&#8217;t that dire, but I was still out of space.</p>
<p>I just don&#8217;t have the room on my iMac to hold all the data I want there. I was storing it there, then time machine was making a copy on it&#8217;s external drive, then I had two other external drives that I would sync with my pictures (not often enough) and finally I would send my pictures to the NAS so they would be available to anyone on the network. Well, this just isn&#8217;t working anymore, and frankly, creates too many copies of my images.</p>
<p><span id="more-148"></span>I am now in the process of moving all my images off my computer, to use the two external drives (seagate free agent&#8217;s) to hold all my pictures as referenced images. They were already referenced images on the iMac within Aperture. Now, I will have no images (just the library and it&#8217;s previews) on my desktop. I will still need to create a strategy to sync my images to the other drive. Maybe just using rsync.</p>
<p>This will also stop all the images going over to the time machine drive. Then we just have the NAS. I have a problem with this. The original idea was that all the images in the house would exist here so that anyone could see them. The problem with this is that I am now shooting in RAW (or will again once apple updates the RAW converter for the D90). No one else can see them easily. The only ones I really need over there, that anyone else wants, is pictures of the kids. Right now I am thinking of creating an action that takes the images that are rated 3+, getting jpegs, and sending those over. That would be less space. If I did end up loosing the originals, I would still have those jpegs.</p>
<p>The last thing that I am mulling over is off site storage. I have that now by rotating the two free agent drives, and I will continue to do that, but still. I am thinking about some online service to put the photo&#8217;s. But not all of them. Just my real keepers. I only get a couple a week, so that shouldn&#8217;t cost too much. I can&#8217;t use flickr, because I would like to put the raw file up there. I am thinking about Amazon&#8217;s S3 network, but I am not sure how convenient that will be yet.</p>
<p>Ah well, that part can wait I suppose.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/11/no-room-at-the-inn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing a logical volume</title>
		<link>http://www.cyberward.net/blog/2008/09/resizing-a-logical-volume/</link>
		<comments>http://www.cyberward.net/blog/2008/09/resizing-a-logical-volume/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 03:01:28 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=91</guid>
		<description><![CDATA[I backup my photos from an iMac to a Ubuntu linux box with a simple rsync command. rsync --exclude=".*" -ave ssh /my/masters userId@x.x.x.y:/media/pictures This will copy everything new from /my/masters to the backup machine at /media/pictures without copying any &#8220;dot&#8221; files. This also does not delete anything from the new machine. Anyway, I was doing [...]]]></description>
			<content:encoded><![CDATA[<p>I backup my photos from an iMac to a Ubuntu linux box with a simple rsync command.</p>
<pre>rsync --exclude=".*" -ave ssh /my/masters userId@x.x.x.y:/media/pictures</pre>
<p>This will copy everything new from /my/masters to the backup machine at /media/pictures without copying any &#8220;dot&#8221; files. This also does not delete anything from the new machine.</p>
<p>Anyway, I was doing the rsync, but ran out of space on the backup box. A ctrl-z, and now I need to make more space. I am running ext3, so it should be just a few commands. First I unmounted (umount) the filesystems just to be sure. Then :</p>
<pre>lvextend -L +40G /dev/vg/pictures</pre>
<p>This will grow the logical volume by 40 gig. Next we need to resize the filesystem to fill up the space.</p>
<pre>resize2fs /dev/vg/pictures</pre>
<p>I have done this before, but this time I got a message to run e2fsck first.</p>
<pre>e2fsck -f /dev/vg/pictures</pre>
<p>This finished without issue, and I then ran the resize2fs command and it finished after a couple of minutes. Remount the filesystem, a &#8220;df&#8221; and it confirms that there is more space available.</p>
<p>I removed the last file copied to make sure it wasn&#8217;t wrecked somehow, and then kicked off the rsync again. It just picked up where it left off.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/09/resizing-a-logical-volume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New storage needed.</title>
		<link>http://www.cyberward.net/blog/2008/08/new-storage-needed/</link>
		<comments>http://www.cyberward.net/blog/2008/08/new-storage-needed/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 13:06:01 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[Drobo]]></category>
		<category><![CDATA[external drive]]></category>
		<category><![CDATA[Linkstation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ReadyNAS]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=44</guid>
		<description><![CDATA[I am getting tired of my linux based setup. It just doesn&#8217;t work well enough. The biggest issue I have is that everytime it gets powered down (vacation, storm, etc) and comes back up, it doesn&#8217;t quite. I always have to execute some command line magic to get everything recognised. I have tried Gentoo, Ubuntu, [...]]]></description>
			<content:encoded><![CDATA[<p>I am getting tired of my linux based setup. It just doesn&#8217;t work well enough. The biggest issue I have is that everytime it gets powered down (vacation, storm, etc) and comes back up, it doesn&#8217;t quite. I always have to execute some command line magic to get everything recognised. I have tried Gentoo, Ubuntu, Mythbuntu, all with the same issue. I think it is the add in SATA card I have in there, but I don&#8217;t want to swap out more computer hardware this time.</p>
<p><span id="more-44"></span></p>
<p>This time I want something that doesn&#8217;t consume as much power, can be powered on and off easily, is fairly small, I can swap drives on it, does Raid 1 (mirroring), and doesn&#8217;t fry eggs on the top of the case.</p>
<p>Options. Not many. I looked at the <a href="http://www.buffalotech.com/products/network-storage/linkstation/linkstation-pro-duo/">Buffalo Linkstation Pro Duo</a>, but it only ships in a dual drive configuration, and the 2 TB version seems way too expensive (<a href="http://www.amazon.com/dp/B001696ZXA/ref=nosim/?tag=pricegrabber2-elect-20&amp;creative=380333&amp;creativeASIN=B001696ZXA&amp;linkCode=asn">Amazon</a> $510). You get soaked on the drive cost here. The 1 TB version is two 500GB drives for <a href="http://www.amazon.com/1TB-Linkstation-500GB-Raid-Access/dp/B000ZPIMN2/ref=sr_1_1?ie=UTF8&amp;s=electronics&amp;qid=1217595323&amp;sr=1-1">$265</a>. That is $245 to add another TB. (Without subtracting the cost of the other two drives).</p>
<p>I like the looks of the <a href="http://www.netgear.com/Products/Storage/ReadyNASDuo.aspx">Netgear ReadyNAS Duo</a>, and it ships with one drive and one open bay. For 500GB, <a href="http://www.amazon.com/Netgear-RND2150-ReadyNAS-Desktop-Attached/dp/B0013G04AQ/ref=sr_1_1?ie=UTF8&amp;s=electronics&amp;qid=1217595546&amp;sr=1-1">Amazon</a> wants $344, and I would have to replace 2 drives. For the 1 TB version the unit jumps to <a href="http://www.amazon.com/Netgear-RND2110-ReadyNAS-Desktop-Attached/dp/B0013FW8XS/ref=sr_1_3?ie=UTF8&amp;s=electronics&amp;qid=1217595546&amp;sr=1-3">$617</a>. Yikes. I am still 1 TB short of a mirror. Netgear has other 4 bay versions too, but they get even more expensive. Way more.</p>
<p>I suppose there is always the <a href="http://www.drobo.com/Products/drobo.html">Drobo</a>. It is a 4 bay solution. Not exactly a mirror, but some sort of wacky internal proprietary solution that provides redundancy. Amazon has this for <a href="http://www.amazon.com/Drobo-Fully-Automated-Robotic-Storage/dp/B000PDLZ1A/ref=sr_1_1?ie=UTF8&amp;s=electronics&amp;qid=1217596121&amp;sr=1-1">$349</a> with no drives, but I would still need to add the Drobo Share to make it a NAS for <a href="http://www.amazon.com/Droboshare-Network-Attached-Companion-Drobo/dp/B0012MF4G0/ref=pd_bxgy_e_img_b">$195</a>. While a lot of <a href="http://www.scottkelby.com/blog/2008/archives/1410">photographers</a> use this solution tied to one computer, I am not sure I like it as a NAS.</p>
<p>Lets try to add this up. First, drives. Newegg and Amazon&#8217;s stock of 1 TB drives seems to vary quite a bit. You can get Seagate and Western Digital drives from $179 to $240. I will just use $200 for now. Millage will vary. End price is a NAS with 2 TB total.</p>
<ul>
<li>Linkstation 1TB : $265 + 2x$200 = $665</li>
<li>Linkstation 2TB : $510</li>
<li>ReadyNAS 500GB : $344 + 2x$200 = $744</li>
<li>ReadyNAS 1TB: $617 + $200 = $817</li>
<li>Drobo : $349 + $195 + 2x$200 = $944</li>
</ul>
<p>So, it looks like out of the box the Linkstation 2TB was the cheapest after all. I do have some concerns about the Linkstation. The unit needs to be disassembled to replace a drive, and I hear that it is not the fastest device.¬† $500 plus right now sounds like a whole lot of cabbage.</p>
<p>I suppose that trying to find a new motherboard that my existing processor and memory could fit into that would have onboard SATA ports would be another idea to explore. Without the external card, maybe the machine could boot up properly. Still, I think that it uses too much power. Maybe someday I will get a <a href="http://www.amazon.com/P3-International-Watt-Electricity-Monitor/dp/B00009MDBU/h5-20/">Kill-A-Watt</a> and find out for sure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/08/new-storage-needed/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

