Go to main content

Managing Devices in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

How to Access iSCSI Disks

After the devices have been discovered by the Oracle Solaris iSCSI initiator, the login negotiation occurs automatically. The Oracle Solaris iSCSI driver determines the number of available LUs and creates the device nodes. Then, the iSCSI devices can be treated as any other SCSI device.

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

You can view the iSCSI disks on the local system by using the format utility.

  1. Review the iSCSI LU information in the format output.
    initiator# format
    0. c0t600144F0B5418B0000004DDAC7C10001d0 <SUN-COMSTAR-1.0 cyl 1022 alt 2 hd 128 sec 32>
    /scsi_vhci/disk@g600144f0b5418b0000004ddac7c10001
    1. c8t0d0 <Sun-STK RAID INT-V1.0 cyl 17830 alt 2 hd 255 sec 63>
    /pci@0,0/pci10de,375@f/pci108e,286@0/disk@0,0
    2. c8t1d0 <Sun-STK RAID INT-V1.0-136.61GB>
    /pci@0,0/pci10de,375@f/pci108e,286@0/disk@1,0
    3. c8t2d0 <Sun-STK RAID INT-V1.0-136.61GB>
    /pci@0,0/pci10de,375@f/pci108e,286@0/disk@2,0
    4. c8t3d0 <Sun-STK RAID INT-V1.0 cyl 17830 alt 2 hd 255 sec 63>
    /pci@0,0/pci10de,375@f/pci108e,286@0/disk@3,0
    Specify disk (enter its number): 0
    selecting c0t600144F0B5418B0000004DDAC7C10001d0
    [disk formatted]

    In the above output, disk 0 is an iSCSI LU under MPxIO control. Disks 1-4 are local disks.

  2. You can create a ZFS storage pool and ZFS file systems on the iSCSI LU.
    initiator# zpool create pool-name c0t600144F0B5418B0000004DDAC7C10001d0
    initiator# zfs create pool-name/fs-name

    The ZFS file system is automatically mounted when created and is remounted at boot time.