On 04/ 1/10 11:44 AM, Ben wrote:
Thanks Garrett,

The master and client both have the same output:
$ svcs -av | grep rpc
disabled       -             20:29:26      - svc:/network/rpc/nisplus:default
disabled       -             20:29:26      - svc:/network/rpc/keyserv:default
disabled       -             20:29:47      - svc:/network/rpc/meta:default
disabled       -             20:29:47      - svc:/network/rpc/wall:default
disabled       -             20:29:47      - svc:/network/rpc/mdcomm:default
disabled       -             20:29:48      - svc:/network/rpc/rusers:default
disabled       -             20:29:48      - svc:/network/rpc/rstat:default
disabled       -             20:29:48      - svc:/network/rpc/rex:default
disabled       -             20:29:48      - svc:/network/rpc/metamed:default
disabled       -             20:29:48      - svc:/network/rpc/metamh:default
disabled       -             20:29:48      - svc:/network/rpc/spray:default
online         -             20:29:41     57 svc:/network/rpc/bind:default
online         -             20:29:48      - svc:/network/rpc/gss:default
online         -             20:29:48      - svc:/network/rpc/smserver:default

I think I'll scratch both VMs and start over, just to make sure I've not done 
anything silly.

I will do the following to create the master
- Add all machines to hosts file
- Install SUNWyp
- Create the domainname

Make sure you put the domain in /etc/defaultdomain. And you'll need to run domainname to set it the kernel the first time you do it (or you can reboot).

- Touch ethers, bootparams and netgroup in /etc
- Copy nsswitch.nis over nsswitch.conf
- Run ypinit -m
- Make sure nis/ client and nis/server are up and running

On the client I will then:
- Add master to hosts file
- Install SUNWyp
- Create the domainname (same as master)
- Copy nsswitch.nis over nsswitch.conf
- Run ypinit -c and input master IP

Hopefully that will work?

Looks like that ought to work.

I'm seeing different things to share home directories on Solaris and 
OpenSolaris.
Some sources suggets I need to edit /etc/auto_home, others don't mention it.
Some sources say use `share -d "share name" /path/to/share`, others say I 
should use `sharemgr` and others say use `zfs sharenfs=rw /path/to/share`.
And nowhere does it say that I need to do this just on the server, or just on 
the client(s) or whether I have to do any of that on both...

If your home directories are in zfs, then "zfs set sharenfs=rw /path/to/share" should be sufficient to *export* the filesystem. Its what I do.

You will want to edit /etc/auto_home though. On my NIS server it looks like:

+auto_home
gdamore    lanmaster:/data/home/&

Put additional entries for other systems. (My NFS server is called "lanmaster", and my home directory is in ZFS at /data/home/gdamore.)

    -- Garrett
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to