This section describes how to create a Solaris zone. This section contains the following topics:
Before creating a Solaris zone, you should perform the following tasks:
You can create an iSCSI initiator by doing the following:
Before you can create an iSCSI initiator, you must identify an initiator IQN. The initiator IQN is a unique reference number associated with a specific compute node. To find the initiator IQN for a compute node, do the following:
Log in to an Exalogic compute node.
Run the iscsiadm list initiator-node
command as follows:
# iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:e00000000000.51891a8b
Initiator node alias: el01cn01
Login Parameters (Default/Configured):
Header Digest: NONE/-
Data Digest: NONE/-
Max Connections: 65535/-
Authentication Type: NONE
RADIUS Server: NONE
RADIUS Access: disabled
Tunable Parameters (Default/Configured):
Session Login Response Time: 60/-
Maximum Connection Retry Time: 180/-
Login Retry Time Interval: 60/-
Configured Sessions: 1
In this example, the initiator IQN is:
iqn.1986-03.com.sun:01:e00000000000.51891a8b
Log in to the storage appliance BUI as the root
user.
Click the Configuration tab.
Click SAN.
Click Initiators.
Click iSCSI Initiators.
Click the plus button next to iSCSI Initiators to create a new iSCSI initiator.
In the Initiator IQN field, enter the initiator IQN you identified in step 1.
In the Alias field, enter a name for the iSCSI initiator you are creating.
If you are using CHAP authentication, select the Use CHAP check box and fill in the Initiator CHAP name and Initiator CHAP secret fields as you did in Create an iSCSI Target.
Note:
For more information on setting up CHAP authentication between the compute node and storage appliance, see the "Setting Up CHAP Authentication" topic in the following document: http://www.oracle.com/technetwork/server-storage/sun-unified-storage/documentation/iscsi-quickstart-v1-2-051512-1641594.pdf
Click OK.
Add the iSCSI initiator to an iSCSI initiator group by dragging and dropping the initiator.
If required, you can create a new iSCSI initiator group.
You can create the project and LUN by doing the following:
Create a project as described in Create Custom Projects.
You can create the LUN by doing the following:
Next to the Project, click Shares.
Click LUNs.
The list of LUNs appears.
Click the plus button next to LUNs.
In the Project field, select the project you created in step 1.
In the Name field, enter a name for the LUN.
Enter the size of the volume in GB.
Select Thin provisioned.
Set the Volume block size as 32k.
In the Target Group field, select the target group you used in Create an iSCSI Target.
In the Initiator Group field, select the initiator group you used in Create an iSCSI Initiator.
Click Apply.
Note the GUID of the LUN you created in the list of LUNs. For example, g600144f09c96cca900005190bfc4000a.
Note:
After creating the LUN, ensure that the Write cache enabled check box is deselected. You can find this check box in the Protocols tab of the LUN.
You must disable the write cache on the LUN permanently by doing the following:
Before the compute node can use the LUN, you must format the LUN. You can format the LUN by doing the following:
Log in to a compute node as the root
user.
Run the iscsiadm
commands to discover the iSCSI targets from the compute node:
# iscsiadm add discovery-address IPoIB_address_of_the_storage_appliance
# iscsiadm modify discovery -t enable
In this example, IPoIB_address_of_the_storage_appliance
is the IP address of the storage appliance on the IPoIB network.
Run the following command to load drivers, attach device instances, create logical links to device nodes, and load the device policy for iSCSI:
# devfsadm -c iscsi
Identify the disk you should format and label by running echo | format
as follows:
# echo | format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t600144F09C96CCA90000518CDEB10005d0 <SUN-ZFS Storage 7320-1.0-64.00GB> /scsi_vhci/disk@g600144f09c96cca90000518cdeb10005 1. c0t600144F09C96CCA90000518CDF100006d0 <SUN-ZFS Storage 7320-1.0-64.00GB> /scsi_vhci/disk@g600144f09c96cca90000518cdf100006 2. c0t600144F09C96CCA90000518CDFB60007d0 <SUN-ZFS Storage 7320-1.0-64.00GB> /scsi_vhci/disk@g600144f09c96cca90000518cdfb60007 3. c0t600144F09C96CCA900005190BFC4000Ad0 <SUN-ZFS Storage 7320-1.0 cyl 8352 alt 2 hd 255 sec 63> /scsi_vhci/disk@g600144f09c96cca900005190bfc4000a 4. c7t0d0 <LSI-MR9261-8i-2.12-28.87GB> /pci@0,0/pci8086,340a@3/pci1000,9263@0/sd@0,0 Specify disk (enter its number): Specify disk (enter its number):
The value after /scsi_vhci/disk@g
is the GUID of the LUN you created in Create the Project and LUN. In this example, the disk c0t600144F09C96CCA900005190BFC4000Ad0
with the GUID g600144f09c96cca900005190bfc4000a
should be formatted and labelled.
Format the disk by doing the following:
Run the format command to start formatting the disk as follows:
# format -e c0t600144F09C96CCA900005190BFC4000Ad0 selecting c0t600144F09C96CCA900005190BFC4000Ad0 [disk formatted]
The format
prompt appears.
Enter fdisk
to manipulate the partition tables as follows:
format> fdisk No fdisk table exists. The default partition for the disk is: a 100% "SOLARIS System" partition
When prompted, enter n to edit the partition table.
Type "y" to accept the default partition, otherwise type "n" to edit the partition table. n
Enter 1 to set the partition type.
Enter f to set the partition type as EFI (Protective) as follows:
Select the partition type to create:
1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12
6=DOS16 7=DOSEXT 8=DOSBIG 9=DOS16LBA A=x86 Boot
B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI (Protective)
G=EFI_SYS 0=Exit? f
Label the LUN by doing the following:
Enter 6 to label the LUN.
The format
prompt appears.
Enter label
to label the disk as follows:
format> label
The list of label types appears.
Enter 1 to specify the label type as an EFI label as follows:
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 1
A confirmation message appears.
Enter y
to continue.
Enter quit
to exit the format prompt.
You can use the format
command to ensure the disk is available and the same size you specified in the storage appliance BUI as follows:
# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t600144F09C96CCA90000518CDEB10005d0 <SUN-ZFS Storage 7320-1.0-64.00GB> /scsi_vhci/disk@g600144f09c96cca90000518cdeb10005 1. c0t600144F09C96CCA90000518CDF100006d0 <SUN-ZFS Storage 7320-1.0-64.00GB> /scsi_vhci/disk@g600144f09c96cca90000518cdf100006 2. c0t600144F09C96CCA90000518CDFB60007d0 <SUN-ZFS Storage 7320-1.0-64.00GB> /scsi_vhci/disk@g600144f09c96cca90000518cdfb60007 3. c0t600144F09C96CCA900005190BFC4000Ad0 <SUN-ZFS Storage 7320-1.0-64.00GB> /scsi_vhci/disk@g600144f09c96cca900005190bfc4000a 4. c7t0d0 <LSI-MR9261-8i-2.12-28.87GB> /pci@0,0/pci8086,340a@3/pci1000,9263@0/sd@0,0 Specify disk (enter its number):