Linux LVM users
 help / color / mirror / Atom feed
From: Stanley Yue <stanley.yue@gmail.com>
To: Stanley Yue <stanley.yue@gmail.com>,
	LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Unable to create lvm1 configurations
Date: Mon, 13 Sep 2004 01:58:14 -0700	[thread overview]
Message-ID: <ce9f1f9e04091301587ea0256b@mail.gmail.com> (raw)
In-Reply-To: <20040912115653.GK1094@agk.surrey.redhat.com>

Thanks Alasdair, it turns out that have to explicitly enable lvm1 support by:

./configure --with-lvm1=internal

However, now, I'm seeing the following problem. 

I have installed both lvm1 and lvm2 utilities onto the same system,
with the lvm-mod and device-mapper from lvm2. I want to test out
whether lvm2 utilities can detect configurations created from lvm1
utilities.

+ pvcreate fails when I'm using the lvm1 utilities.

[root@DAP-RHLNX1 sbin]# ./vgscan  -v
vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group

[root@DAP-RHLNX1 sbin]# ./pvcreate /dev/hda7
pvcreate -- ERROR: VGDA in kernel and lvmtab are NOT consistent;
please run vgscan

+ However, pvcreate succeed when I'm using the lvm2's pvcreate

[root@DAP-RHLNX1 sbin]# pvcreate /dev/hda7
  Physical volume "/dev/hda7" successfully created

Is there anything wrong with my setup here? Does lvm1 utilities work
with lvm-mod from lvm2?
How can I resync the state between the VGDA in kernel and lvmtab?
Do anyone know how I can get it to work with lvm1's pvcreate?

Thanks,

Stanley



On Sun, 12 Sep 2004 12:56:53 +0100, Alasdair G Kergon <agk@redhat.com> wrote:
> On Sat, Sep 11, 2004 at 11:33:06PM -0700, Stanley Yue wrote:
> > [root@DAP-RHLNX1 tools]# vgcreate -v --metadatatype 1 vg1-lvm2
> > /dev/hda6 /dev/hda7
> >   Invalid argument 1
> >   Error during parsing of command line.
> 
> Works for me.
> 
> Perhaps support for 'lvm1' metadata was not compiled in, or
> not loaded from lvm.conf if you configured it shared?
> 
> Alasdair
> --
> agk@redhat.com
>

  reply	other threads:[~2004-09-13  8:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-12  6:33 [linux-lvm] Unable to create lvm1 configurations Stanley Yue
2004-09-12 11:56 ` Alasdair G Kergon
2004-09-13  8:58   ` Stanley Yue [this message]
2004-09-13 10:41     ` Alasdair G Kergon
2004-09-13 20:39       ` Stanley Yue
2004-09-14 20:16         ` Alasdair G Kergon

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=ce9f1f9e04091301587ea0256b@mail.gmail.com \
    --to=stanley.yue@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox