Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-09 Thread Adam Leventhal
Thanks for all the feedback. This PSARC case was approved yesterday and will be integrated relatively soon. Adam On Wed, Nov 01, 2006 at 01:33:33AM -0800, Adam Leventhal wrote: > Rick McNeal and I have been working on building support for sharing ZVOLs > as iSCSI targets directly into ZFS. Below

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Rick McNeal
Cyril Plisko wrote: On 11/2/06, Rick McNeal <[EMAIL PROTECTED]> wrote: >> That's how the shareiscsi property works today. > > So, why manipulating LUN is impossible via zfs ??? > A ZVOL is a single LU, so there's nothing to manipulate. Could you give me an example of what you think should

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Cyril Plisko
On 11/2/06, Rick McNeal <[EMAIL PROTECTED]> wrote: >> That's how the shareiscsi property works today. > > So, why manipulating LUN is impossible via zfs ??? > A ZVOL is a single LU, so there's nothing to manipulate. Could you give me an example of what you think should/could be changed? I

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Rick McNeal
Cyril Plisko wrote: On 11/2/06, Rick McNeal <[EMAIL PROTECTED]> wrote: > The administration of FC devices for the target mode needs some serious thinking so that we don't end up with a real nightmare on our hands. As you point out the FC world doesn't separate the port address from the targe

Re: [storage-discuss] Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Richard Elling - PAE
comment below... Robert Milkowski wrote: Hello Richard, Wednesday, November 1, 2006, 11:36:14 PM, you wrote: REP> Adam Leventhal wrote: On Wed, Nov 01, 2006 at 04:00:43PM -0500, Torrey McMahon wrote: Lets say server A has the pool with NFS shared, or iSCSI shared, volumes. Server A exports t

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Cyril Plisko
On 11/2/06, Rick McNeal <[EMAIL PROTECTED]> wrote: > The administration of FC devices for the target mode needs some serious thinking so that we don't end up with a real nightmare on our hands. As you point out the FC world doesn't separate the port address from the target name. Therefore each

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Rick McNeal
Dick Davies wrote: On 01/11/06, Rick McNeal <[EMAIL PROTECTED]> wrote: I too must be missing something. I can't imagine why it would take 5 minutes to online a target. A ZVOL should automatically be brought online since now initialization is required. s/now/no/ ? Correct. That should have

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Rick McNeal
Cyril Plisko wrote: On 11/1/06, Adam Leventhal <[EMAIL PROTECTED]> wrote: > >What properties are you specifically interested in modifying? > > LUN for example. How would I configure LUN via zfs command ? You can't. Forgive my ignorance about how iSCSI is deployed, but why would you want/nee

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Darren J Moffat
Torrey McMahon wrote: This thread has diverged a bit but I'm still a little paranoid that a sysadmin is going to move a pool from one host to an other and all of a sudden the new system is serving NFS shares and iSCSI LUNs all of a sudden when really they just wanted to copy some data or fix a

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Torrey McMahon
This thread has diverged a bit but I'm still a little paranoid that a sysadmin is going to move a pool from one host to an other and all of a sudden the new system is serving NFS shares and iSCSI LUNs all of a sudden when really they just wanted to copy some data or fix a problem. In a lot of

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Spencer Shepler
On Thu, Darren J Moffat wrote: > Ceri Davies wrote: > >For NFS, it's possible (but likely suboptimal) for clients to be > >configured to mount the filesystem from server A and fail over to > >server B, assuming that the pool import can happen quickly enough for > >them not to receive ENOENT. > > I

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Darren J Moffat
Ceri Davies wrote: For NFS, it's possible (but likely suboptimal) for clients to be configured to mount the filesystem from server A and fail over to server B, assuming that the pool import can happen quickly enough for them not to receive ENOENT. IIRC NFS client side failover is really only in

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Ceri Davies
On Wed, Nov 01, 2006 at 04:00:43PM -0500, Torrey McMahon wrote: > Spencer Shepler wrote: > >On Wed, Adam Leventhal wrote: > > > >>On Wed, Nov 01, 2006 at 01:17:02PM -0500, Torrey McMahon wrote: > >> > >>>Is there going to be a method to override that on the import? I can see > >>>a situation

Re: [storage-discuss] Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-02 Thread Robert Milkowski
Hello Richard, Wednesday, November 1, 2006, 11:36:14 PM, you wrote: REP> Adam Leventhal wrote: >> On Wed, Nov 01, 2006 at 04:00:43PM -0500, Torrey McMahon wrote: >>> Lets say server A has the pool with NFS shared, or iSCSI shared, >>> volumes. Server A exports the pool or goes down. Server B imp

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Dick Davies
On 01/11/06, Rick McNeal <[EMAIL PROTECTED]> wrote: I too must be missing something. I can't imagine why it would take 5 minutes to online a target. A ZVOL should automatically be brought online since now initialization is required. s/now/no/ ? Thanks for the explanation. The '5 minute online

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Richard Elling - PAE
Rick McNeal wrote: Looking at the code it doesn't seem like the backing store being zeroed. In case of regular file a single sector (512 byte) of uninitialized data from stack (bad practice ?) is written to the very end of the file. And in case I hang my head in shame. I've fixed the code.

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Rick McNeal
Cyril Plisko wrote: On 11/1/06, Dick Davies <[EMAIL PROTECTED]> wrote: On 01/11/06, Dick Davies <[EMAIL PROTECTED]> wrote: > And we'll be able to use sparse zvols > for this too (can't think why we couldn't, but it'd be dead handy)? Thinking about this, we won't be able to (without some chang

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Rick McNeal
Instead of replying to each of the messages I'll just reply to the last, but answer the questions that each of the three have raised. Dick Davies wrote: On 01/11/06, Cyril Plisko <[EMAIL PROTECTED]> wrote: On 11/1/06, Dick Davies <[EMAIL PROTECTED]> wrote: > On 01/11/06, Dick Davies <[EMAIL PR

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Rick McNeal
Adam Leventhal wrote: On Wed, Nov 01, 2006 at 09:58:12AM +, Darren J Moffat wrote: iscsioptions This property, which is hidden by default, is used by the iSCSI target daemon to store persistent information such as the IQN. The contents are not intended for users or

Re: [storage-discuss] Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Rick McNeal
Richard Elling - PAE wrote: Adam Leventhal wrote: On Wed, Nov 01, 2006 at 04:00:43PM -0500, Torrey McMahon wrote: Lets say server A has the pool with NFS shared, or iSCSI shared, volumes. Server A exports the pool or goes down. Server B imports the pool. Which clients would still be active

Re: [storage-discuss] Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Rick McNeal
Cyril Plisko wrote: > Can we do something similar to NFS case, where sharenfs can be > "on", "off", or something else, in which case it is a list of options ? > Would this technique be applicable to shareiscsi too ? Absolutely. We would, however, like to be conservative about adding options

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Richard Elling - PAE
Adam Leventhal wrote: On Wed, Nov 01, 2006 at 04:00:43PM -0500, Torrey McMahon wrote: Lets say server A has the pool with NFS shared, or iSCSI shared, volumes. Server A exports the pool or goes down. Server B imports the pool. Which clients would still be active on the filesystem(s)? The ones

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
On Wed, Nov 01, 2006 at 04:00:43PM -0500, Torrey McMahon wrote: > Lets say server A has the pool with NFS shared, or iSCSI shared, > volumes. Server A exports the pool or goes down. Server B imports the pool. > > Which clients would still be active on the filesystem(s)? The ones that > were moun

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Torrey McMahon
Spencer Shepler wrote: On Wed, Adam Leventhal wrote: On Wed, Nov 01, 2006 at 01:17:02PM -0500, Torrey McMahon wrote: Is there going to be a method to override that on the import? I can see a situation where you want to import the pool for some kind of maintenance procedure but you don'

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Cyril Plisko
On 11/1/06, Adam Leventhal <[EMAIL PROTECTED]> wrote: On Wed, Nov 01, 2006 at 09:25:26PM +0200, Cyril Plisko wrote: > On 11/1/06, Adam Leventhal <[EMAIL PROTECTED]> wrote: > >> >What properties are you specifically interested in modifying? > >> > >> LUN for example. How would I configure LUN via

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
On Wed, Nov 01, 2006 at 09:25:26PM +0200, Cyril Plisko wrote: > On 11/1/06, Adam Leventhal <[EMAIL PROTECTED]> wrote: > >> >What properties are you specifically interested in modifying? > >> > >> LUN for example. How would I configure LUN via zfs command ? > > > >You can't. Forgive my ignorance abo

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Cyril Plisko
On 11/1/06, Adam Leventhal <[EMAIL PROTECTED]> wrote: > >What properties are you specifically interested in modifying? > > LUN for example. How would I configure LUN via zfs command ? You can't. Forgive my ignorance about how iSCSI is deployed, but why would you want/need to change the LUN? We

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Spencer Shepler
On Wed, Adam Leventhal wrote: > On Wed, Nov 01, 2006 at 01:17:02PM -0500, Torrey McMahon wrote: > > Is there going to be a method to override that on the import? I can see > > a situation where you want to import the pool for some kind of > > maintenance procedure but you don't want the iSCSI tar

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
On Wed, Nov 01, 2006 at 07:00:52PM +, Ceri Davies wrote: > > There isn't -- to my knowledge -- a way to do this today for NFS shares. > > This would be a reasonable RFE that would apply to both NFS and iSCSI. > > svcadm disable nfs/server ? That won't to it because the service will be automat

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Ceri Davies
On Wed, Nov 01, 2006 at 10:57:27AM -0800, Adam Leventhal wrote: > On Wed, Nov 01, 2006 at 01:17:02PM -0500, Torrey McMahon wrote: > > Is there going to be a method to override that on the import? I can see > > a situation where you want to import the pool for some kind of > > maintenance procedur

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
On Wed, Nov 01, 2006 at 01:17:02PM -0500, Torrey McMahon wrote: > Is there going to be a method to override that on the import? I can see > a situation where you want to import the pool for some kind of > maintenance procedure but you don't want the iSCSI target to fire up > automagically. Ther

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Torrey McMahon
Adam Leventhal wrote: Exporting a pool containing a shared ZVOL will cause the target to be removed; importing a pool containing a shared ZVOL will cause the target to be shared: Is there going to be a method to override that on the import? I can see a situation where you want to import

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
> >What properties are you specifically interested in modifying? > > LUN for example. How would I configure LUN via zfs command ? You can't. Forgive my ignorance about how iSCSI is deployed, but why would you want/need to change the LUN? Adam On Wed, Nov 01, 2006 at 01:36:05PM +0200, Cyril Plis

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Dick Davies
On 01/11/06, Cyril Plisko <[EMAIL PROTECTED]> wrote: On 11/1/06, Dick Davies <[EMAIL PROTECTED]> wrote: > On 01/11/06, Dick Davies <[EMAIL PROTECTED]> wrote: > > And we'll be able to use sparse zvols > > for this too (can't think why we couldn't, but it'd be dead handy)? > > Thinking about this,

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Cyril Plisko
On 11/1/06, Dick Davies <[EMAIL PROTECTED]> wrote: On 01/11/06, Dick Davies <[EMAIL PROTECTED]> wrote: > And we'll be able to use sparse zvols > for this too (can't think why we couldn't, but it'd be dead handy)? Thinking about this, we won't be able to (without some changes) - I think a target

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Dick Davies
On 01/11/06, Dick Davies <[EMAIL PROTECTED]> wrote: And we'll be able to use sparse zvols for this too (can't think why we couldn't, but it'd be dead handy)? Thinking about this, we won't be able to (without some changes) - I think a target is zero-filled before going online (educated guess: it

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Dick Davies
On 01/11/06, Adam Leventhal <[EMAIL PROTECTED]> wrote: Rick McNeal and I have been working on building support for sharing ZVOLs as iSCSI targets directly into ZFS. Below is the proposal I'll be submitting to PSARC. Comments and suggestions are welcome. Adam Am I right in thinking we're effect

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Cyril Plisko
On 11/1/06, Adam Leventhal <[EMAIL PROTECTED]> wrote: On Wed, Nov 01, 2006 at 12:18:36PM +0200, Cyril Plisko wrote: > > > >Note again that all configuration information is stored with the dataset. > >As > >with NFS shared filesystems, iSCSI targets imported on a different system > >will be shared

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Ceri Davies
On Wed, Nov 01, 2006 at 02:14:24AM -0800, Adam Leventhal wrote: > On Wed, Nov 01, 2006 at 10:05:01AM +, Ceri Davies wrote: > > On Wed, Nov 01, 2006 at 01:33:33AM -0800, Adam Leventhal wrote: > > > Rick McNeal and I have been working on building support for sharing ZVOLs > > > as iSCSI targets d

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
On Wed, Nov 01, 2006 at 12:18:36PM +0200, Cyril Plisko wrote: > > > >Note again that all configuration information is stored with the dataset. > >As > >with NFS shared filesystems, iSCSI targets imported on a different system > >will be shared appropriately. > > > Does that mean that if I manage

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Cyril Plisko
Note again that all configuration information is stored with the dataset. As with NFS shared filesystems, iSCSI targets imported on a different system will be shared appropriately. Does that mean that if I manage the iSCSI target via iscsitadm after it is shared via zfs shareiscsi=on and then

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
On Wed, Nov 01, 2006 at 10:05:01AM +, Ceri Davies wrote: > On Wed, Nov 01, 2006 at 01:33:33AM -0800, Adam Leventhal wrote: > > Rick McNeal and I have been working on building support for sharing ZVOLs > > as iSCSI targets directly into ZFS. Below is the proposal I'll be > > submitting to PSARC.

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
On Wed, Nov 01, 2006 at 09:58:12AM +, Darren J Moffat wrote: > >iscsioptions > > > > This property, which is hidden by default, is used by the iSCSI > > target > > daemon to store persistent information such as the IQN. The contents > > are not intended for users or externa

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Ceri Davies
On Wed, Nov 01, 2006 at 01:33:33AM -0800, Adam Leventhal wrote: > Rick McNeal and I have been working on building support for sharing ZVOLs > as iSCSI targets directly into ZFS. Below is the proposal I'll be > submitting to PSARC. Comments and suggestions are welcome. It looks great and I'd love t

Re: [zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Darren J Moffat
Adam Leventhal wrote: iSCSI/ZFS Integration A. Overview The goal of this project is to couple ZFS with the iSCSI target in Solaris specifically to make it as easy to create and export ZVOLs via iSCSI as it is to create and export ZFS filesystems via NFS. We will add two new ZFS properties to su

[zfs-discuss] ZFS/iSCSI target integration

2006-11-01 Thread Adam Leventhal
Rick McNeal and I have been working on building support for sharing ZVOLs as iSCSI targets directly into ZFS. Below is the proposal I'll be submitting to PSARC. Comments and suggestions are welcome. Adam ---8<--- iSCSI/ZFS Integration A. Overview The goal of this project is to couple ZFS with