Skip to contentSkip to conversation

A hint on a process

linux-lvm [email protected] 1 participant 1 message Dec 7, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1728359014.3510561291714776589.JavaMail.root@zimbra44-e7.priv.proxad.net

#1 lore raw

Hello !
Thank you both for your answer.
Marek, I've checked the grow mdadm option.
Here is what the manpage said about it :
"Normally when an array is built the "size" it taken from the smallest of the drives. If all the small drives in an arrays are, one at a time, removed and replaced with larger drives, then you could have an
array of large drives with only a small amount used. In this
situation, changing the "size" with "GROW" mode will allow the extra space to start being used. If the size is increased in this way, a "resync" process will start to make sure the new parts of the array are synchronised.

Note that when an array changes size, any file system that may be stored
in the array will not automatically grow to use the space. The
filesystem will need to be explicitly told to use the extra space."
So if my kernel revision support it, I should change one disc at a time, with the 2 bigger disks,
wait for synchronization after every change, then ask the array to grow to reach the disks boundaries (I'll make the second partition up to the physical end of the disk). If everything works, I just have to pvresize the above PV to get the extra space available...
If something goes south, I will still have the original 160GB disk available to start again, I hope (I do not know what exactly does the mdadm --fail command on the actual disk and data...). I would greatly appreciate a comment from a person actually having dealt with such issues ;-)
I know I'm some sort of a coward here..... But I would not like loosing data ~:-)
Thanks !
----- Mail Original -----
De: "Marek Podmaka" <[email protected]>
À: "LVM general discussion and development" <[email protected]>
Envoyé: Mardi 7 Décembre 2010 08h31:34 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [linux-lvm] A hint on a process

Hello,

Quoted 2 lines · Stuart D Gathman

Your method will fail because the raid superblock is at the end of the partition.

I think it should be possible - just create bigger partition on the bigger drive, synchronize, replace 2nd drive (also with bigger partition), synchronize and then use mdadm --grow, which should grow the md1 device to the full partition size. Then pvresize to resize the PV inside VG and use can use the extra space.

Signature · 8 lines
  bYE, Marki


_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/