Discussion:
Where can I find a full Walk thru setting up nfs4 from scratch
Harry Putnam
2011-11-14 01:38:57 UTC
Permalink
Running openindiana b 151a as vm guest on host win7

Where can I find an up to date detailed description of setting up nfs4
from scratch on a home lan zfs server with linux nfs4 clients.

I've turned up loads of stuff googling, way too much to paw through it
all.

I'm running openindiana and have posted a similar request on that
group.

Some of the directions I've found insist on setting up nis. Do I
really need nis to be setup to share fs with nfs on a home lan?

This is a home lan with no real internet address on the inner network,
just a homemade 192.168.1.0/24 setup. With a domain name of
`local.lan'.

I'm not sure how that effects how I setup nfs4.

I need the most basic guidance on this... I do not have a working
knowledge of nfs.

Hopefully there is some url online for real greenhorns that describes
how to do this in detail.

When I start to edit /etc/default/nfs as described in some of the
directions I've found I see:

# Moved to SMF. Use sharectl(1M) to manage NFS properties.

So at least several of the guides I've run across are apparently out
of date and insist on editing /etc/default/nfs.

Hard to tell what guides hold water for modern solaris and offshoots.
Ian Collins
2011-11-14 02:00:36 UTC
Permalink
Post by Harry Putnam
Running openindiana b 151a as vm guest on host win7
Where can I find an up to date detailed description of setting up nfs4
from scratch on a home lan zfs server with linux nfs4 clients.
There really isn't that much to it, just set snarenfs=true on the
filesystem(s) you want to share.
Post by Harry Putnam
I've turned up loads of stuff googling, way too much to paw through it
all.
I'm running openindiana and have posted a similar request on that
group.
Some of the directions I've found insist on setting up nis. Do I
really need nis to be setup to share fs with nfs on a home lan?
No.

Just make sure the file permissions are correct for clients to access
the shares.
--
Ian.
Harry Putnam
2011-11-14 16:14:47 UTC
Permalink
Post by Ian Collins
Post by Harry Putnam
Running openindiana b 151a as vm guest on host win7
Where can I find an up to date detailed description of setting up nfs4
from scratch on a home lan zfs server with linux nfs4 clients.
There really isn't that much to it, just set snarenfs=true on the
filesystem(s) you want to share.
Egad... that's it?

I must be mixing up with having set up the automounter for nfs .. I
remember getting tangled up with some edit of files last time I did
this, which by now must be a pretty while ago.

The solaris box will be both server and client.

Is there a good URL for whatever is involved getting the NFS client
shares auto mounted? They would be on a Debian linux server. Both
boxes will be both server and client.
Ian Collins
2011-11-14 19:43:52 UTC
Permalink
Post by Harry Putnam
Post by Ian Collins
Post by Harry Putnam
Running openindiana b 151a as vm guest on host win7
Where can I find an up to date detailed description of setting up nfs4
from scratch on a home lan zfs server with linux nfs4 clients.
There really isn't that much to it, just set snarenfs=true on the
filesystem(s) you want to share.
Egad... that's it?
I must be mixing up with having set up the automounter for nfs .. I
remember getting tangled up with some edit of files last time I did
this, which by now must be a pretty while ago.
The solaris box will be both server and client.
Is there a good URL for whatever is involved getting the NFS client
shares auto mounted? They would be on a Debian linux server. Both
boxes will be both server and client.
For Solaris, man automount.
--
Ian.
Harry Putnam
2011-11-14 23:24:20 UTC
Permalink
Post by Ian Collins
Post by Harry Putnam
Is there a good URL for whatever is involved getting the NFS client
shares auto mounted? They would be on a Debian linux server. Both
boxes will be both server and client.
For Solaris, man automount.
Yes, of course but if you don't really understand that page then is
there a more detailed URL with more examples somewhere?

As always the man page is intended for someone who has the basic idea
and just needs reminders of syntax or the like... I need to start
somewhere below that.
Post by Ian Collins
From man automount
(/etc/auto_master)
# Master map for automounter
#
+auto_master
/net -hosts -nosuid
/home auto_home

It says that `+auto_master' is reference to NIS or NIS+ map if one
exists.

So if one does not exist do you leave `+auto_master' out?

`/home auto_home'

Is auto_home a reference to another file somewhere? Or is it meant
verbatim? Or am I supposed to know to put a map entry there... like
host:/path/to ?

In my case I want to mount a directory from a linux machine at

/pub
and another at
/projects

On the linux machine `pub' is found at /pub
`projects' is found at /path/to/projects

After studying that man page I still have no idea what my entries should
look like. And further if auto_pub is a map... what does it look
like? There appear to be `direct' and `indirect' ... and ...

/pub linux.machine.onlan:/pub <which, if any options> ?

/pub auto_pub ? (and if so, is auto_pub another file somewhere?)

Then the whole question of possible options leads off into more
man pages with more confusing information. That is, confusing unless
you are at or above a fairly sophisticated level already.

I need to see some simplified examples that take the whole matter up
in one go and explain why, for someone who is not already at a fairly
sophisticated level... Or in fact is in no way sophisticated at all.

If it matters there are users with the same name and group. The
numeric gid is also the same. Uid is different and unless I really
need to, I'd as soon leave that alone since there are already numbers
of files belonging to a specific (though different) number uid on both
machines.
Edward Martinez
2011-11-15 01:44:37 UTC
Permalink
Post by Harry Putnam
Post by Ian Collins
Post by Harry Putnam
Is there a good URL for whatever is involved getting the NFS client
shares auto mounted? They would be on a Debian linux server. Both
boxes will be both server and client.
For Solaris, man automount.
Yes, of course but if you don't really understand that page then is
there a more detailed URL with more examples somewhere?
As always the man page is intended for someone who has the basic idea
and just needs reminders of syntax or the like... I need to start
somewhere below that.
Post by Ian Collins
From man automount
(/etc/auto_master)
# Master map for automounter
#
+auto_master
/net -hosts -nosuid
/home auto_home
It says that `+auto_master' is reference to NIS or NIS+ map if one
exists.
So if one does not exist do you leave `+auto_master' out?
`/home auto_home'
Is auto_home a reference to another file somewhere? Or is it meant
verbatim? Or am I supposed to know to put a map entry there... like
host:/path/to ?
In my case I want to mount a directory from a linux machine at
/pub
and another at
/projects
On the linux machine `pub' is found at /pub
`projects' is found at /path/to/projects
After studying that man page I still have no idea what my entries should
look like. And further if auto_pub is a map... what does it look
like? There appear to be `direct' and `indirect' ... and ...
/pub linux.machine.onlan:/pub<which, if any options> ?
/pub auto_pub ? (and if so, is auto_pub another file somewhere?)
Then the whole question of possible options leads off into more
man pages with more confusing information. That is, confusing unless
you are at or above a fairly sophisticated level already.
I need to see some simplified examples that take the whole matter up
in one go and explain why, for someone who is not already at a fairly
sophisticated level... Or in fact is in no way sophisticated at all.
If it matters there are users with the same name and group. The
numeric gid is also the same. Uid is different and unless I really
need to, I'd as soon leave that alone since there are already numbers
of files belonging to a specific (though different) number uid on both
machines.
_______________________________________________
opensolaris-discuss mailing list
few links that may help. I think the proper command is
"sharemgr" if these two are not much help, I suggest do a web search
using sharemgr and nfs. as keywords :


http://prefetch.net/blog/index.php/2009/05/05/using-sharemgr-to-manage-nfs-file-systems-on-opensolaris-hosts/
http://blogs.oracle.com/dougm/entry/introduction_to_sharemgr

Loading...