Category Archives: ZFS

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 ServiceTo 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 .

Download LDoms_Manager-1_3.zip file. unzip it and run the install-ldm script from the unzip folder

# ./Install/install-ldm
# cd $DIR/LDoms_Manager-1_3

Verify the installation with executing following command.

# /opt/SUNWldm/bin/ldm list

Allocate systems resources to the primary (or control) domain

Creating the control domain with 8 vcpu’s and 4 GB RAM.

Note: If you have any cryptographic devices in the control domain, you cannot dynamically reconfigure CPUs. So if you are not using cryptographic devices, set-mau to 0.
Assign one cryptographic resource to the control domain, primary. This leaves the remainder of the cryptographic resources available to a guest domain.

# ldm set-mau 1 primary

Assigning 8 virtual CPUs and 4GB memory to the control domain, primary. This leaves the remainder of the virtual CPUs available to a guest domains.

# ldm set-vcpu 8 primary
# ldm set-memory 4G primary

Making the modified configuration permanent using list-spconfig option.

# ldm list-spconfig
factory-default [current]

Adding a logical domain machine configuration to the system controller (SC).

By default, networking between the control/service domain and other domains in the system is disabled. To enable this, the virtual switch device should be configured as a network device. The virtual switch can either replace the underlying physical device (nxge0 in this example) as the primary interface or be configured as an additional network interface in the domain.

Create a ZFS file system that will be used to create virtual disks for VMs. We can use either a local disk or iSCSI target created on the storage for creating ZFS over it.
Create a ZFS pool on the localdisk.

Now boot from the virtual iso image appending the :f (this is to specify the slice 6 of the DVD/ISO image). This can also be done using boot iso:f

{0} ok boot /virtual-devices@100/channel-devices@200/disk@1:f

Follow on screen instructions to complete rest of the solaris installation.

As we have used ZFS pool, New LDOMs can be easily created with ZFS snapshot.
Execute sys-unconfig on ld01. This will halt the guest domain ld01 and allow a snapshot of the base ldom’s disk to be taken.

# sys-unconfig

stop ld01 domain

# ldm stop-domain ld01-db01

Remove the ISO disk from the guest domain, and execute the snap shot of the disk image