From: Tony Likhite <tony@likhite.net>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Re: vgimport says "ERROR: wrong number of physical volumes"
Date: Thu Oct 17 10:16:02 2002 [thread overview]
Message-ID: <200210171115.44653.tony@likhite.net> (raw)
In-Reply-To: <200210171053.03775.tony@likhite.net>
Ok, after initial spasm of confused panic, here's some possibly relevant
data:
Kernel 2.4.19-rc3-ac4 (devfs mounted)
LVM tools 1.04 (latest Debian package, pvscan --version says:
pvscan: Logical Volume Manager 1.0.4
Heinz Mauelshagen, Sistina Software 02/05/2002 (IOP 10))
output from 'vgimport -fv rootvg /dev/ide/host0/bus1/target0/lun0/part2':
vgimport -- locking logical volume manager
vgimport -- checking volume group name
vgimport -- checking volume group "rootvg" existence
vgimport -- trying to read physical volume
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name
"/dev/ide/host0/bus1/target0/lun0/part2"
vgimport -- reading data of physical volume
"/dev/ide/host0/bus1/target0/lun0/part2" from disk
vgimport -- checking for exported physical volume
"/dev/ide/host0/bus1/target0/lun0/part2"
vgimport -- reallocating memory
vgimport -- checking consistency of physical volume
"/dev/ide/host0/bus1/target0/lun0/part2"
vgimport -- ERROR: wrong number of physical volumes to import volume group
"rootvg"
output from 'pvdata /dev/ide/host0/bus1/target0/lun0/part2':
--- Physical volume ---
PV Name /dev/ide/host0/bus1/target0/lun0/part2
VG Name rootvgPV_EXP
PV Size 110.79 GB [232344000 secs] / NOT usable 4.25 MB [LVM:
238
KB]
PV# 2
PV Status available
Allocatable yes
Cur LV 6
PE Size (KByte) 4096
Total PE 28361
Free PE 17865
Allocated PE 10496
PV UUID z9FKhX-y87k-j6Oj-STF1-C7KR-3HcY-3VFDcI
--- Volume group ---
VG Name
VG Access read/write
VG Status NOT available/exported/resizable
VG # 1
MAX LV 255
Cur LV 6
Open LV 0
MAX LV Size 255.99 GB
Max PV 255
Cur PV 1
Act PV 1
VG Size 110.79 GB
PE Size 4 MB
Total PE 28361
Alloc PE / Size 10496 / 41 GB
Free PE / Size 17865 / 69.79 GB
VG UUID gvQKre-flUe-MkcE-OJvo-ijKM-AWjc-IZo6R9
--- List of logical volumes ---
pvdata -- logical volume "/dev/rootvg/root" at offset 0
pvdata -- logical volume "/dev/rootvg/usr-local" at offset 1
pvdata -- logical volume "/dev/rootvg/swap" at offset 2
pvdata -- logical volume "/dev/rootvg/home" at offset 3
pvdata -- logical volume "/dev/rootvg/oracle" at offset 4
pvdata -- logical volume "/dev/rootvg/archive" at offset 5
pvdata -- logical volume struct at offset 6 is empty
pvdata -- logical volume struct at offset 7 is empty
pvdata -- logical volume struct at offset 8 is empty
pvdata -- logical volume struct at offset 9 is empty
pvdata -- logical volume struct at offset 10 is empty
..etc...
--- List of physical volume UUIDs ---
001: z9FKhX-y87k-j6Oj-STF1-C7KR-3HcY-3VFDcI
On Thursday 17 October 2002 10:53, Tony Likhite whined:
> The boot drive in my dual-drive system was dying, so I pvmoved all its
> PEs to the other drive and vgreduced it from its VG (rootvg). During a
> reboot after completing the vgreduce, the boot drive died.
>
> However, when I connected the remaining (good) drive to another system,
> vgscan reported a duplicate volume group ID (as I recall), and made a VG
> on the new machine (vg00) inaccessible. rootvg was fine, and I was able
> to mount LVs from it, though.
>
> To get back vg00, I vgexported rootvg. However, now when I try to
> import it again, vgimport fails with "wrong number of physical volumes".
>
> How can I fix this? Is it possible to edit the definition of rootvg and
> reduce the PV count? I'm reasonably sure that all the PEs are intact on
> the remaining drive, and the VG definition is the only thing that's off.
next prev parent reply other threads:[~2002-10-17 10:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-17 10:04 [linux-lvm] vgimport says "ERROR: wrong number of physical volumes" Tony Likhite
2002-10-17 10:16 ` Tony Likhite [this message]
2002-10-17 10:40 ` [linux-lvm] " Tony Likhite
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=200210171115.44653.tony@likhite.net \
--to=tony@likhite.net \
--cc=linux-lvm@sistina.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