Sunday, April 10, 2011

PVG issue

HP-UX 11.x - lvsplit Gives an Error "Physical volume ... does not belong to volume group"
Issue

lvsplit is not working

ERROR:


# lvsplit -g backup /dev/fc01ora/lvol1
Physical volume "/dev/dsk/c89t5d6" does not belong to volume group "/dev/fc01ora".

Solution

Troubleshooting Done:

1. Checked the lvmtab file which shows the following disks without errors


/dev/fc01ora
/dev/dsk/c74t5d2
/dev/dsk/c74t5d6
/dev/dsk/c88t5d2
/dev/dsk/c88t5d6
/dev/dsk/c89t5d5
/dev/dsk/c89t5d6

2. Vgdisplay shows the disk "c89t5d6" without errors and this is a Alternate Link

3. lvdisplay works fine without errors on lvol1

4. Checked the PVG file


PVG Name backup
PV Name /dev/dsk/c85t5d5 Main Disk
PV Name /dev/dsk/c84t5d5 Alternate link
PV Name /dev/dsk/c87t5d5 Alternate link
PV Name /dev/dsk/c89t5d5 Alternate link
PV Name /dev/dsk/c89t5d6 Alternate link

PV Name /dev/dsk/c89t5d6 Alternate link
PV Name /dev/dsk/c87t5d6 Alternate link
PV Name /dev/dsk/c85t5d6 Main disk
PV Name /dev/dsk/c84t5d6 Alternate Disk

Solution:

Issue is with the PVG file which has a wrong order of disks.

In PVG file Main Disk should come first and then it should be followed with the alternate links.

Configuration worked and simulated the same on other servers.


PVG Name backup
PV Name /dev/dsk/c85t5d5 Main Disk
PV Name /dev/dsk/c84t5d5 Alternate link
PV Name /dev/dsk/c87t5d5 Alternate link
PV Name /dev/dsk/c89t5d5 Alternate link

PV Name /dev/dsk/c85t5d6 Main disk
PV Name /dev/dsk/c89t5d6 Alternate link
PV Name /dev/dsk/c87t5d6 Alternate link
PV Name /dev/dsk/c84t5d6 Alternate link

No comments: