OpenSolaris – iSCSI
Want iSCSI in opensolaris?
Grab SUNWiscsitgt via package manager.
enable the server via svcadm;
svcadm enable iscsitgt
create your zfs iscsi pool; (this command will limit iscsi drive to 500GB in size)
zfs create -V 500G tank/iscsi
set isci on via zfs command;
zfs set shareiscsi=on tank/iscsi
check that target is up and running;
iscsitadm list target -v
Done. Should be able to connect via ip from another machine. I have not covered CHAP or any client side configuration. Assumed isolated LAN.
Related posts:
- vSphere and Multipathing iSCSI This is just a quick reference to create a multiplathing...
- Jumbo Frames on your vSphere ESXi box Continuing on from this http://sigtar.com/2010/02/04/vsphere-and-multipathing-iscsi/ you may want to implement...
- vmware – measuring iscsi write performance I picked this trick up off vmware support. If you’ve...
- zfs – now has dedup! Cool. zfs as of version 21 has deduplication built in....
- ESX – network utilization One of the best articles i have found on this...
Related posts brought to you by Yet Another Related Posts Plugin.
Categories: Networking, OpenSolaris, Storage

Great blog I enjoy your posts. You may consider using comstar for iscsi target but its not integrated with zfs command yet.
#update opensolaris with dev release
pkg set-authority -O http://pkg.opensolaris.org/dev opensolaris.org
pkg image-update
#install comstar
pkg install storage-server
#enable new solaris iscsi target provider (iscsit)
svcadm disable iscsitgt
svcadm enable svc:/system/stmf
svcadm enable svc:/network/iscsi/target
Thanks Sh0x, is there any advantages to comstar over the Sun target service?
Sound like fun to have it working…!
I’ve tried exactly the same commands but the last one is not returning anything :
iscsitadm list target -v
Do you have any idea what could be the cause, I asked all around, nothing.. I’m stuck there since weeks :/ Thank you for your help!