[linux-lvm] Changing PV position

Benoit benoit.peccatte at enst-bretagne.fr
Thu Dec 18 05:11:01 UTC 2003


Hello,

I'm currently using lvm on my box and one disk just died.
Then the second disk (hdb) became the first one (hda). The problem is that now 
I can't get back the physical volume which is on it. Is it possible to tell 
lvm to force the reading of a PV even if it isn't on the same disk as 
before ?

Thank you for your help.
Benoit


Informations :

peck:/# fdisk -l /dev/hda

Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         898     7213153+   b  W95 FAT32
/dev/hda2             899        1384     3903795   83  Linux
/dev/hda3            1385       14946   108936765    5  Extended
/dev/hda5            1385        1992     4883728+  fd  Linux raid autodetect
/dev/hda6            1993       14946   104052973+  8e  Linux LVM

peck:/# pvs /dev/hda6
  Failed to read physical volume "/dev/hda6"


I'm currently using linux 2.6-test9, with lvm2 tools. 
The missing volume was created with lvm1 tools.






More information about the linux-lvm mailing list