iSCSI and SMB on same zpool

Added by Chris Casey about 1 year ago

Howdy,

Can I use 1 zpool and have one file system shared via smb and one for mounting via iSCSI?

example = zpool = data data/archives = smb data/iscsitarget = iscsi

or will this be a problem.

Furthermore, iSCSI on Nexenta, do I follow a Linux guide or Opensolaris guide?


Replies

RE: iSCSI and SMB on same zpool - Added by Christian o about 1 year ago

Hi,

yes you can use a single zpool to back multiple filesystems and share one as smb and share the other as iscsi (they can not be the same of course)

You should use solaris or nexenta guides.

rgds C

RE: iSCSI and SMB on same zpool - Added by Chris Casey about 1 year ago

Thanks,

Got any good guides you can point me too?

Aristotle Jones

RE: iSCSI and SMB on same zpool - Added by Patrick Scheich about 1 year ago

This is caused by the different attributes of the objects which are needed by the two ways to expose storage to the outside.

cifs, smb, nfs, appletalk are protocols that expose a filesystem-type object
pSCSI, iSCSI, SAS, FibreChannel, FCoE, AoE, etc. are protocols that expose blockstorage-type objects

  • a filesystem-type object in the ZFS wold is a dataset created by 'zfs -create poolname/fsname'
  • a blockstoage-type object the ZFS wold is a dataset created by 'zfs -create -V size poolname/volname'

so one zpool could be used to be backend storage provider for filesystems as well as volumes (aka LUNs aka Blockdevices...)
The filesystem-type datasets are exposable by ZFS attributes see 'man zfs' search "sharesmb"
The volume-type datasets could be exposed in various other ways, here you may look at COMSTAR for further reading.