Hi Guys,
I've one Raid 5 Volume with 3 drives (3 x 1 Tb Hard Drive) but is getting almost full, I need to add one more 1 Tb drive but I'm using LVM, could someone tell me what is the best procedure to expand the Raid5 volume?
Thanks.
Hi Guys,
I've one Raid 5 Volume with 3 drives (3 x 1 Tb Hard Drive) but is getting almost full, I need to add one more 1 Tb drive but I'm using LVM, could someone tell me what is the best procedure to expand the Raid5 volume?
Thanks.
Hi crisman
extending Raid 5 with a disk is not recommended you can have data corruption or even worse data loss.
the best way is to build a new raid and than migrate the data on the existing raid.
greats steel
Hi steel2400,
I understand your concerns, but I don't have more space to make a backup of the files on that volume to create a new empty volume, I've done on several server RAID 5 expand but on hardware controllers and with Windows OS without any problems, I would like to know if someone here has already done it and the best procedures?
Regards.
Oke i understand good luck with your end-ever
greats steel
Hi Guys,
Could you please tell me what are the best practices for extending the RAID?
Thanks.
Well, it's kind of hard to answer with the scarce details you've provided ...
Providing the output of the following interrogation commands would help:
But assuming you have an ext4 filesystem on top of LVM which is itself on top of a mdadm array of 3 drives in raid5, it would look something like that:
mdadm --grow /dev/mdX --raid-devices=4 --add /dev/sdY
pvresize /dev/mdX
vgdisplay
lvextend -l +100%FREE <logical vol path>
resize2fs <logical vol path>
Warning: after issuing the mdadm grow command, you should wait for the raid array to complete rebuilding before extending the lvm and filesystem. It could take several hours or a couple of days depending on your array size.
I strongly advise, beside having a backup, that you test this in a virtual machine to avoid any data loss. I won't be held responsible if you loose any data.
Hi Pollux,
Later when at home I'll send you the output of those commands.
Is not possible to do the raid extend by the GUI?
Don't worry about backups, information on this is not very important!
Thanks.
Did you try adding a drive and clicking the Grow button?
Did you try adding a drive and clicking the Grow button?
Hi Aaron,
I haven't done nothing until now, I would like to have your opinion about best practices on this to avoid mistakes.
Thanks.
Of course you can extend the RAID via your GUI.
Shut your NAS down, plug in the new HDD, boot OMV, format the single new HDD, click your Raid and then click the extend button.
If you need more detailed information, feel free to ask
If the drive is not brand new, then it is not available in this dialog i thought?
You may have to Wipe the drive (if it is not new) but not format it. If you format it (which adds a filesystem), it definitely won't show up in the add dialog.
I've added the drive yesterday and wiped it, but haven't added to the raid volume.
You may have to Wipe the drive (if it is not new) but not format it. If you format it (which adds a filesystem), it definitely won't show up in the add dialog.
Lol... The german slang... with "format" i meant "wipe" of course!
@crisman - does it not show up at in the dialog?
Yes, the drive is available in the system!
Later when I'm at home I will try to add it to the raid volume and wait for it to finish the rebuild.
You should be able to grow the raid by adding the disk in the webgui, but you won't be able to resize the Physical Volume since the LVM plugin only allows creation/deletion of a PV. For that part you will have to do it from command line. The rest (extend LV then resize FS) should be possible from webgui.
Hi Guys,
Only today I had time to resize my Raid5 volume, after 5 hours resizing I extended the LVM physical and logical volumes, now I'm in the middle of resizing the file system on the GUI but I cannot see any progress bar or something telling me that is resizing only after a few pages refresh I can see the fs volume size growing, I think that we should have something indicating that the fs resizing was in progress.
Well lets wait to finish but until now its working fine without any errors!
Thanks.
You can also look how far the resizing is via CLI:
cat /proc/mdstat
btw - this problem should be fixed with the newest OMV version:
http://sourceforge.net/p/openmediavault/code/1479
btw - this problem should be fixed with the newest OMV version:
I don't think so!
Yesterday I had already installed the OMV 1.0.24 before doing the FS resize and the progress of the FS resizing was not there!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!