Configuring iSCSI and ZFS pool on Sun Storage 7410


Sun Storage 7410 Unified Storage System Tech Spec

Create a iSCSI target

ISCSI target can be quickly created using the the storage web console.
To create a new iSCSI target go to the Configuration → SAN → iSCSI Targets
Click on the (+) icon to create a new iSCSI target.

Click on the OK after setting target properties. It should create a new iSCSI target as given below.

To share LUNs only via particular targets build Target Groups. To create a group or add to an existing one, drag the entity from the left to the table on the right. When done adding new target group click on the Apply to save the changes.

Create and Share a LUN as an iSCSI target
LUN can be quickly created using the the storage web console.
To create a new LUN go to the Shares → Projects → default → LUNs.
Click on the (+) icon and provide the LUN configuration.

Target group “targets-0” share this LUN as an ISCSI target.
When done click on the Apply to create a LUN.

Enable iSCSI Data Service
To provide LUN access via the iSCSI protocol make sure iSCSI Data Service is enabled.
Go to the Configuration → Services and If the service is not online, click the power icon and the service should come online .

Mounting iSCSI device on the Solaris client
Enable iSCSI initiator daemon

bash-3.00# svcadm enable svc:/network/iscsi/initiator:default
bash-3.00# svcs svc:/network/iscsi/initiator:default
STATE          STIME    FMRI
online         Aug_05   svc:/network/iscsi/initiator:default
bash-3.00#

bash-3.00# iscsiadm modify discovery --sendtargets enable

add Storage IP address as the discovery-address. You need to provide the appropriate iSCSI target server ip in place of 10.6.140.88

bash-3.00# iscsiadm add discovery-address 10.6.140.88

You should be seeing iSCSI target details discovered from the Storage (10.6.140.88)

bash-3.00# iscsiadm list target
Target: iqn.1986-03.com.sun:02:661c5ce0-9a48-4d29-dc88-be12e2937635
        Alias: ldom-target
        TPGT: 2
        ISID: 4000002a0000
        Connections: 1
bash-3.00#

Format and Label the disk.

bash-3.00# format
Searching for disks...done

c5t600144F09E0C3A8000004C62AE220003d0: configured with capacity of 499.91GB

AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@400/pci@0/pci@8/scsi@0/sd@0,0
       1. c1t1d0
          /pci@400/pci@0/pci@8/scsi@0/sd@1,0
       2. c5t600144F09E0C3A8000004C62AE220003d0
          /scsi_vhci/ssd@g600144f09e0c3a8000004c62ae220003
Specify disk (enter its number): 2
selecting c5t600144F09E0C3A8000004C62AE220003d0
[disk formatted]
Disk not labeled.  Label it now? yes

Create a ZFS pool on the iSCSI disk.

bash-3.00# zpool create iscsi-ldompool c5t600144F09E0C3A8000004C62AE220003d0s6
bash-3.00# zpool list
NAME             SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
iscsi-ldompool   496G  76.5K   496G     0%  ONLINE  -
ldompool         136G  50.6G  85.4G    37%  ONLINE  -
bash-3.00#
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s