contributers
quick links
Expanding RAID using Areca
Posted 3:16:03 PM on Thu, 23rd September 2010 by Dj-ZoRt! Image #20

Its extremely easy to expand a RAID set on Areca RAID cards. I have an ARC-1261 - however all the Areca cards have the same interface and use the same management software. Good stuff! Its just a pity there isnt a standard for hard RAID management in linux/freebsd like there is in OpenBSD. Areca is possibly the best raid card for OpenBSD but regardless, a note of warning... these steps may help you on Linux, FreeBSD and Windows but not in OpenBSD.

So yes this is how I have expanded my RAID 5 array in FreeBSD using the areca-cli command line management tool.

There are four steps. Three of which are in the Raid card, the third is OS level

  1. Plug in a new drive. Ideally it should be the same as the other drives in the candidate RAID set. Turn on your computer, assuming it boots to your OS successfully. Go to the command line and run areca-cli then go it your admin password with set password=0000. Now type rsf info and check that your raid array is healthy, that is that the State is Normal. Then check that the new disk is present with disk info. If your raid array isnt optimal and the new disk isnt present... well go fix it :) The new disk should have a Usage of Free
  2. From the two info commands in step 1 you will know the raid set number (left most column of the info output) and the disk number (again, the number in the left most column of the info output). We can now expand the raid set with the following command rsf expand raid=1 drv=13. Noting that raid=1 refers to the raid set not the raid level! So where i have raid=1 you should use the raid set number on your local machine that we found in step 1, and similarly where i have drv=13 you should use your disk number. If you run rsf info again, you will see that the State is now Migrating. This will take some time and you can see the progress as a percentage with vsf info. You can speed it along by increasing the background task priority with sys changept p=3, remember to set that back to 1 (Low) when you're done.
  3. Expand the volume set (more details here)
  4. Expand the partition and filesystem. This is specific to your operating system. I wont provide details here except to say that in freebsd one uses the <em>growfs</em> command, and if you formatted the drive raw rather than slicing/partitioning it (yes you can do that in FreeBSD) then there is no need to worry about enlarging the slice/partition.

It does take some time, but it can continue if you shut down the computer and you can continue to use the file-system while its expanding (albeit more slowly)

comments

None yet!

post a new comment

Alias/Name
Email/Website
Validate
Comment
Rating 0 0.5 1 1.5 2 2.5 3 3.5 4