Skip to main content

Solaris Lun Related commands



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
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.
/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.
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:
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


by: Bibhuti Bhusan

Comments

Popular posts from this blog

HP SMART ARRAY CLI COMMANDS

Show configuration : /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information for all controllers /opt/hp/hpssacli/bin/hpssacli ctrl all show detail Show detailed controller information for controller in slot 0 /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail Rescan for New Devices /opt/hp/hpssacli/bin/hpssacli rescan Physical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status Show detailed physical disk information /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail Logical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status View Detailed Logical Drive Status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show Create New RAID 0 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0 Create New RAID 1 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld dri...

Monthly Mksys OS backup AIX

Step-1 Estimate Backup: ================================================================= df -tk `lsvgfs rootvg` | awk ‘{total+=$3}\ END {printf “Estimated mksysb size: %d bytes, %.2f GB\n”, total*1024, total/1024/1024}’ It will give you the estimated time of backup, Step-2 Backup Command: backupios -file /home/padmin/28August2013_TESTVIOI_mksysb ===============> VIO Backup Command mksysb -e -i -X /mksysb/10Nov2013_server-1_mksysb============================>AIX server Backup command Step-3 ================= Pre -checks: => check NFS FS size(Backup file) and root vg FS sizes . Note : if any FS Full Zip old logs => To check performance of the server => To check root VG FS => To check /etc/exclude ========================== Step-4 ================================ server-1 mksysb -e -i -X /mksysb/02March2014_server-1_mksysb server-2 mksysb -e -i -X /mksysb/02March2014_sever-2_mksysb Post checkups: ==> check the process running o...

HP proliant SERVER hardware commands

to check the failed disk, adapter, any physical component on hp prolient server use the below important command. # hpacucli controller all show config———-to See the failed disk in HP proliant server  Smart Array P410i in Slot 0 (Embedded) (sn: 500143802590F6C0) logicaldrive 1 (558.9 GB, RAID 1, Interim Recovery Mode) array A (SAS, Unused Space: 0 MB) physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 600 GB, OK) physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 600 GB, Failed)====>indicating the faild drive SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 500143802590F6CF) [root@TEST:/root]# hpacucli ctrl slot=0 show Smart Array P410i in Slot 0 (Embedded) Bus Interface: PCI Slot: 0 Serial Number: 500143802590F6C0 Cache Serial Number: PBCDH0CRH1Z6R3 RAID 6 (ADG) Status: Disabled Controller Status: OK Hardware Revision: C Firmware Version: 6.60 Rebuild Priority: Medium Expand Priority: Medium Surface Scan Delay: 3 secs Surface Scan Mode: Idle Queue Depth: Autom...