Posts Tagged storage
Identify PV device in HP-UX 11.31
Posted by Lincoln Zuljewic Silva in HP-UX on September 8, 2011
In HP-UX 11.31, LVM doesn’t use “ctd’ (ie: /dev/rdsk/c2t1d0), but DSF to balance the throughput between many device paths., so if you need identify what physical device represent that logical device, you can use ioscan, for example:
server@root:/root # vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4385
VGDA 2
PE Size (Mbytes) 16
Total PE 4375
Alloc PE 3998
Free PE 377
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1122560m
VG Max Extents 70160
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 125
Allocated PE 125
Used PV 1
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 1024
Allocated PE 1024
Used PV 1
(...)
LV Name /dev/vg00/lvol12
LV Status available/syncd
LV Size (Mbytes) 5120
Current LE 320
Allocated PE 320
Used PV 1
--- Physical volumes ---
PV Name /dev/disk/disk4
PV Status available
Total PE 4375
Free PE 377
Autoswitch On
Proactive Polling On
Note that the pv name is “disk4”, not c2t1d3.
With ioscan you can reverse map it:
server@root:/root # ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk3 /dev/rdsk/c2t1d0
/dev/rdisk/disk4 /dev/rdsk/c2t0d0
/dev/rdisk/disk5 /dev/rdsk/c0t0d0
Now we know that the “disk4″ is the physical disk located in 12/0/1/1/0.0.0
root@brux0044:/root # ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
disk 1298 12/0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAP3735NC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
How to check HBA card settings in HP-UX
Posted by Lincoln Zuljewic Silva in HP-UX on September 23, 2010
First of all, you need if the device exists:
myserver@root:/root # ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
fc 1 0/0/4/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd1
fc 2 0/0/10/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd2
fc 3 0/0/12/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd3
fc 0 0/0/13/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd0
Now, you can check the settings:
myserver@root:/root # fcmsutil /dev/fcd1
Vendor ID is = 0x001077
Device ID is = 0x002422
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x0012d6
PCI Mode = PCI-X 133 MHz
ISP Code version = 4.0.22
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x020300
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x5001438002fdf7c3
N_Port Port World Wide Name = 0x5001438002fdf7c2
Switch Port World Wide Name = 0x200300051e365dca
Switch Node World Wide Name = 0x100000051e365dca
Driver state = ONLINE
Hardware Path is = 0/0/4/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx & 24xx Driver B.11.23.06 /ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Jun 23 2006,14:06:46
Check powerpath links in HP-UX
Posted by Lincoln Zuljewic Silva in HP-UX on December 22, 2009
To check if the powerpath links are up in HP-UX, you can use the following command:
# powermt display dev=all