View previous topic :: View next topic |
Author |
Message |
PietdeBoer Apprentice
Joined: 20 Oct 2005 Posts: 244 Location: Eindhoven, the Netherlands
|
Posted: Fri May 02, 2008 2:44 pm Post subject: Software raid5 migrate from 3 to 4 disks.. [SOLVED] |
|
|
Hey guys,
Iam running a 3 disk software raid5 array.... holding 3 250GB disks
Now i want to add another 250GB disk... how should i do this? simply add the disk..
i found:
Code: | mdadm --add /dev/md1 /dev/sdf1
mdadm --grow /dev/md1 --raid-devices=4
|
but now should i grow the filesystem as well? without loosing data
thx _________________ _ Got Root? _
Last edited by PietdeBoer on Sun May 04, 2008 4:05 pm; edited 1 time in total |
|
Back to top |
|
|
lagalopex Guru
Joined: 16 Oct 2004 Posts: 562
|
Posted: Fri May 02, 2008 4:08 pm Post subject: Re: Software raid5 migrate from 3 to 4 disks.. |
|
|
PietdeBoer wrote: | but now should i grow the filesystem as well? without loosing data |
Yes. Some filesystems will need it to be unmounted, other must be resized mounted.
Though I never tried it because some filesystems can be created optimized for a x-drive raid, that cant be adjusted afterwars... or at least I found no way to |
|
Back to top |
|
|
Cyker Veteran
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Sat May 03, 2008 12:04 am Post subject: |
|
|
If you're using ext3 or ext2, this is dead easy
Once md1 is grown, make sure it's unmounted still, and simply run
resize2fs /dev/md1
And it'll go churn away for a while and at the end you'll have access to all the extra space! |
|
Back to top |
|
|
HeissFuss Guru
Joined: 11 Jan 2005 Posts: 414
|
Posted: Sun May 04, 2008 1:08 am Post subject: |
|
|
Most file systems allow for online resizing. This works for xfs_growfs, resize_reiserfs, resize2fs, and the jfs remount option. If given no options besides the device, by default they will expand to fill the freespace on the partition. |
|
Back to top |
|
|
PietdeBoer Apprentice
Joined: 20 Oct 2005 Posts: 244 Location: Eindhoven, the Netherlands
|
Posted: Sun May 04, 2008 4:05 pm Post subject: |
|
|
thx this helped me a lot it worked! _________________ _ Got Root? _ |
|
Back to top |
|
|
|