Linux in General > Os Talk

growing raid

(1/1)

krushna:
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.

gauravbajaj:
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

Navigation

[0] Message Index

Go to full version