Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software raid5 migrate from 3 to 4 disks.. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
PietdeBoer
Apprentice
Apprentice


Joined: 20 Oct 2005
Posts: 244
Location: Eindhoven, the Netherlands

PostPosted: Fri May 02, 2008 2:44 pm    Post subject: Software raid5 migrate from 3 to 4 disks.. [SOLVED] Reply with quote

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
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Fri May 02, 2008 4:08 pm    Post subject: Re: Software raid5 migrate from 3 to 4 disks.. Reply with quote

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 :lol:
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Sat May 03, 2008 12:04 am    Post subject: Reply with quote

If you're using ext3 or ext2, this is dead easy :D

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
View user's profile Send private message
HeissFuss
Guru
Guru


Joined: 11 Jan 2005
Posts: 414

PostPosted: Sun May 04, 2008 1:08 am    Post subject: Reply with quote

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
View user's profile Send private message
PietdeBoer
Apprentice
Apprentice


Joined: 20 Oct 2005
Posts: 244
Location: Eindhoven, the Netherlands

PostPosted: Sun May 04, 2008 4:05 pm    Post subject: Reply with quote

thx this helped me a lot ;) it worked!
_________________
_ Got Root? _
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum