[linux-lvm] Mirroring my install. Lots of problems !

Georges Giralt georges.giralt at free.fr
Sat Jan 20 20:31:43 UTC 2007

Luca Berra a écrit :
> On Mon, Jan 15, 2007 at 10:42:26AM +0100, Georges Giralt wrote:
> ...
>> The conversion was a failure, because the tools asked for a THIRD disk 
>> in order
>> to mirror the VG. Funny. I thought GNU/Linux was clever, I was wrong. 
>> How come
>> HP-UX or Aix can do LVM mirror on 2 disks and not Linux ? (the corelog 
>> option
>> is also an issue, as reconstruction will take place at every reboot 
>> which occur
>> often as this is a home box, not a server)
> i am still waiting for the lvm mirror interface to settle before trying
> to use it, so i cannot comment...
>> So I decided to try a more complex approach : Create a mirror using 
>> the mdtools
>> (mdadm) and turn this into a VG. My plan was as follow :
>> 1) create a critical mirror using mdadm with only one copy active on 
>> hdb2 repeat
>> with hdb3.
>> 2) pvcreate md0 and md1
>> 3) add md0 to vg0 and md1 to vg-ext
>> 4) pvmove all vg0 lv to md0 and all vg-ext lv to md1.
>> 5) vgreduce vg0 to remove hda2 and vg-ext to remove hda3
>> 6) add hda2 to md0 and hda3 to md1 and force re-sync
>> 7) have a beer, and enjoy.
> this is the best part of your plan :)
>> Again, a disaster. I CAN'T add an md to a vg and have the vg work. 
>> I've tried to
>> do it using plain md0 to pvcreate, partitionning md0 to create md0p1 and
>> pvcreate this (it's impossible, as there is no /dev/md0p1 device...)
> can you please be more verbose as to why you can't add an md to a vg
> eg showing logs and output of lvm commands with verbose options.
> i usually pvcreate md devices without any problem.
> regards,
> L.
Hi Luca !
So I've got some beer, and re-tried a lot of things to mirror my install.
First, I've added a third disk in my box hopping it would be easier to 
mirror the vg/lv using lvm as I've trouble going the raid way.
here are one message I get when I try to mirror an lv using 3 disks and 
system-config-lvm which is a Fedora GUI :
pvmove command failed. Command attempted: "/usr/sbin/pvmove --name 
/dev/vgF32/lv1 /dev/hda3:0-2559 /dev/sda3" - System Error Message: 
device-mapper: reload ioctl failed: Invalid argument
   ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
   device-mapper: reload ioctl failed: Invalid argument
   device-mapper: reload ioctl failed: Invalid argument
I get quite the same message if I try to move one "physical" PV (say 
hda3 to a mirrored device say md0.
So I'm left with no mirroring whatever solution I try to use...
Here is my configuration :
hda IDE 160GB disk
hdb same disk as above
sda Sata 160GB disk same make and model as above except for SATA of course.
The VG/LV I try t mirror is a 55GB vg which comprises 4 lv (10G,used as 
/; 4G (swap); 10G used as /usr and 10G used as /var ) which hold a 32 
bits version of FC6
I'm running kernel 2.6.19-1.2895.fc6 which is the last Fedora 6 one,
lvm is :
lvm> version
   LVM version:     2.02.06 (2006-05-12)
   Library version: 1.02.07 (2006-05-11)
   Driver version:  4.10.0
And please don't tell me to use the latest one as I _do_ prefer not to 
install a non pre packaged version of software... It makes Fedora behave 
quite strangely...
thanks for your help !
Ce message est constitué d'au moins 50 % d'électrons recyclés.
S'il vous plaît, aidez nous à conserver nos ressources,
recyclez vos électrons !

More information about the linux-lvm mailing list