NASLite Network Attached Storage

www.serverelements.com
Task-specific simplicity with low hardware requirements.
It is currently Thu Mar 28, 2024 9:21 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Mon Jul 07, 2008 6:32 pm 
Offline

Joined: Sat Mar 29, 2008 4:52 pm
Posts: 7
I am lost.

For clarity purposes: My current hardware configuration is as follows: 1 gightz PIII, 1 gig Ram, EIDE CF to IDE Adapter with 128 Meg CF card, Adaptec 2610SA, 3 500Gig SATA drives, CDROM, Floppy

My Problem:
I need to add drives to my Adaptec 2610SA card (OEM HP). I already have an array established and in use under a RAID 5 array of three drives. The Card is a 6-port card. I have added 2 more identicle drives to the card. Using the bios setup utilility I have formated and initialized the drives. Here is the problem. The bios setup utility does not appear to handle the expansion of the array. To be clear, I am NOT trying to create a second array, but to expand my current. This card does support O.C.E. (online capacity expansion) so it should be possible for me to add drives without loosing data. I have spent all day googling this issue and I found reference to a Raid utility called "adaptec storage manager" to handle this expansion. Does anyone know how I go about running this utility on my Naslite?

I might be completely off track. Is anyone familiar with how I would go about this expansion?

If I had the room elsewhere on my network, I would just move the data off and then delete and re-create the array but this is not an option. I have backed up the critical data on this array so it wouldn't be a complete disaster to loose the data, however, loosing anything would be a pain :( .

I am stuck. Please help.


Top
 Profile  
 
PostPosted: Mon Jul 07, 2008 7:49 pm 
Offline
Site Admin

Joined: Tue Jul 13, 2004 4:01 pm
Posts: 801
Location: ServerElements
You'll have to expand the raid outside of NASLite.

Here's my response on this from a previous post :
http://www.serverelements.com/forums/viewtopic.php?f=8&t=1050

Google should be able to help you find the information you'll need, I've never personally tried it.


Top
 Profile  
 
PostPosted: Tue Jul 08, 2008 12:43 pm 
Offline

Joined: Sat Mar 29, 2008 4:52 pm
Posts: 7
Thank you for the prompt answer. I am mulling over the information I have read from your post and from the other cited post.

I am a Noob when it comes to linux, but obviously I am a bright guy (if for no other reason because I chose this fantastic Naslite :) )

Here is what I am mulling over:

Ralph wrote:
You'll have to expand the raid outside of NASLite.



Ralph wrote:
Concerning OCE and NASLite.

NL2 see's the raided drives as one logical drive, essentially what you'll have to do is add a drive thru your hardware card (provided it supports OCE) and then manually use GNU Parted (Linux Rescue CD) to expand the existing logical partition.

There is no way for NL2 to do this automatically, in fact this is the precedure Dell suggests for expanding their linux based hardware raid servers.

So, yes, it will work, but not automatically.


Here is the steps I infer from these answers:
1.) I will boot the nas-machine using the "Linux Rescue Disk"
2.) I will run the "Adaptec Storage Manager" (linux version) to communicate with the card and to utilize the cards ability to do OCE.
3.) I will run a program from the Linux Rescue Disk called "GNU Parted" to manually expand the existing logical partition so Naslite will see the change.
4.) reboot to naslite.

Does this sound right?

Thanks in advance.


Top
 Profile  
 
PostPosted: Thu Jul 10, 2008 9:37 pm 
Offline

Joined: Sun Aug 07, 2005 7:50 am
Posts: 149
I have wondered the same thing but have been afraid to try it. I have 3 drives in RAID 5 and would like to add 1 or 2 more. I was planning on backing up the RAID and then add drives and recreate it. If you get the expansion to work I might try it.


Top
 Profile  
 
PostPosted: Fri Jul 11, 2008 10:57 am 
Offline

Joined: Sat Mar 29, 2008 4:52 pm
Posts: 7
I promised myself that I would post a very detailed report of how I resolved my issue here, especially after loosing two days of computing time to it. This post is specifically for the HP (or Dell) OEM Adaptec 2610SA Raid 6 port Adapter but may help others with other Adaptec cards or other OCE (Online Capacity Expansion) issues with Naslite (or any other OS that is extremely dedicated). Now a disclaimer: I am not a guru of any kind, I am a highly skilled and competent bookkeeper (lol). What follows worked for me and took me forever to figure out.

