LVM2, RAID-5 and resizing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I have been playing with LVM2 and Sofwareraid 5 the last days. My plan is to have
a software raid5 array with one PV and multiple LV's.


This works perfect, but I also want to enlarge the raid-5 array. This works perfect
when I have one LV. To resize I do this:


- vgcfgbackup
- Enlarge raidarray with raidreconf tools
- pvcreate -u original UUID /dev/md0
- Edit pe_count in the backup created by vgcfbackup
- vgcfgrestore
- Resize the filesystem.

This works for me with one LV.

But when I add two LV's it goes wrong and the LV's get corrupt.
(I get the pe_count by running pvdisplay, before I run vgcfgrestore, and multiply
it with 255. This seems to work)


Is there a way to do this with more succes?
Even dirty hacks are fine by me :)

Thanx,

Roel Adriaans
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux