Mounting Storage LUN into Solaris ZFS Storage Pool and Dataset

Aug 26, 2016 1:14 AM

Hey, It's a simply way to mount your external disks (storage LUN) to your solaris box using ZFS. For example we have one LUN from storage box. The storage communicates to server over FC connection that sanswitch is at there. Bellow the simply diagram : |storage box|-------------|sanswitch|--------------|solaris box| In server, should be check wwn number. This number is used by sanswitch to construct zone configuration. In solarisbox we can use 'fcinfo' command to check wwn on FC card which state is online. In sanswitch check the port status, is it online or not?
After known wwn number of FC card in server and wwn number of storage controller. Then configure sanswitch zone to meet wwn of server's fc card and wwn of storage controller. In solaris box after status of the san connection is connected from server to storage, it's automatically LUNs on storage will detected by server. Of course the LUNs are assigned to the server in storage side. After LUNs detected by server, the LUNs will printed in 'format' output command. The new LUNs will asking a label, then it sould be labeled. Detected LUNs we use to create zfs pool and dataset bellow : Create a pool :
 # zpool create poolname devicename  
# zpool create mypool c0t4849544143484920373530313234994885783307d0
Set the zfs propertise of canmount to be off:
# zfs set canmount=off poolname
# zfs set canmount=off mypool
Create a zfs dataset from the LUN pool:
# zfs create poolname/datasetname
# zfs create mypool/mydataset
Set mountpoint directory for the dataset:
# zfs set mountpoint=/directory poolname/datasetname
# zfs set mountpoint=/xdata mypool/mydataset
Check result :
# zfs list
# df -h
/* End */

0 comments:

Article list :