cfgadm -al -o show_FCP_dev |grep fc-fabric—->Verify FC channel‘s are connected and configured.
root@test:/> cfgadm -al -o show_FCP_dev |grep fc-fabric
c2 fc-fabric connected configured unknown
c3 fc-fabric connected configured unknown
c4 fc-fabric connected configured unknown
c5 fc-fabric connected configured unknown
c7 fc-fabric connected configured unknown
c9 fc-fabric connected configured unknown
c2 fc-fabric connected configured unknown
c3 fc-fabric connected configured unknown
c4 fc-fabric connected configured unknown
c5 fc-fabric connected configured unknown
c7 fc-fabric connected configured unknown
c9 fc-fabric connected configured unknown
fcinfo hba-port |grep Port————>WWN no solaris
root@test:/> fcinfo hba-port |grep Port
HBA Port WWN: 10000090fa1b5d9a
HBA Port WWN: 10000090fa1b5d9b
HBA Port WWN: 10000000c9f3a9aa
HBA Port WWN: 10000000c9f3a9ab
HBA Port WWN: 10000090fa1b5acc
HBA Port WWN: 10000090fa1b5acd
HBA Port WWN: 10000000c9f39fac
HBA Port WWN: 10000000c9f39fad
luxadm -e port |grep CONNECTED—————–>List the connected HBA.
HBA Port WWN: 10000090fa1b5d9a
HBA Port WWN: 10000090fa1b5d9b
HBA Port WWN: 10000000c9f3a9aa
HBA Port WWN: 10000000c9f3a9ab
HBA Port WWN: 10000090fa1b5acc
HBA Port WWN: 10000090fa1b5acd
HBA Port WWN: 10000000c9f39fac
HBA Port WWN: 10000000c9f39fad
luxadm -e port |grep CONNECTED—————–>List the connected HBA.
/devices/pci@0,600000/pci@0/pci@9/SUNW,emlxs@0/fp@0,0:devctl NOT CONNECTED
/devices/pci@0,600000/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
/devices/pci@2,600000/SUNW,emlxs@0/fp@0,0:devctl CONNECTED
/devices/pci@2,600000/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
/devices/pci@11,700000/SUNW,emlxs@0/fp@0,0:devctl NOT CONNECTED
/devices/pci@11,700000/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
/devices/pci@13,700000/SUNW,emlxs@0/fp@0,0:devctl CONNECTED
/devices/pci@13,700000/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
cfgadm -al———–to display all the disks in the server.
/devices/pci@0,600000/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
/devices/pci@2,600000/SUNW,emlxs@0/fp@0,0:devctl CONNECTED
/devices/pci@2,600000/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
/devices/pci@11,700000/SUNW,emlxs@0/fp@0,0:devctl NOT CONNECTED
/devices/pci@11,700000/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
/devices/pci@13,700000/SUNW,emlxs@0/fp@0,0:devctl CONNECTED
/devices/pci@13,700000/SUNW,emlxs@0,1/fp@0,0:devctl CONNECTED
cfgadm -al———–to display all the disks in the server.
Script for find out the disk with size
=======================================================
echo ‘p’>/tmp/cmd
echo ‘p’>>/tmp/cmd
for lun in `luxadm probe|grep Path| awk -F/ ‘{print $NF}’`
do
echo -n “$lun “
format -f /tmp/cmd $lun | grep backup | tail -1 | awk ‘{print $7}’;
done
The output will be like this:
echo ‘p’>>/tmp/cmd
for lun in `luxadm probe|grep Path| awk -F/ ‘{print $NF}’`
do
echo -n “$lun “
format -f /tmp/cmd $lun | grep backup | tail -1 | awk ‘{print $7}’;
done
The output will be like this:
c4t5006048452A5C208d216s2 33.72GB
c4t5006048452A5C208d230s2 603.72GB
c4t5006048452A5C208d231s2 603.72GB
c4t5006048452A5C208d232s2 603.72GB
c4t5006048452A5C208d233s2 603.72GB
c4t5006048452A5C208d234s2 603.72GB
c4t5006048452A5C208d235s2 603.72GB
c4t5006048452A5C208d236s2 603.72GB
c4t5006048452A5C208d237s2 603.72GB
c4t5006048452A5C208d240s2 0.94MB
c4t5006048452A5C208d241s2 0.94MB
c4t5006048452A5C208d230s2 603.72GB
c4t5006048452A5C208d231s2 603.72GB
c4t5006048452A5C208d232s2 603.72GB
c4t5006048452A5C208d233s2 603.72GB
c4t5006048452A5C208d234s2 603.72GB
c4t5006048452A5C208d235s2 603.72GB
c4t5006048452A5C208d236s2 603.72GB
c4t5006048452A5C208d237s2 603.72GB
c4t5006048452A5C208d240s2 0.94MB
c4t5006048452A5C208d241s2 0.94MB
by: Bibhuti Bhusan
Comments
Post a Comment