Getting EVMS working again after mdadm --grow
Brian Kuschak <[email protected]> Sun, 2 Nov 2008 14:51:45 -0800 (PST)
| Newsgroups | gmane.linux.evms.devel |
|---|---|
| Message-ID | <[email protected]> |
I replaced all 3 disks in a RAID5 array with larger capacity drives, one at a time, and then used mdadm --grow to expand the array. Afterwards evms was unable to read the LV that was using that MD device.
I was able to get things working using the mdadm, lvm2 tools, and the partition is mountable. However, I'd like to get EVMS to working again.
Each time I run evmsn, it reports "LVM2: The PV with index 0 was not found when discovering container lvm2/lvm_on_raid_group_120. An "error" object will be created in it's place."
How can I get evms to properly recognize this newly expanded LV?
My procedure was as follows:
- purchased three new 640GB drives
- replace each of the 120GB drives sdd, sde, sdf one at a time, and run
evms to add new drive to degraded /dev/md0 array.
- after third new drive is done, the /dev/md0 is still only 240GB, so
resize the md0 array by running mdadm --grow
- mdadm --grow /dev/md0 --size max
- md0 is now 1.2 TB (640GB x 2 + spare)
- increased size of lvm VG by running: lvm pvresize /dev/md0
- pvscan now shows increased size:
PV /dev/md0 VG lvm_on_raid_group_120 lvm2 [1.16 TB / 968.81 GB free]
PV /dev/md1 VG lvm_on_raid_group_120 lvm2 [298.06 GB / 0 free]
- expand size of the LV itself:
lvresize -l 100%VG /dev/lvm_on_raid_group_120/big_volume
- activate LV: lvm vgchange -ay
- mount the big_volume on a temp location:
/dev/mapper/lvm_on_raid_group_120-big_volume
522G 499G 24G 96% /mnt/tmp
- now grow XFS filesystem: xfs_growfs /mnt/tmp
- df now shows:
/dev/mapper/lvm_on_raid_group_120-big_volume
1.5T 499G 993G 34% /mnt/tmp
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Evms-devel mailing list
[email protected]
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel