From: Georges Giralt <georges.giralt@free.fr>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Mirroring my install. Lots of problems !
Date: Sat, 20 Jan 2007 21:31:43 +0100 [thread overview]
Message-ID: <45B27C2F.5070602@free.fr> (raw)
In-Reply-To: <20070119071211.GB31075@percy.comedia.it>
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
lvm>
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 !
prev parent reply other threads:[~2007-01-20 20:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-15 9:42 [linux-lvm] Mirroring my install. Lots of problems ! Georges Giralt
2007-01-19 7:12 ` Luca Berra
2007-01-20 20:31 ` Georges Giralt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45B27C2F.5070602@free.fr \
--to=georges.giralt@free.fr \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.