The Adaptec adapter has built in utilities in its bios, however, they relate to formatting, initializing hard drives, creating NEW arrays, etc. The bios utilities for this card does not handle the OCE tasks. With the Adaptec adapter you use a program called the “Adaptec Storage Manager” to handle this. I am not sure with other cards but I am guessing that using a separate OEM Raid Utility might be standard. Naslite is an extremely dedicated OS (installed at 5 Megs on the hard drive) so running a program from it is not possible. Therefore, you need to boot into another operating system on your Naslite machine to run any applications/software.

Setup your new drives: Connect the drives. Enter the Raid Bios and format (if needed) and initialize the drives.

Choosing an OS:
What direction I took was finding a “Live CD” of a Linux Distro. This is very foreign for me. I have been using Microsoft OSs since Dos 5. I did use a bit of unix in my college days but to say I know anything at all is a stretch. While writing this, I searched for Windows Live CD’s and found one http://www.ubcd4win.com/ (dangit that might have made things easier for me).

I downloaded and played with briefly the SUSE KDE Live CD, and a LinuxSystem RescueCD, but I ended up actually using Fedora 9 (not for any particular reason). The following follows fedora. Download from http://fedoraproject.org/get-fedora. Look under the section “Fedora Desktop Live Media” and choose the “i686” “Direct Download” link. Burn it to CD.

Boot your Naslite box with the CD. Just wait it out and you will have a GUI environment eventually. I am not sure about hardware requirements for these live CD’s so if you might have a problem look towards the Linux System Rescue CD http://www.sysresccd.org/Main_Page which boots directly to a command line but you are on your own from here on out… however I am sure you can follow the below to some degree.

For some reason you are not automatically able to use the cdrom with these live CD’s. It might be because they have to be “mounted” or because the LiveCD always needs to be in the drive (I don’t know and don’t care). So don’t count on being able to see the cdrom drive automatically. You should be able to see your Raid array (since linux has a lot of drivers built into the Kernal) so if you want you can download the below programs to your NAS before embarking. However, you can just download the following stuff using the browser provided on the LiveCD OS. Note: you will be working in a RAM disk with the LiveCD so any programs you install or things you download will disappear on a reboot so you will note that I often say to copy it to your physical disk after download.

Now we need to download the Raid Utility that we are going to use. http://www.adaptec.com/en-US/support/raid/ however (after four different Storage Manager versions later) it finally occurred to me that I needed the HP Raid Utility to work with the 2610SA. For HP you can find it here: http://h20000.www2.hp.com/bizsupport/Te ... a958345e26 . If that link does not work search the HP site under Support and Drivers section “HP Raid Controller.” You are looking for the “HP SATA RAID Controller Manager for Linux (x86)” If you run into problems downloading from the Adaptec Site because of serial numbers of your card, you can find logins at the bugmenot website :). When you get it down. First save it to your physical harddrive and then copy it to the fedora desktop. Rename the file to “StoreMan” The renaming works just like windows. All the renaming indicated is for simplification later when we use it in the command line.

Using the Browser, download the following ‘rpm’ that is needed by StorMan to install. Go to http://rpm.pbone.net and do a search for the following: 1) “libstdc++-libc6.2-2.so.3” You will need the one which is Fedora as close to 9 as you can get. Here is a link to the version I used: http://rpm.pbone.net/index.php3/stat/4/ ... 6.rpm.html . Now after the download rename the file to “libst.rpm”. Save it (copy and paste) to the desktop and to the physical harddrive (your Raid drive) 2) Now search for “libXp” Again getting the one which is Fedora and as close to version 9 as you can get. Here is a link to the version I used: http://rpm.pbone.net/index.php3/stat/4/ ... 6.rpm.html . Again like before rename it to "libXp.rpm" and save it on the desktop and physical drive.

In the menus of the GUI, find the "Terminal" program and type the following commands without quotes and remember that Linux is case sensitive so type as is shone.

