Go to main content

Managing SAN Devices and Multipathing in Oracle® Solaris 11.3

Exit Print View

Updated: March 2018
 
 

Accessing iSCSI Disks

You can create a ZFS pool on the LU and then create a ZFS file system.

You can view the iSCSI disks on the local system by becoming an administrator and by using the format utility or the iscsiadm list target command.

To display and review the iSCSI LU information by using the iscsiadm list target command:

initiator# iscsiadm list target -S | grep OS Device Name | sort -u
             OS Device Name: /dev/rdsk/c0t600144F019C1CA000000531F5C0B0001d0s2
             OS Device Name: /dev/rdsk/c0t600144F019C1CA000000531F5C130002d0s2
             OS Device Name: /dev/rdsk/c0t600144F0D1720B000000540094860001d0s2

To display and review the iSCSI LU information by using the format command:

initiator# format       
       0. c0t600C0FF0000000000011C51EDAA44600d0 <SUN-StorEdge 3510-415F-272.96GB>
          /scsi_vhci/ssd@g600c0ff0000000000011c51edaa44600
       1. c0t5000CCA00ABB24F0d0 <HITACHI-H103030SCSUN300G-A2A8-279.40GB>  S11
          /scsi_vhci/disk@g5000cca00abb24f0
       2. c0t5000CCA00ABBAA9Cd0 <HITACHI-H103030SCSUN300G-A2A8-279.40GB>  S10u11
          /scsi_vhci/disk@g5000cca00abbaa9c
       3. c0t5000CCA00ABBAAD0d0 <HITACHI-H103030SCSUN300G-A2A8-279.40GB>  s12
          /scsi_vhci/disk@g5000cca00abbaad0
       4. c0t5000CCA00ABBABDCd0 <HITACHI-H103030SCSUN300G-A2A8-279.40GB>
          /scsi_vhci/disk@g5000cca00abbabdc
       5. c0t5000CCA00ABBAC6Cd0 <HITACHI-H103030SCSUN300G-A2A8-279.40GB>
          /scsi_vhci/disk@g5000cca00abbac6c
Specify disk (enter its number): 0
selecting c0t600144F0B5418B0000004DDAC7C10001d0
[disk formatted]

In this sample output, disk 0 is an iSCSI LU under multipathing control. Disks 1-4 are local disks.

You can create a ZFS storage pool and ZFS file system on the iSCSI LU.

# zpool create iscsi-pool c0t600144F0B5418B0000004DDAC7C10001d0
# zfs create iscsi-pool/data-fs

The ZFS file system is automatically mounted when created and is remounted at boot time. For more information about ZFS file system, see Managing ZFS File Systems in Oracle Solaris 11.3.