> Next question. > > I have a bunch of SMB shares using ZFS. > Can I convert these to be iSCSI targets? > > I see there is a zsf set shareiscsi command, can I > use this? > > The problem is that the SMB shares contain a lot of > data, so I don't really want to have to remove it all > to get this working the way COMSTAR specifies if I > can simply convert it. > > Am I missing something?
An NFS or SMB share is of a filesystem, or part of one; a bunch of individual files. An iSCSI share is of a block device, just a bunch of storage space, which the _client_ imposes a filesystem structure on. So the only way to "convert" is to have the space to set up both, and then (on the client) copy from one to the other. One might be able to come up with a way to initialize the block device (zvol, probably) on the server, without having to copy over the network. I'm not sure I like the idea of trying to create a zpool within a zvol all on the same system though; sounds like the sort of thing that could easily get tied in knots. And if it did work, one would have to export the zpool on the zvol before sharing it out to the client... -- This message posted from opensolaris.org