Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Os Talk => Topic started by: krushna on April 23, 2010, 10:24:28 AM

Title: growing raid
Post by: krushna on April 23, 2010, 10:24:28 AM
Hi ,

   I just want to add a new hdd to a server where already raid 5 configured with three harddisks.each 3 harddisk is 320gb.The current hdd which I want add also 320 hdd.Its a linux file server.I just created a single partion on 4h hdd (/dev/sdd1) and added to raid by invoking the command " #mdada -add /dev/md0 /dev/sdd1 ".It took long time to rebuild .Now the build status is clearn (100%).When I am trying to grow the raid just invoking the command "mdadm --grow /dev/md0 --raid-devices=4" .Its returning with error "mdadm: /dev/md0: Cannot reshape array without increasing size (yet)." .Is there any way to increase the raid.Please advise me.
Title: Re: growing raid
Post by: gauravbajaj on May 14, 2010, 05:15:54 AM
Hmm,
Can you try this
mdadm --grow /dev/md0 --size=max ( give the max size here i.e 320*4  = 1280GB and conert it into KB ( 1280*1024*1024) and give the size there ) 


Once its done try to fsck the file system and resize afterwards.
e2fsck -f /dev/md0

resize2fs /dev/md0