Saturday, July 24, 2010
Command to check disk presented to HBA
example of output
# cfgadm -al -o show_FCP_dev
Ap_Id Type Receptacle Occupant Condition
c7 fc-fabric connected configured unknown
c7::500308c001a1b8ab,0 array-ctrl connected configured unknown
c7::500308c001a1b8ab,1 tape connected configured unknown
c7::500308c001a1b8ab,2 tape connected configured unknown
c7::500308c001a1b8b2,0 array-ctrl connected configured unknown
c7::500308c001a1b8b2,1 tape connected configured unknown
c7::500308c001a1b8b2,2 tape connected configured unknown
c8 fc-fabric connected configured unknown
c8::5006048c52a65906,0 disk connected configured unknown
c8::5006048c52a65906,17 disk connected configured unknown
c8::5006048c52a65906,18 disk connected configured unknown
c8::5006048c52a65906,19 disk connected configured unknown
c8::5006048c52a65906,20 disk connected configured unknown
c8::5006048c52a65906,48 disk connected configured unknown
c8::5006048c52a65906,49 disk connected configured unknown
c9 fc-fabric connected configured unknown
c9::5006048c52a65909,0 disk connected configured unknown
c9::5006048c52a65909,17 disk connected configured unknown
c9::5006048c52a65909,18 disk connected configured unknown
c9::5006048c52a65909,19 disk connected configured unknown
c9::5006048c52a65909,20 disk connected configured unknown
c9::5006048c52a65909,48 disk connected configured unknown
c9::5006048c52a65909,49 disk connected configured unknown
c10
Wednesday, July 7, 2010
Scan for new disks
AIX# cfgmgr
AIX# fget_config -Av
Solaris:
Solaris# devfsadm
Solaris# cfgadm -a
Solaris# format (to view new devices)
Sun Solaris 9 Commands to Connect SAN Disks
There are always a bunch of strange commands to connect a server to SAN disks. In my case, I’m running Solaris 9, using QLogic Fibre Channel cards, and connecting to an IBM DS4300.
1) Connect the Solaris server SAN disks. After I made the connection, the GUI that allows me to zone the SAN recognized the QLogic connections, and I zoned the LUNs.
If you need more detailed instructions, here are some potentially useful posts: How to Zone a Brocade SAN Switch and How to Zone IBM DS4000 SAN Disks.
2) Scan your disks, and it should show up as a new disk when you run “format”.
Solaris# devfsadm
Solaris# format
My result: No new disks. Sigh.
3) Run a bunch of cryptic but useful diagnostic commands:
To see your HBA ports and whether you’re connected:
Solaris# luxadm -e port
Found path to 3 HBA ports
/devices/pci@8,700000/SUNW,qlc@2/fp@0,0:devctl CONNECTED
/devices/pci@8,700000/SUNW,qlc@2,1/fp@0,0:devctl CONNECTED
/devices/pci@8,600000/SUNW,qlc@4/fp@0,0:devctl CONNECTED
To see your disks:
Solaris# luxadm probe
To see your HBA ports (type fc-private, below) and their connected disks (type disk):
Solaris# cfgadm -al
Ap_Id Type Receptacle Occupant Condition
c8 fc-private connected configured unknown
c8::200800a0b8199b3b disk connected configured unknown
c9 fc-private connected configured unknown
c9::200900a0b8199b3b disk connected configured unknown
4) Force Fibre Channel SAN disk rescan, since everything looks connected and okay. Use your device path from “luxadm -e port” output.
Solaris# luxadm -e forcelip /devices/pci@8,700000/SUNW,qlc@2/fp@0,0:devctl
Solaris# luxadm -e forcelip /devices/pci@8,700000/SUNW,qlc@2,1/fp@0,0:devctl
Solaris# luxadm -e forcelip /devices/pci@8,600000/SUNW,qlc@4/fp@0,0:devctl
5) Rerun format command.
Solaris # format
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0107111e1,0
1. c1t1d0 t2
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e01070d761,0
2. c7t600A0B801019B1B2002032A5489C60F3d0
/scsi_vhci/ssd@g600a0b801019b1b2002032a5489c60f3
source: http://technotes.twosmallcoins.com/?tag=devfsadm