SolarisHowtoScanFCLUNSandSCSIDisks?UnixArena
Solaris
Solaris 10
Applications and Databases storage requirement on the servers will be keep on increase day by day. According to that, Unix
admin need to increase filesystem space on Unix servers periodically. Assigning big SAN space to filesystem also not possible
since storage cost involved on that. So its a routine work for Unix admin and need to follow best practice for scanning the
storage and adding in to the filesystem. In Solaris, we can able to scan the LUNS without rebooting the host. But in rare
circumstances, we may need to end up with server reboot to see newly assigned LUNS. Here we will see how to scan the local
disks and SAN LUNsin Solaris host.
ScanningFC/SANLUNSinSolaris
Before scanning LUNS, we see some useful commands which are related to Fibre Channel(FC).
1.List the connected HBAs.
root@Unixarena-SOL11:~# luxadm -e port |grep CONNECTED
/devices/pci@1d,700000/SUNW,qlc@1,1/fp@0,0:devctl CONNECTED
/devices/pci@1d,700000/SUNW,qlc@3/fp@0,0:devctl CONNECTED
fc-fabric
connected
configured
unknown
c4
fc-fabric
connected
configured
unknown
Unix@sol#
3.To find the HBAs World wide Node number (WWN),use fcinfo command,
Unix@sol# fcinfo hba-port |grep Port
HBA Port WWN: 10000000c884bb48
HBA Port WWN: 10000000c884bb49
HBA Port WWN: 10000000c884b85c
HBA Port WWN: 10000000c884b85d
Unix@sol#
4.You can also find the WWN form luxadm command, if HBA is already connected to FC switch.
Unix@sol# luxadm -e dump_map /dev/cfg/c4
Pos
29900
Node WWN
Type
27400
(Disk device)
Unix@sol#
From the above output, the last line shows the HBA information.In the same you can find the other controller information as
well.
5.Zoning can beverifiedusing the below command.
Unix@sol# cfgadm -al -o show_FCP_dev c2 c4
6.If you see any controller port WWN showingas unconfigured ,then you can initiate FC session using below mentioned
http://www.unixarena.com/2013/08/solarishowtoscanfclunsandscsi.html
1/4
5/14/2016
SolarisHowtoScanFCLUNSandSCSIDisks?UnixArena
command.
Unix@sol# cfgadm -c configure c2::50080e8008cfb814
Unix@sol# cfgadm -c configure c4::50080e8008cfb814
Lets see how we can re-scan the SAN/FC luns on solaris 10/11 hosts.
To scan new FC luns, Just execute the below commands.
Scanning FC/SAN LUNS
1
cfgadm -al
To scan FC luns
devfsadm -c disk
tail /var/adm/messages
echo |format
luxadm probe also used to scan FC luns but i am happy to use cfgadm.
If you still not able to see the new LUNS/DISK ,then you can try to reset the HBA as last option if you have multipath enabled.
(Do not try in critical servers unless you have confident on multipathing)
1.List the connected HBA.
root@Unixarena-SOL11:~# luxadm -e port |grep CONNECTED
/devices/pci@1d,700000/SUNW,qlc@1,1/fp@0,0:devctl CONNECTED
/devices/pci@1d,700000/SUNW,qlc@3/fp@0,0:devctl CONNECTED
fc-fabric
connected
configured
unknown
c4
fc-fabric
connected
configured
unknown
Unix@sol#
Unix@sol# luxadm -e forcelip /dev/cfg/c2
3. Verify the controller status using cfgadm -al.Make sure disks didn;t loose any SAN paths after the HBA reset. If everything
seems to be okay ,then isssue the forcelip to the another controller.
If still you are not able to see the new FC/SAN LUNS ,then reboot the server and try. Once you see the new lun, make sure
that multiple FC paths are enabled to that. Minimum two FC paths required for SAN disks.
2/4
5/14/2016
SolarisHowtoScanFCLUNSandSCSIDisks?UnixArena
4.Still if you are not able to see the new disks,use cfgadm command and then devfsadm.
root@Unixarena-SOL11:~# cfgadm -al
Ap_Id
Type
Receptacle
Occupant
Condition
c8
scsi-bus
connected
configured
unknown
c8::dsk/c8t0d0
disk
connected
configured
unknown
c8::dsk/c8t1d0
disk
connected
configured
unknown
c8::dsk/c8t2d0
disk
connected
configured
unknown
c8::dsk/c8t3d0
disk
connected
configured
unknown
http://www.unixarena.com/2013/08/solarishowtoscanfclunsandscsi.html
3/4
5/14/2016
SolarisHowtoScanFCLUNSandSCSIDisks?UnixArena
c8::dsk/c8t4d0
disk
connected
configured
unknown
c8::dsk/c8t5d0
disk
connected
configured
unknown
c8::dsk/c8t6d0
disk
connected
configured
unknown
c8::dsk/c8t8d0
disk
connected
configured
unknown
root@Unixarena-SOL11:~#
root@Unixarena-SOL11:~# devfsadm -c disk
root@Unixarena-SOL11:~#
If you are using veritas volume manager, then you can verify the mutipathing using vxdmp commands.
Check out that article which provides the step by step method to SCAN FC luns on Redhat Linux.
http://www.unixarena.com/2013/08/solarishowtoscanfclunsandscsi.html
4/4