LVM and VxVM

Re: vg00 device in vgdisplay is strange

 
vpar
Advisor

vg00 device in vgdisplay is strange


Lvm is multipath environment and I booted
but device name in vgdisplay show other device name came from another path. Is it normal?

What I want to vgdisplay is c10t0d1 insdead of c3t0d1 because I booted OS from primary path.
(Primary bootpath : 0/0/14/1/0.1.0.0.0.0.1)

Original my problem was to cann't boot from c3t0d1, so I did do changed the other path.

11.23 and vpar environment.

Here output:

#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t0d1s2
/dev/dsk/c5t0d1s2
/dev/dsk/c10t0d1s2
/dev/dsk/c12t0d1s2

newgen32: /etc # lvlnboot -v vg00
Current path "/dev/dsk/c5t0d1s2" is an alternate link, skip.
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t0d1s2 (0/0/8/1/0.1.0.0.0.0.1) -- Boot Disk
/dev/dsk/c5t0d1s2 (0/0/8/1/0.1.2.0.0.0.1)
Boot: lvol1 on: /dev/dsk/c3t0d1s2
/dev/dsk/c5t0d1s2
Root: lvol3 on: /dev/dsk/c3t0d1s2
/dev/dsk/c5t0d1s2
Swap: lvol4 on: /dev/dsk/c3t0d1s2
/dev/dsk/c5t0d1s2
Dump: lvol2 on: /dev/dsk/c3t0d1s2, 0

newgen32: /etc # setboot
Primary bootpath : 0/0/14/1/0.1.0.0.0.0.1
HA Alternate bootpath :
Alternate bootpath : 0

Autoboot is ON (enabled)

newgen32: /etc # vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4681
VGDA 2
PE Size (Mbytes) 32
Total PE 4643
Alloc PE 4425
Free PE 218
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
.
.
--- Physical volumes ---
PV Name /dev/dsk/c3t0d1s2
PV Name /dev/dsk/c5t0d1s2 Alternate Link
PV Status available
Total PE 4643
Free PE 218
Autoswitch On
Proactive Polling On
newgen32: /etc # ioscan -kfnCdisk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================

disk 10 0/0/8/1/0.1.2.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d1 /dev/dsk/c5t0d1s3 /dev/rdsk/c5t0d1s2
/dev/dsk/c5t0d1s1 /dev/rdsk/c5t0d1 /dev/rdsk/c5t0d1s3
/dev/dsk/c5t0d1s2 /dev/rdsk/c5t0d1s1

disk 11 0/0/8/1/0.1.2.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d2 /dev/rdsk/c5t0d2
disk 12 0/0/12/1/0.0.0 sdisk CLAIMED DEVICE COMPAQ BF14689BC5
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s3
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s1
disk 14 0/0/14/1/0.1.0.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c10t0d1 /dev/rdsk/c10t0d1
/dev/dsk/c10t0d1s1 /dev/rdsk/c10t0d1s1
/dev/dsk/c10t0d1s2 /dev/rdsk/c10t0d1s2
/dev/dsk/c10t0d1s3 /dev/rdsk/c10t0d1s3
disk 15 0/0/14/1/0.1.0.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c10t0d2 /dev/rdsk/c10t0d2
disk 16 0/0/14/1/0.1.2.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c12t0d1 /dev/rdsk/c12t0d1
/dev/dsk/c12t0d1s1 /dev/rdsk/c12t0d1s1
/dev/dsk/c12t0d1s2 /dev/rdsk/c12t0d1s2
/dev/dsk/c12t0d1s3 /dev/rdsk/c12t0d1s3
disk 17 0/0/14/1/0.1.2.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c12t0d2 /dev/rdsk/c12t0d2

4 REPLIES 4
Shibin_2
Honored Contributor

Re: vg00 device in vgdisplay is strange

Are you sure, you booted using the path 0/0/14/1/0.1.0.0.0.0.1 ?

Below commands will help you to determine your current boot path.

Minor=`echo "bootdev/x"|adb /stand/vmunix /dev/kmem|awk 'NR == 2 {print $1}'|cut -c 5-10`

DEV=`ls -l /dev/dsk|awk '/'$MINOR'/ {print $10}'`

lssf /dev/dsk/$DEV|awk '{print $15" "$16}'


Secondly, your lvmtab shows you have 4 disk paths in your VG00.

#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t0d1s2
/dev/dsk/c5t0d1s2
/dev/dsk/c10t0d1s2
/dev/dsk/c12t0d1s2

But look at your VG display output.

Cur PV 1
Act PV 1

--- Physical volumes ---
PV Name /dev/dsk/c3t0d1s2
PV Name /dev/dsk/c5t0d1s2 Alternate Link

How come your lvmtab is not matching with your VG details ? Have you manually edited your lvmtab ? Have you removed other paths ?

Regards
Shibin
Shibin_2
Honored Contributor

Re: vg00 device in vgdisplay is strange

Correction. ( I have used lower character earlier ).

MINOR=`echo "bootdev/x"|adb /stand/vmunix /dev/kmem|awk 'NR == 2 {print $1}'|cut -c 5-10`

DEV=`ls -l /dev/dsk|awk '/'$MINOR'/ {print $10}'`

lssf /dev/dsk/$DEV|awk '{print $15" "$16}'
Regards
Shibin
vpar
Advisor

Re: vg00 device in vgdisplay is strange

I didn't modify lvmtab file.

====
Cur PV 1
Act PV 1

I think above information is correct.

/dev/vg00
/dev/dsk/c3t0d1s2
/dev/dsk/c5t0d1s2
/dev/dsk/c10t0d1s2
/dev/dsk/c12t0d1s2

Above disks are actually one disk because of multipath.
Shibin_2
Honored Contributor

Re: vg00 device in vgdisplay is strange

Yes, it is multi-path. But you have added only one alternate path to your VG. But how come your /etc/lvmtab showing 2 more ? Have you added it manually?
Regards
Shibin