пятница, 20 ноября 2015 г.

HP-UX Ошибка: vgdisplay: Warning: couldn’t query physical volume

После перезагрузки сервера появилась ошибка “vgdisplay: Warning: couldn’t query physical volume”.

# vgdisplay
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      7
Open LV                     7
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               4465
VGDA                        2
PE Size (Mbytes)            64
Total PE                    4455
Alloc PE                    2566
Free PE                     1889
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 4465g
VG Max Extents              71440

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d3":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d3":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d4":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d4":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d5":
The specified path does not correspond to physical volume attached to
this volume group


vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c20t0d6":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d6":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d6":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d7":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
VG Name                     /dev/vg06
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      25
Open LV                     25
Max PV                      16
Cur PV                      7
Act PV                      7
Max PE per PV               31999
VGDA                        14
PE Size (Mbytes)            32
Total PE                    122393
Alloc PE                    122211
Free PE                     182
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 16383488m
VG Max Extents              511984

VG Name                     /dev/vg02
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      0
Open LV                     0
Max PV                      16
Cur PV                      2
Act PV                      2
Max PE per PV               65335
VGDA                        4
PE Size (Mbytes)            32
Total PE                    7998
Alloc PE                    0
Free PE                     7998
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 33451520m
VG Max Extents              1045360


Проверки указывают что с диском все в порядке.

# ioscan -m dsf /dev/dsk/c39t0d7
Persistent DSF           Legacy DSF(s)
========================================
/dev/disk/disk39         /dev/dsk/c39t0d7
# ioscan -m dsf /dev/disk/disk39
Persistent DSF           Legacy DSF(s)
========================================
/dev/disk/disk39         /dev/dsk/c20t0d7
                         /dev/dsk/c26t0d7
                         /dev/dsk/c37t0d7
                         /dev/dsk/c39t0d7


# scsimgr -p lun_map -D /dev/rdisk/disk39
lunpath:39:0/0/0/3/0/0/0.0x5001438011380d19.0x4007000000000000:fibre_channel:STANDBY:STANDBY
lunpath:40:0/0/0/3/0/0/0.0x5001438011380d1d.0x4007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:54:0/0/0/8/0/0/0.0x5001438011380d18.0x4007000000000000:fibre_channel:STANDBY:STANDBY
lunpath:62:0/0/0/8/0/0/0.0x5001438011380d1c.0x4007000000000000:fibre_channel:ACTIVE:ACTIVE

# ioscan -funC disk
Class     I  H/W Path        Driver S/W State   H/W Type     Description
========================================================================
disk      0  0/0/0/1/0/0/0.0.0           sdisk   CLAIMED     DEVICE       HP      LOGICAL VOLUME
                            /dev/dsk/c0t0d0     /dev/dsk/c0t0d0s2   /dev/rdsk/c0t0d0    /dev/rdsk/c0t0d0s2
                            /dev/dsk/c0t0d0s1   /dev/dsk/c0t0d0s3   /dev/rdsk/c0t0d0s1  /dev/rdsk/c0t0d0s3
