Re: [cifs-discuss] proper way to replicate cifs share to other server
shame on me - very very poor mistake :-( i thougt any datasets in "zfs list" which are configured as a share are automaticaly online. i overlooked that the received snapshots/datasets where not automatically mounted after beeing received. now i mounted them manually and the shares show up in "sharemgr show" -- This message posted from opensolaris.org ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Re: [cifs-discuss] proper way to replicate cifs share to other server
you might want to post a full problem description on zfs-disc...@opensolaris.org Afshin On 07/ 2/10 07:50 AM, leon schneider wrote: additional info to my previous post: http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide#Using_ZFS_Snapshots this wiki gave me the hint to use the "-p" flag for sending the zfs filesystems ;-) zfs send -p -R rpool1/exp...@shares-configured | ssh cifs2 zfs receive -dvu rpool1 --> unfortunately still no success ... ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Re: [cifs-discuss] proper way to replicate cifs share to other server
additional info to my previous post: http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide#Using_ZFS_Snapshots this wiki gave me the hint to use the "-p" flag for sending the zfs filesystems ;-) zfs send -p -R rpool1/exp...@shares-configured | ssh cifs2 zfs receive -dvu rpool1 --> unfortunately still no success ... -- This message posted from opensolaris.org ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Re: [cifs-discuss] proper way to replicate cifs share to other server
hi, thank you again for your reply. i destroyed all shared zfs filesystems, created new ones, and configured new shares, this time using zfs set sharesmb=on. unfortunately this made no difference - after sending/receiving the filesystems the shares are still not configured on the receiver site. any ideas? regards, leon -- This message posted from opensolaris.org ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Re: [cifs-discuss] proper way to replicate cifs share to other server
If you use sharemgr, the share configuration is stored in SMF and I don't believe that will be transferred as part of zfs send/receive so if you want this to work you need to use zfs sharesmb. zfs sharesmb is not just an alias for sharemgr, since sharesmb is actually a zfs property which is stored along other dataset properties. Having said that, I'm not a ZFS expert so I don't exactly know what will or will not work using zfs send/receive. Afshin On 07/ 1/10 12:41 AM, leon schneider wrote: Hi, thank you for your reply Did you define your share using sharemgr(1M) or the sharesmb property of your ZFS file system? I used sharemgr(1M) to configure the share - as i guessed the "zfs set sharesmb" command is just an alias for that (although i took sharemgr(1M) the output of "zpool list" lists some "zfs set sharesmb" entries). Does it make a difference to take sharemgr(1M) or "zfs set sharesmb"? What do you exactly mean by "the share is not configured on the second server"? You don't see the share definition on the Solaris box or you don't see it from a client? when i call "sharemgr show -vp" i see no configured share on the second solaris box (the box which received the zfs filesystem. the send/receive itself succeeded, as the zfs filesystems on the sender and receiver are the same except the share confuguration which is missing ) ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Re: [cifs-discuss] proper way to replicate cifs share to other server
Hi, thank you for your reply > Did you define your share using sharemgr(1M) or the > sharesmb property > of your ZFS file system? > I used sharemgr(1M) to configure the share - as i guessed the "zfs set sharesmb" command is just an alias for that (although i took sharemgr(1M) the output of "zpool list" lists some "zfs set sharesmb" entries). Does it make a difference to take sharemgr(1M) or "zfs set sharesmb"? > What do you exactly mean by "the share is not > configured on the > second server"? You don't see the share definition on the Solaris > box or you don't see it from a client? when i call "sharemgr show -vp" i see no configured share on the second solaris box (the box which received the zfs filesystem. the send/receive itself succeeded, as the zfs filesystems on the sender and receiver are the same except the share confuguration which is missing ) -- This message posted from opensolaris.org ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Re: [cifs-discuss] proper way to replicate cifs share to other server
Did you define your share using sharemgr(1M) or the sharesmb property of your ZFS file system? What do you exactly mean by "the share is not configured on the second server"? You don't see the share definition on the Solaris box or you don't see it from a client? Afshin On 06/30/10 08:56 AM, leon schneider wrote: hi, i have a zfs filesystem configured as a cifs share and i want to enable an other server to serve that share. i copied that filesystem via zfs send/ receive to the second server, but that seems not to be enough - the share is not configured on the second server. what is the prover way to replicate the share config of my primary server to the secondary? regards, leon ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
[cifs-discuss] proper way to replicate cifs share to other server
hi, i have a zfs filesystem configured as a cifs share and i want to enable an other server to serve that share. i copied that filesystem via zfs send/ receive to the second server, but that seems not to be enough - the share is not configured on the second server. what is the prover way to replicate the share config of my primary server to the secondary? regards, leon -- This message posted from opensolaris.org ___ cifs-discuss mailing list cifs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/cifs-discuss