One of the things I need to test is using iSCSI to store data on some Windows servers. Here is a quick synopsis of how to create a storage pool and then create a ZFS dataset that can be shared using iSCSI
Create the pool from the available disks, if they don’t already exist. Be sure to read docs on what kind of pool you want to create. I’m using raid-z
zpool create raid-z test /dev/dsk/c0t1d0 /dev/dsk/c0t2d0 /dev/dsk/c0t3d0 /dev/dsk/c0t4d0
Create the data set and share it using iSCSI
zfs create -s -V40G test/iscsi
zfs set shareiscsi=on test/iscsi
You should now have 40GB of iscsi based storage available. Use iscsi-initiator on Windows XP/Vista/Server 2003 to attach to the iscsi target, assign a drive letter and format.