disk      4  0/0/0/3/0/0/0.1.29.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t0d1   /dev/rdsk/c20t0d1
disk      5  0/0/0/3/0/0/0.1.29.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t0d2   /dev/rdsk/c20t0d2
disk      6  0/0/0/3/0/0/0.1.29.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t0d3   /dev/rdsk/c20t0d3
disk      7  0/0/0/3/0/0/0.1.29.0.0.0.4  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t0d4   /dev/rdsk/c20t0d4
disk      8  0/0/0/3/0/0/0.1.29.0.0.0.5  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t0d5   /dev/rdsk/c20t0d5
disk      9  0/0/0/3/0/0/0.1.29.0.0.0.6  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t0d6   /dev/rdsk/c20t0d6
disk     34  0/0/0/3/0/0/0.1.29.0.0.0.7  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t0d7   /dev/rdsk/c20t0d7
disk     55  0/0/0/3/0/0/0.1.29.0.0.1.0  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t1d0   /dev/rdsk/c20t1d0
disk     60  0/0/0/3/0/0/0.1.29.0.0.1.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c20t1d1   /dev/rdsk/c20t1d1
disk     10  0/0/0/3/0/0/0.1.30.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t0d1   /dev/rdsk/c26t0d1
disk     11  0/0/0/3/0/0/0.1.30.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t0d2   /dev/rdsk/c26t0d2
disk     12  0/0/0/3/0/0/0.1.30.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t0d3   /dev/rdsk/c26t0d3
disk     13  0/0/0/3/0/0/0.1.30.0.0.0.4  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t0d4   /dev/rdsk/c26t0d4
disk     14  0/0/0/3/0/0/0.1.30.0.0.0.5  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t0d5   /dev/rdsk/c26t0d5
disk     15  0/0/0/3/0/0/0.1.30.0.0.0.6  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t0d6   /dev/rdsk/c26t0d6
disk     35  0/0/0/3/0/0/0.1.30.0.0.0.7  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t0d7   /dev/rdsk/c26t0d7
disk     54  0/0/0/3/0/0/0.1.30.0.0.1.0  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t1d0   /dev/rdsk/c26t1d0
disk     59  0/0/0/3/0/0/0.1.30.0.0.1.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c26t1d1   /dev/rdsk/c26t1d1
disk     40  0/0/0/8/0/0/0.1.29.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t0d1   /dev/rdsk/c37t0d1
disk     41  0/0/0/8/0/0/0.1.29.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t0d2   /dev/rdsk/c37t0d2
disk     42  0/0/0/8/0/0/0.1.29.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t0d3   /dev/rdsk/c37t0d3
disk     43  0/0/0/8/0/0/0.1.29.0.0.0.4  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t0d4   /dev/rdsk/c37t0d4
disk     44  0/0/0/8/0/0/0.1.29.0.0.0.5  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t0d5   /dev/rdsk/c37t0d5
disk     45  0/0/0/8/0/0/0.1.29.0.0.0.6  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t0d6   /dev/rdsk/c37t0d6
disk     46  0/0/0/8/0/0/0.1.29.0.0.0.7  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t0d7   /dev/rdsk/c37t0d7
disk     57  0/0/0/8/0/0/0.1.29.0.0.1.0  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t1d0   /dev/rdsk/c37t1d0
disk     61  0/0/0/8/0/0/0.1.29.0.0.1.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c37t1d1   /dev/rdsk/c37t1d1
disk     47  0/0/0/8/0/0/0.1.30.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t0d1   /dev/rdsk/c39t0d1
disk     48  0/0/0/8/0/0/0.1.30.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t0d2   /dev/rdsk/c39t0d2
disk     49  0/0/0/8/0/0/0.1.30.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t0d3   /dev/rdsk/c39t0d3
disk     50  0/0/0/8/0/0/0.1.30.0.0.0.4  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t0d4   /dev/rdsk/c39t0d4
disk     51  0/0/0/8/0/0/0.1.30.0.0.0.5  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t0d5   /dev/rdsk/c39t0d5
disk     52  0/0/0/8/0/0/0.1.30.0.0.0.6  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t0d6   /dev/rdsk/c39t0d6
disk     53  0/0/0/8/0/0/0.1.30.0.0.0.7  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t0d7   /dev/rdsk/c39t0d7
disk     56  0/0/0/8/0/0/0.1.30.0.0.1.0  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t1d0   /dev/rdsk/c39t1d0
disk     62  0/0/0/8/0/0/0.1.30.0.0.1.1  sdisk   CLAIMED     DEVICE       HP      HSV340
                            /dev/dsk/c39t1d1   /dev/rdsk/c39t1d1
disk      1  0/0/0/31/2.0.0  sdisk   CLAIMED     DEVICE       HP      DV-28S-Y
                            /dev/dsk/c1t0d0   /dev/rdsk/c1t0d0


Копируем на ксякий случай lvmtab.

# cp -p /etc/lvmtab /etc/lvmtab_bak

Пробуем пересоздать метаданные в проблемной логической группе.

# 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


Проверяем, не помогло.


# vgdisplay
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      7
Open LV                     7
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               4465
VGDA                        2
PE Size (Mbytes)            64
Total PE                    4455
Alloc PE                    2566
Free PE                     1889
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 4465g
VG Max Extents              71440

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c37t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c39t0d1":
The specified path does not correspond to physical volume attached to
this volume group

Тогда, делаем по другому.

# vgreduce -l vg06 /dev/dsk/c39t0d7
# vgextend /dev/vg06  /dev/dsk/c39t0d7
# vgscan

Взято отсюда.