I first read about on-line Software RAID reshaping a year ago on LWN. Today I tried it on a live system (that's too big to be backed-up first :-))
I added 2 250GB drives to my existing RAID5 array of 4, making for a 1.2TiB array. The reshape took a while...:
But when it was done:
This is one of the reasons why I love software RAID, while you have a kak load more I/O through the PCI(E) bus than you would with hardware RAID, you get the flexibility of the highest-end hardware controllers on a normal PC motherboard.
And of course, should things go pear-shaped, I don't need to find an identical controller, I just have to find a box with 6 SATA sockets.
Lets say you have 4 SATA drives, /dev/sda to /dev/sdd, and you are adding a new one /dev/sde.
Check that everything is happy:
Partition the new drive (clone sdas partition table onto sde):
Add the new drive:
Grow the RAID:
Watch the progress:
Grow the filesystem:
See the extra space:
Comments
Out of curiosity, is the array
Out of curiosity, is the array available for I/O while the reshape occurs? I.e. is it a truly "online" reshape?
Yes, totally online and availa
Yes, totally online and available. Although obviously it's faster with less activity.
Thanks.
Thanks.
Did you add both of the additi
Did you add both of the additional drives at the same time?
Yes, I did.
Yes, I did.
I am using Linux for only
I am using Linux for only half of a year now, and you know it is really much more difficult than Windows. It has more functions but you must find those functions and know how to use them.. Software RAID reshaping was a real trouble for me until I have found this article on your blog. Now everything is easier for me to understand. Thanks one more time for this entry and for all your blog. I will be looking forward to other great entries from you in the nearest future.
Sincerely,
Tom Hunson from tiff to tiff to jpeg convert
Post new comment