Sunday, June 28, 2009

After Near Miss, New RAID is Bliss


As I stated in my previous post, I recently purchased five 1TB drives to expand my home NAS system (a Thecus N5200). I had two ways to set this up:

1. Replace each of my old drives separately, one at a time, with a new drive. Rebuild the RAID with each drive replacement. When all new drives were in and all old ones out, I would click "EXPAND" in the NAS's admin screen and it would use all drive space.

2. Remove all old drives, and replace with all new drives. Build a new empty RAID5 on the new drives. Then copy over all my data from an external backup.

#1 has the advantage of keeping all my data and NAS settings intact during the process, but would take infinitely longer since I would have had to rebuild the entire RAID at least three times, most likely 5.

#2 would be way faster, but would require copying all the data from backup, and the files would not be accessible until the upgrade was complete.

So I chose #2. I didn't want to rebuild the RAID tons of times, when each time could take many hours, if not days.

Now here's the kicker...my backup included everything from the NAS, including NAS system files. I figured copying those back could keep my settings and modules intact.

Long story short...I replaced all drives at once, started copying the files back, and all seemed fine. Until I rebooted the NAS.

After a reboot, I noticed that all the data was there, but it was read-only. I couldn't write any files onto the NAS at all. Plus, all the modules I had installed (like SSH support, FTP server, etc) were showing as installed, but would not work. I couldn't even uninstall and reinstall modules. When I tried, nothing would happen.

I quickly realized that copying the modules back from my backup probably overwrote the proper permissions/ownerships on all those files, causing the NAS not to be able to read them correctly. If I had SSH access into the box, I could fix that, but SSH access was only available as a module. Crap.

Plus, why was it all read-only? Uggg!

Anyway, after resetting to factory defaults, updating the firmware, and other non-successful rescue attempts, I did some research. Luckily, I found a script someone wrote that I could install on the NAS (through the firmware upgrade screen) that would simply rename the old modules database, causing the NAS to create a new empty one. Perfect. This would allow me to reinstall all my modules and get SSH working. (Script is named Renmod and can be found here)

That worked beautifully. Now I was able to SSH in and start changing permissions and such. Well, I changed all the permissions and owners of the data, but the filesystem was still read-only.

So last thing I did was edit each share through the NAS admin. I had to disable the public flag, edit the ACL to add all my users to the share, then re-enable the public flag. That did the trick!

Now I have all my data, tons of space, and a scripted nightly backup to an external 1TB drive connected through the NAS's esata port. Sweet! I'll have to create a How-To at some point to explain how I got the nightly RSYNC to work. It's an interesting bunch of scripts :-)

Thursday, June 25, 2009

Expanding my NAS

For the last few years I've been using a Thecus N5200 NAS storage system. I've been very happy with it, but I've actually underutilized it. It has five drive bays, and I've only ever had three 500GB drives in it running in a RAID 5 configuration. That's a total of just under 1TB of usable space.

Well, the price of hard drive storage has gone way down, and I finally decided to go the distance. I purchased five 1TB Western Digital Caviar Green drives from Amazon for a total of $424.95. Not bad!

Haven't installed them yet, but it will be nice to have 4TB of usable space!

Jenny Craig: Week Twenty Two Results

Yup. Bad week. Gained 1.4 pounds. But I kinda knew that was coming since I ate a lot on Saturday. Good food, great friends...it was worth it! Still down 31.6 total :-)

Sometimes you need these little setbacks to break the monotony and keep you sane. Plus, it's really hard to say no to cheese, guacamole, steak, and brownies!

Wednesday, June 17, 2009

Jenny Craig: Week Twenty One Results

Down another 1.8! So total now is 33 pounds :-) Slowly but surely!

Thursday, June 11, 2009

Jenny Craig: Week Twenty Results

I finally passed the 30 pound barrier! I lost 1.4 pounds this week, bringing my total to 31.2 pounds lost!

Chickenfoot - Tastes Good!

Joe Satriani, Sammy Hagar, Michael Anthony, and Chad Smith have formed a new rock band named Chickenfoot...and it's pretty rockin'! Check out the video of their song "Oh Yeah", then head on over to their site to hear more!


visit chickenfoot.us for more info

Wednesday, June 03, 2009

Jenny Craig: Week Nineteen Results

Woo hoo! Lost 1.8 pounds (one of which I gained last week). Down 29.8 total...geez, should I just say 30? ;-)

Monday, June 01, 2009

Look ma! No hands!

As this video shows, Microsoft unveiled an amazing new technology for its Xbox 360 platform. It's called Project Natal...and it looks amazing! Have a look...

Bing! There it is!


Microsoft's new search engine is actually pretty good! I haven't done side-by-side comparisons with Google yet, but I'm digging the features so far. Image and video searches rock. Nice job, Microsoft!