Openindiana with iSCSI to Mac Initiator

Don’t have enough space on your existing Time Machine backup disk?  Time Capsule need to be expandable or redundant, or just work correctly?

Try this recipe!

(next up: Time Machine with OpenIndiana/FCoE) 

Prereqs:
pkg install SUNWiscsit
pkg install SUNWstfm
svcadm enable -r iscsi/target:default

Creation of zvol:
zfs create -V 500G rspool/TimeMachine

Add to SCSI block disk:
sbdadm create-lu /dev/zvol/rdsk/rspool/TimeMachine

Get GUID for SCSI target mode framework adding, etc.:
sbdadm list-lu

Add to SCSI target mode framework:
stmfadm add-view 600144f044bb4a0000004e204e5e0001

Create iSCSI target:
itadm create-target

Get target info (target name, etc) for initiator, deleting target, etc:
itadm list-target -v

Get iSCSI initator for Mac:
http://www.studionetworksolutions.com/products/product_detail.php?pi=11
- Open dmg, install and reboot.
- Use info from itadm list-target to configure adding the target onto the Mac in System Preferences/globalSAN iSCSI target initiator.
- Add IP to iSCSI target initiator.
- Giggity.

Expand the zvol:
zfs set volsize=750G rspool/TimeMachine 

Delete target:
itadm delete-target -f iqn.1986-03.com.sun:02:8f0c7105-0262-e2c5-9c4e-a59edebd42b4

Remove from SCSI target mode framework:
stmfadm remove-view -l 600144f044bb4a0000004e204e5e0001

Remove from SCSI block disk:
sbdadm delete-lu 600144f044bb4a0000004e204e5e0001

Recover space from zvol:
zfs destroy rspool/TimeMachine

Citations:
http://www.tek-blog.com/main/index.php?blog=2&title=comstar_howto&more=1&c=1&tb=1&pb=1
And wherever Mike Schenck’s blog went.