OpenSolaris COMSTAR

Installation

1. Install COMSTAR Server Utilities

# pkg install storage-server

# pkg install SUNWiscsi

2. Disable iscsitgt and physical:nwam Service – itadm gets confused with multiple physical instances; this

assumes not using nwam.

# svcadm disable iscsitgt

# svccfg delete svc:/network/physical:nwam

3. Reboot Server

# shutdown -i6 -g0 -y

4. Enable stmf service

# svcadm enable stmf

# svcadm enable -r svc:/network/iscsi/target:default

 

Simple Setup An iSCSI LUN

 

1. Create a ZFS Volume

# zfs create -V SIZE pool/volume

2. Configure iSCSI Target and LUN

# sbdadm create-lu /dev/zvol/rdsk/pool/volume

# stmfadm add-view <GUID>

## Create a send-target target ###

# itadm create-tpg nge1 10.1.15.20

# itadm create-target -t nge1

##################################

## OR

## Create a target for static assignment ##

# itadm create-target

###########################################

Walkthrough of iSCSI LUN Example

# zpool create npool disk1

# zfs create npool/iscsitgt

# zfs create -V 10g npool/iscsitgt/vdisk_dom1

# sbdadm create-lu /dev/zvol/rdsk/npool/iscsitgt/vdisk_dom1

Created the following LU:

GUID

DATA SIZE

SOURCE

—————–  ——————-  ———-

600144f0c312030000004a366cee0001 19327287296

/dev/zvol/rdsk/npool/iscsitgt/vdisk_dom1

# stmfadm add-view 600144f0c312030000004a366cee0001

# itadm create-target

Target iqn.1986-03.com.sun:02:

278f5072-6662-e976-cc95-8116fd42c2c2 successfully created

 

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top