1) “su -” (this puts you as the ‘root’ user – like administrative I guess)
2) “rpm -i /home/fedora/Desktop/libst.rpm” (installs a library StorMan needs)
3) “rpm -i /home/fedora/Desktop/libXp.rpm” (so StorMan will run)
4) “rpm –Uvh /home/fedora/Desktop/StorMan.rpm” (installs Storage Manager)
5) “chmod +x /usr/StorMan/StorMan.sh” (not sure if this is needed but I did it)
6) “/usr/StorMan/StorMan.sh” (starts the program) if you get an error loading the program at this point, try to fix it with a search on http://rpm.pbone.net if it gives you something specific or google it.

If everything goes well you will load into the Storage Manager Program. You should see your adapter. If it isn’t present then you need to try a different StorMan. You could go through a process of uninstalling but it is just easier to reboot into fedora again. I don’t think I need to explain the details of using the Storage Manager since it is pretty easy from this point. When I expanded my logical drive to include 2 more it took about 33 hours for this “reconfiguration” to take place in the Storage Manager program. That is from (3) 500 gig harddrives Raid 5 (931 Gigs of Space with 866 Gigs of data - if it matters) adding (2) 500 gig harddrives moving total space to 1.82 TB.

Reboot into Naslite and your good to go with the drives optimized for use.

I am sure there are far easier ways to approach this but this is the method I used. I just hope that for my efforts someone else benefits.

*****SEE PART 2 BELOW*****


Last edited by ssttuuky on Wed Jul 16, 2008 12:23 pm, edited 2 times in total.

Top
 Profile  
 
PostPosted: Fri Jul 11, 2008 2:46 pm 
Offline

Joined: Fri Jan 12, 2007 4:27 am
Posts: 577
Location: Scotland
Many thanks for the guide - I will use it when I attempt to add drives to one of the arrays on my 21610SA.


Top
 Profile  
 
PostPosted: Wed Jul 16, 2008 12:14 pm 
Offline

Joined: Sat Mar 29, 2008 4:52 pm
Posts: 7
*****CONTINUED*****

viewtopic.php?f=5&t=2580&p=13341#p13341

I started this above post to resolve a problem I encountered. Really it boils down to newbie because Ralph said it pretty clearly in this quote (although it was over my head at the time :) )

Ralph wrote:
Concerning OCE and NASLite.

NL2 see's the raided drives as one logical drive, essentially what you'll have to do is add a drive thru your hardware card (provided it supports OCE) and then manually use GNU Parted (Linux Rescue CD) to expand the existing logical partition.

There is no way for NL2 to do this automatically, in fact this is the precedure Dell suggests for expanding their linux based hardware raid servers.

So, yes, it will work, but not automatically.


I didn't understand what he was referring to and had to learn the hard way. If you don't manually expand the the existing partition/filesystem, your naslite doesn't have access to the expanded array and you run out of space ;). Solution: you need to use an application to resize your partition and file system so that Naslite has access to it. (for a clearer explanation view the link at the beginning of this post).

Now the problem. After googling the issue and reading the use of GNU parted (open source CLI application that will allow you to resize the partition and file system), I found that this solution was too complex/abstract. If you want to see some details on using the commands for GNU Parted look here http://www.dell.com/content/topics/glob ... 03_michael . I already had access to the app on the "Linux Rescue Disk" that I had downloaded and burned above (although I didn't use it in my previous need). I almost used "Magic Disk" but decided that using a paid program would not help the typical person so I wanted to stay with an open source solution. I found Gparted (basically a GUI version of GNU parted).

Download Gparted Live CD from http://gparted.sourceforge.net/livecd.php. Burn to CD and boot it in Nas computer. You will have to hit enter a couple of times to get completely booted into the GUI (choosing keyboard/language, etc. just hit enter). Once there it should be pretty easy to use. You can reference this fantastic tutorial http://www.howtoforge.com/partitioning_with_gparted if you want to get a feel for the program before you begin. But here are some simple instructions to follow once you have booted into Gparted: 1) click the menu "GParted" then the submenu "Devices" and switch to the /dev/sda device 2) Right Click on your main partition and click resize from the menu. Using the arrow indicator at the top drag the partitions size from current to maximum. Click OK. Now hit the "apply" button in the main program. The resize operation took a little over four hours to accomplish. Remember I am increasing the size by 1T. Reboot into Naslite and you are good to go.

Have fun,
ssttuuky


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group