Skip to contentSkip to conversation

pvscan cant find my volume..

linux-lvm Hjalmar Wåhlander 1 participant 3 messages Nov 11, 2003 – Nov 12, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

This started out when I rebooted my machine. Prior to the reboot I ran fsck on the lvm-filesystem and got quite alot of errors.

My vg contains three hdds:
hdc, hde and hdf.

----------------
[root@mircosoft /mnt]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "the_data" from physical volume(s) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
-----------------

This error I've seen quite a few times in this list, however, as many replies are suggesting - running "pvcreate -ff" - does not help. Why?

--------------
[root@mircosoft /mnt]# pvcreate -ff /dev/hdc pvcreate -- device "/dev/hdc" has a partition table
---------------

And, to my surprise, dmesg, reports that hdc has a hdc1 (not that I can remember ever creating one... ), but anyway, how can I bypass this?

Some extras:

[root@mircosoft /mnt]# pvdisplay /dev/hdc pvdisplay -- no physical volume identifier on "/dev/hdc"

(But it works fine on hde and hdf).

Im very grateful for any help!

--grazzy.

#1 lore raw

As stated in a eariler message, I also tried this:

[root@mircosoft /mnt]# cp /etc/lvmconf/the_data.conf /etc/lvmtab.d/the_data [root@mircosoft /mnt]# echo -ne "the_data\0" > /etc/lvmtab [root@mircosoft /mnt]# vgchange -ay the_data
vgchange -- ERROR: physical volume "/dev/hdc" of volume group "the_data" is offline vgchange -- run vgscan

Quoted 44 lines · you

Hi,

This started out when I rebooted my machine. Prior to the reboot I ran fsck on the lvm-filesystem and got quite alot of errors.

My vg contains three hdds:
hdc, hde and hdf.

----------------
[root@mircosoft /mnt]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "the_data" from physical volume(s) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
-----------------

This error I've seen quite a few times in this list, however, as many replies are suggesting - running "pvcreate -ff" - does not help. Why?

--------------
[root@mircosoft /mnt]# pvcreate -ff /dev/hdc pvcreate -- device "/dev/hdc" has a partition table
---------------

And, to my surprise, dmesg, reports that hdc has a hdc1 (not that I can remember ever creating one... ), but anyway, how can I bypass this?

Some extras:

[root@mircosoft /mnt]# pvdisplay /dev/hdc pvdisplay -- no physical volume identifier on "/dev/hdc"

(But it works fine on hde and hdf).

Im very grateful for any help!

--grazzy.

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#2 lore raw

Hi,

You guys got me nervous there for a while. 280gb of data down the drain? Nope.
I solved my problem with cfdisk ( fdisk would probably have done aswell ), I took my chances and rewrote the partition table ( an empty one ), then pvcreate -ff and vgcfgrestore .. phew. Back online.

I hope someone can be helped with this solution.

Quoted 64 lines · you

As stated in a eariler message, I also tried this:

[root@mircosoft /mnt]# cp /etc/lvmconf/the_data.conf /etc/lvmtab.d/the_data [root@mircosoft /mnt]# echo -ne "the_data\0" > /etc/lvmtab [root@mircosoft /mnt]# vgchange -ay the_data
vgchange -- ERROR: physical volume "/dev/hdc" of volume group "the_data" is offline vgchange -- run vgscan

Quoted 36 lines · you

Hi,

This started out when I rebooted my machine. Prior to the reboot I ran fsck on the lvm-filesystem and got quite alot of errors.

My vg contains three hdds:
hdc, hde and hdf.

----------------
[root@mircosoft /mnt]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "the_data" from physical volume(s) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
-----------------

This error I've seen quite a few times in this list, however, as many replies are suggesting - running "pvcreate -ff" - does not help. Why?

--------------
[root@mircosoft /mnt]# pvcreate -ff /dev/hdc pvcreate -- device "/dev/hdc" has a partition table
---------------

And, to my surprise, dmesg, reports that hdc has a hdc1 (not that I can remember ever creating one... ), but anyway, how can I bypass this?

Some extras:

[root@mircosoft /mnt]# pvdisplay /dev/hdc pvdisplay -- no physical volume identifier on "/dev/hdc"

(But it works fine on hde and hdf).

Im very grateful for any help!

Quoted 8 lines

--grazzy.

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/