Thursday, 30 January 2014

Connecting NetApp to Solaris Host over Fibre Channel


Once you have completed FC zoning, you are ready for host and target connectivity. Here is the step by step procedure: 




Download relevant (solaris 10) NetApp toolkit and copy it to /var/opt
Go to # /var/opt/
#pkgadd -d ./NTAPSANTool.pkg
#/opt/NTAP/SANToolkit/bin/basic_config -ssd_set
Enter Y
#Reboot
Now run
#stmsboot -D fp-e (this req a reboot as well)(To enable ISCSI multipatching on Fiber Cable)
init 6
After the machines comes back, run to check the output of all raw disks!!
#stmsboot-L (To display the names under the Solaris Multipathing)
To configure ALUA for SAN LUNs
# /opt/NTAP/SANToolkit/bin/mpxio_set -d
then reboot
again check
# stmsboot –L or devfsadm –C  (if  Solaris  I/O  multipathing  is not enabled, then no mappings are displayed, also check ALUA on SAN igroups it must be enable for mpxio)
To check the details of HBAs
# cd /opt/NTAP/SANToolkit/bin/
#    ./sanlunfcp show adapter -v
To show luns
#   ./sanlunlun show
# mpathadm list lu
* Here you will find 2 / 4 paths to storage on the basis of this assumption that each node has one / two FC paths to one / two SAN Switches. (Here we were shown 4 paths because we had 2 HBA’s)
Connect with root credentials
Luns require formatting, partitioning and labeling as given in the following procedure:-
#Format
Specify disk (enter its number): 1
format> p  (Press ‘p’ to ‘print’ the menu)
format> p (Select the partition option by pressing ‘p’)
partition> p (This will print the partition menu)
partition> 0 (Assign 48Mb to root slice’0’)
partition> p (Check the assigned partition)
partition> 1 (Set starting cylinder and partition size to 0)
partition> p (Check the slice if it is 0)
In the similar fashion turn the size to 0 of all rest of the slices
partition> 6
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 3 (as first root slice is from cylinder  0-2, this will differ if the lun is of different size, please exercise caution )
Enter partition size[0b,0c,3e,0.00mb,0.00gb]: $ (The $ will issue all the saved space to this slice)
partition> p(Now check the partition table and null all the slices except slice 0 and 6)
partition> label (Press ‘yes’ and do the same labeling step on the other nodes in the cluster)