Hi, I followed the faq on this, but get erros I can''t understand. As I do want to make backups I really hope someone can tell me what''s wrong. ====== [ what I did ] [my remote system] westmark# zfs create store/snaps westmark# zfs list NAME USED AVAIL REFER MOUNTPOINT store 108K 8.24G 19K /store store/snaps 18K 8.24G 18K /store/snaps [share to local system] westmark# zfs set sharenfs=''rw=192.168.11.22,root=root'' store/snaps # share - at rpool/snaps /rpool/snaps sec=sys,rw=192.168.11.22,root=root "" # Create a recursive snapshot of the root pool. [my local system] arwen# zfs snapshot -r rpool at 0906 Send the entire recursive snapshot: # zfs send -Rv rpool at 0906 > /net/192.168.11.22/rpool/snaps/rpool.0906 And then I get this "permission denied" so I MUST have done something wrong. Can anybody point me at my error(s)? ===arwen# zfs send -Rv rpool at 0906 arwen# > /net/192.168.11.22/store/snaps/rpool.0906 zsh: permission denied: /net/192.168.11.22/store/snaps/rpool.0906 arwen# === -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | nevada / OpenSolaris 2010.02 B118 + All that''s really worth doing is what we do for others (Lewis Carrol)
On Fri, 24 Jul 2009 15:55:02 +0200 dick hoogendijk <dick at nagual.nl> wrote:> [share to local system] > westmark# zfs set sharenfs=on store/snapsI left out the options and changed the /store/snaps directory permissions to 777. Now the snapshot can be send from the host but it gets u:g permssions like nobody:nobody. Is this bad? -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | nevada / OpenSolaris 2010.02 B118 + All that''s really worth doing is what we do for others (Lewis Carrol)
Cindy.Swearingen at Sun.COM
2009-Jul-24 15:04 UTC
[zfs-discuss] ZFS Root Pool Recovery (from the FAQ)
Hi Dick, I haven''t see this problem when I''ve tested these steps. And its been awhile since I''ve seen the nobody:nobody problem, but it sounds like NFSMAPID didn''t get set correctly. I think this question is asked during installation and generally is set to the default DNS domain name. The domain info must match between the local and remote systems for the UID/GID to be recognized between systems. You can read more here: http://docs.sun.com/app/docs/doc/817-0547/extkt?l=en&a=view&q=NFSMAPID Cindy On 07/24/09 08:07, dick hoogendijk wrote:> On Fri, 24 Jul 2009 15:55:02 +0200 > dick hoogendijk <dick at nagual.nl> wrote: > > >>[share to local system] >>westmark# zfs set sharenfs=on store/snaps > > > I left out the options and changed the /store/snaps directory > permissions to 777. Now the snapshot can be send from the host but it > gets u:g permssions like nobody:nobody. Is this bad? >
On Fri, 24 Jul 2009 10:00:30 -0600 Cindy.Swearingen at Sun.COM wrote:> Reproducing this will be difficult in my environment since > our domain info is automatically setup...Hey, no sweat ;-) I only asked because I don''t want to do the "send blah" again. but then again, computers don''t get tired.> I would suggest fixing the nobody problem because you might > have other NFS-related problems accessing your files.Right. I have set the domain name in /etc/default/nfs on all machines of my local network. So I guess that''s OK now. Remains the question what this line should actualy read: #zfs set sharenfs=''rw=local-system,root=local-system'' store/snaps rw=local-system becomes "arwen" that''s obvious, but how about the root part. "I run zfs send ..." as root on the local machine (do I have to ??) and on the remote machine the /store/snaps has uid:gid root:root The backup being OK is important so I appreciate your help. -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | nevada / OpenSolaris 2010.02 B118 + All that''s really worth doing is what we do for others (Lewis Carrol)
On Fri, 24 Jul 2009 19:36:52 +0200 dick hoogendijk <dick at nagual.nl> wrote:> Thank you for your support ''till now. One final question:..Alas, it''s not a final qustion. It still does not work. I have no idea what else I could have forgotten. This is what I have on arwen (local) and westmark (remote): root at westmark:/# share - at store/snaps /store/snaps sec=sys,rw=arwen,root=arwen "" arwen# zfs send -Rv rpool at 0906 > /net/westmark/store/snaps/rpool.0906 zsh: permission denied: /net/westmark/store/snaps/rpool.0906 *** BOTH systems have NFSMAPID DOMAIN=nagual.nl set in the *** file /etc/default/nfs NFS services on both systems: arwen# svcs -a | grep nfs <-- local disabled 20:02:06 svc:/network/nfs/client:default online 20:02:24 svc:/network/nfs/cbd:default online 20:02:24 svc:/network/nfs/mapid:default online 20:02:24 svc:/network/nfs/status:default online 20:02:25 svc:/network/nfs/nlockmgr:default online 20:02:27 svc:/network/nfs/server:default online 20:02:27 svc:/network/nfs/rquota:default arwen# root at westmark:~# svcs -a | grep nfs <-- remote online 20:01:25 svc:/network/nfs/mapid:default online 20:01:25 svc:/network/nfs/status:default online 20:01:25 svc:/network/nfs/nlockmgr:default online 20:01:27 svc:/network/nfs/server:default online 20:01:27 svc:/network/nfs/client:default online 20:01:27 svc:/network/nfs/cbd:default online 20:01:28 svc:/network/nfs/rquota:default Where do I look next? -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | nevada / OpenSolaris 2010.02 B118 + All that''s really worth doing is what we do for others (Lewis Carrol)
dick hoogendijk wrote:> root at westmark:/# share > - at store/snaps /store/snaps sec=sys,rw=arwen,root=arwen "" > > arwen# zfs send -Rv rpool at 0906 > /net/westmark/store/snaps/rpool.0906 > zsh: permission denied: /net/westmark/store/snaps/rpool.0906try sharing with the @ network syntax. See "man share_nfs" rw=@192.168.xx.xx/32,root=@192.168.xx.xx/32
On Sun, 26 Jul 2009 12:14:03 -0400 Oscar del Rio <delrio at mie.utoronto.ca> wrote:> dick hoogendijk wrote: > > > root at westmark:/# share > > - at store/snaps /store/snaps sec=sys,rw=arwen,root=arwen "" > > > > arwen# zfs send -Rv rpool at 0906 > > arwen# > /net/westmark/store/snaps/rpool.0906 > > zsh: permission denied: /net/westmark/store/snaps/rpool.0906 > > try sharing with the @ network syntax. See "man share_nfs" > > rw=@192.168.xx.xx/32,root=@192.168.xx.xx/32Does not work! The root part is to blame for that. This rule does work: rw=@192.168.xx.xx/32,root=arwen I have no idea why root=arwen has to be specified as a name, while the nodename can be a @ form. -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | SunOS 10u7 05/09 | OpenSolaris 2010.02 B118 + All that''s really worth doing is what we do for others (Lewis Carrol)