PV contains data not scanned in pvscan

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
alpeshpatel
Posts: 1
Joined: 2010/11/19 06:36:55

PV contains data not scanned in pvscan

Post by alpeshpatel » 2010/11/19 06:52:24

Hi,

I have one PV (RAID5, with 4 HDD each 2TB). I have created one VG (datavg) on it and created one LVG (datalvg) and mounted one filesystem.

It works successfully. User have put their lots of data on it.

We need to export the vg to move this data to another machine, So I first unmount the filesystem, then deactivate vg and then export the vg.

But due to some problem we have to cancel this movement of physical volume. So we again start the original machine and run the command pvscan.

but this time the volume was not detected in pvscan.

I checked in LVM (GUI based), in that PV shows in non initialised mode. When I click on "initialise" button it gave me warning that data will be lost.

Now what I do?

I have also tried to run command pvcreate --uuid --restorefile /etc/lvm/archive/xxxx.vg /dev/hdb but it gives me message that device with uuid not found.

Please help me to resolve this problem. as it conatians lots of important data.

Regards,
Alpesh Patel

User avatar
TrevorH
Forum Moderator
Posts: 27720
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

PV contains data not scanned in pvscan

Post by TrevorH » 2010/11/19 10:48:06

[quote]
We need to export the vg to move this data to another machine, So I first unmount the filesystem, then deactivate vg and then export the vg.
[/quote]

[code]
DESCRIPTION
vgexport allows you to make the inactive VolumeGroupName(s) unknown to
the system. You can then move all the Physical Volumes in that Volume
Group to a different system for later vgimport(8). Most LVM2 tools
ignore exported Volume Groups.
[/code]

Did you vgimport it again afterwards?

Post Reply

Return to “CentOS 5 - X86_64,s390(x) and PowerPC Support”