* [linux-lvm] lvm2 migration issue
@ 2004-05-19 18:50 Joe Orton
2004-05-21 16:54 ` Alasdair G Kergon
0 siblings, 1 reply; 3+ messages in thread
From: Joe Orton @ 2004-05-19 18:50 UTC (permalink / raw)
To: linux-lvm
I'm trying to upgrade one of my Fedora Core 1 boxes to FC2, which has
the root filesystem on LVM. The installer won't allow me to ugprade
because, it seems, vgscan is returning an error.
The output of "lvm vgscan -v -d" from a VC whilst running the installer
is:
1 PV(s) found for VG mainvg: expected 2
Volume group "mainvg" not found
Wiping cache of LVM-capable devices
Wiping internal cache
Reading all physical volumes. This may take a while...
Finding all volume groups
Finding volume group "mainvg"
"lvm pvscan" gives:
1 PV(s) found for VG mainvg: expected 2
Logical volume (usrvol) contains an incomplete mapping table.
Wiping cache of LVM-capable devices
Wiping internal cache
Walking through all physical volumes
PV /dev/hda7 VG mainvg lvm1 [19.82 GB / 0 free]
Total: 1 [19.82 GB] / in use: 1 [19.82 GB] / in no VG: 0 [0 ]
so it doesn't recognise /dev/hda2 as a PV, for some reason.
When booted into FC1, /proc/lvm/global has:
LVM module LVM version 1.0.5+(22/07/2002)
Total: 1 VG 2 PVs 2 LVs (1 LV open 1 times)
Global: 105960 bytes malloced IOP version: 10 0:30:18 active
VG: mainvg [2 PV, 2 LV/1 open] PE Size: 4096 KB
Usage [KB/PE]: 25907200 /6325 total 25907200 /6325 used 0 /0 free
PVs: [AA] hda2 5120000 /1250 5120000 /1250 0 /0
[AA] hda7 20787200 /5075 20787200 /5075 0 /0
LVs: [AWDL ] usrvol 5120000 /1250 1x open
[AWDL ] storevol 20787200 /5075 close
and back booted into the FC2 installer,
# lvm pvdisplay /dev/hda2
Failed to read physical volume "/dev/hda2"
Any ideas how I can get round this?
Regards,
joe
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] lvm2 migration issue
2004-05-19 18:50 [linux-lvm] lvm2 migration issue Joe Orton
@ 2004-05-21 16:54 ` Alasdair G Kergon
2004-05-25 8:11 ` Joe Orton
0 siblings, 1 reply; 3+ messages in thread
From: Alasdair G Kergon @ 2004-05-21 16:54 UTC (permalink / raw)
To: LVM general discussion and development
On Wed, May 19, 2004 at 07:50:15PM +0100, Joe Orton wrote:
> I'm trying to upgrade one of my Fedora Core 1 boxes to FC2, which has
> the root filesystem on LVM. The installer won't allow me to ugprade
> because, it seems, vgscan is returning an error.
> The output of "lvm vgscan -v -d" from a VC whilst running the installer
> is:
> so it doesn't recognise /dev/hda2 as a PV, for some reason.
> Any ideas how I can get round this?
Depends what's causing it: try turning up the verbosity (eg. vgscan -vvv)
and see if it gives a reason for avoiding hda2.
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] lvm2 migration issue
2004-05-21 16:54 ` Alasdair G Kergon
@ 2004-05-25 8:11 ` Joe Orton
0 siblings, 0 replies; 3+ messages in thread
From: Joe Orton @ 2004-05-25 8:11 UTC (permalink / raw)
To: LVM general discussion and development
On Fri, May 21, 2004 at 05:54:55PM +0100, Alasdair G Kergon wrote:
> On Wed, May 19, 2004 at 07:50:15PM +0100, Joe Orton wrote:
> > I'm trying to upgrade one of my Fedora Core 1 boxes to FC2, which has
> > the root filesystem on LVM. The installer won't allow me to ugprade
> > because, it seems, vgscan is returning an error.
>
> > The output of "lvm vgscan -v -d" from a VC whilst running the installer
> > is:
>
> > so it doesn't recognise /dev/hda2 as a PV, for some reason.
>
> > Any ideas how I can get round this?
>
> Depends what's causing it: try turning up the verbosity (eg. vgscan -vvv)
> and see if it gives a reason for avoiding hda2.
Thanks a lot, that did the trick. It skipped that partition because it
had a old raid superblock on it, so I ran "mdadm --zero-superblock
/dev/hda2" from the installer shell and vgscan was happy again.
Regards,
joe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-25 8:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 18:50 [linux-lvm] lvm2 migration issue Joe Orton
2004-05-21 16:54 ` Alasdair G Kergon
2004-05-25 8:11 ` Joe Orton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox