Operating System - HP-UX
1753439 Members
5081 Online
108794 Solutions
New Discussion

Re: vgdisplay: Warning: couldn't query physical volume

 
DeafFrog
Valued Contributor

Re: vgdisplay: Warning: couldn't query physical volume

Hi Torsten ,

 

Here it is

 

# ll /etc/lvmconf
total 6192
----------   1 root       sys              0 Mar 29 17:59 lvm_lock
----------   1 root       root             0 Mar 29 18:07 lvmp_lock
-rw-------   1 root       sys             24 Aug 20 11:32 pv_lock
----------   1 root       sys              0 Mar 29 18:27 pvg_lock
-rw-------   1 root       sys         152576 Apr  2 15:34 tempvg.conf
-rw-------   1 root       sys         152576 Apr  2 15:34 tempvg.conf.old
-rw-------   1 root       sys          45056 Jun 10 12:03 vg00.conf
-rw-------   1 root       sys          45056 Jun  5 09:55 vg00.conf.old
-rw-r--r--   1 root       sys             78 Jun 10 12:03 vg00.mapfile
-rw-------   1 root       sys         672768 Aug 20 11:32 vg02.conf
-rw-------   1 root       sys          39936 Aug 20 11:27 vg02.conf.old
-rw-------   1 root       sys        1006592 Apr 14 17:32 vg06.conf
-rw-------   1 root       sys        1006592 Apr 14 17:29 vg06.conf.old
-rw-r--r--   1 root       sys            298 Jun 10 12:03 vg06.mapfile
#
# vgcfgrestore -l -v -n vg02
Volume Group Configuration information in "/etc/lvmconf/vg02.conf"
VG Name /dev/vg02
 ---- Physical volumes : 8 ----
      PV         Type         Size (kb)          Start (kb)   PVkey
     c26t1d0   Non-Boot      209715200           8640        0
     c20t1d0   Non-Boot      209715200           8640        0
     c39t1d0   Non-Boot      209715200           8640        0
     c37t1d0   Non-Boot      209715200           8640        0
     c26t1d1   Non-Boot       52428800           8640        1
     c20t1d1   Non-Boot       52428800           8640        1
     c39t1d1   Non-Boot       52428800           8640        1
     c37t1d1   Non-Boot       52428800           8640        1

max_pv 16  max_pe 65335 max_lv 255 vg_version 1.0
# vgcfgrestore -l -v -n vg06
Volume Group Configuration information in "/etc/lvmconf/vg06.conf"
VG Name /dev/vg06
 ---- Physical volumes : 28 ----
      PV         Type         Size (kb)          Start (kb)   PVkey
     c20t0d1   Non-Boot      209715200           4352        5
     c26t0d1   Non-Boot      209715200           4352        5
      c3t0d1   Non-Boot      209715200           4352        5
      c5t0d1   Non-Boot      209715200           4352        5
     c20t0d2   Non-Boot     1048576000           4352        0
     c26t0d2   Non-Boot     1048576000           4352        0
      c3t0d2   Non-Boot     1048576000           4352        0
      c5t0d2   Non-Boot     1048576000           4352        0
     c20t0d3   Non-Boot     1048576000           4352        1
     c26t0d3   Non-Boot     1048576000           4352        1
      c3t0d3   Non-Boot     1048576000           4352        1
      c5t0d3   Non-Boot     1048576000           4352        1
     c20t0d4   Non-Boot     1048576000           4352        2
     c26t0d4   Non-Boot     1048576000           4352        2
      c3t0d4   Non-Boot     1048576000           4352        2
      c5t0d4   Non-Boot     1048576000           4352        2
     c20t0d5   Non-Boot      524288000           4352        3
     c26t0d5   Non-Boot      524288000           4352        3
      c3t0d5   Non-Boot      524288000           4352        3
      c5t0d5   Non-Boot      524288000           4352        3
     c20t0d6   Non-Boot       26214400           4352        4
     c26t0d6   Non-Boot       26214400           4352        4
      c3t0d6   Non-Boot       26214400           4352        4
      c5t0d6   Non-Boot       26214400           4352        4
     c26t0d7   Non-Boot      104857600           4352        6
     c20t0d7   Non-Boot      104857600           4352        6
      c3t0d7   Non-Boot      104857600           4352        6
      c5t0d7   Non-Boot      104857600           4352        6

max_pv 16  max_pe 31999 max_lv 255 vg_version 1.0
# vgcfgrestore -l -v -n vg00
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
 ---- Physical volumes : 1 ----
      PV         Type         Size (kb)          Start (kb)   PVkey
    disk2_p2   Bootable      292006912           2912        0

max_pv 16  max_pe 4465 max_lv 255 vg_version 1.0

 

 

Thanks.

 

Regards,

 

FrogIsDeaf
DeafFrog
Valued Contributor

Re: vgdisplay: Warning: couldn't query physical volume

Hi ,

 

The solution that worked out in this case , provided by cc :

 

1.take backup of lvmtab

2.Vgreduce -l vg06 /dev/dsk/c39t0d7 (option "l" worked , previously we were doing simply vgreduce , this need to be done of all the device file that were showing in the error )

3.Vgextend /dev/vg06  /dev/dsk/c39t0d7  ( on all the link shown in error)

4.followed by a vgscan to recreate the lvmtab .

 

Thanks ,Trosten for all the help.

 

Regards,

FrogIsDeaf