Re: [osol-discuss] auto mount nfs shares

2009-08-01 Thread Harry Putnam
Oscar del Rio del...@mie.utoronto.ca writes:

 Harry Putnam wrote:

   # ls -ld /projects
  drwxr-sr-x 9 1000 wheel 12 2009-07-24 15:37 /projects

 My user has UID 1000 and belongs to group `wheel' on both localhost
 and remotehost, but yet is not able to write to the automounted share.

 Are you sure the user (reader) is defined on the client with the
 same UID?  It it was, you should see reader as owner instead of
 1000

Yes, absolutely sure... I went to some lengths to set that up.

Given the above answer, then should it really matter if I use reader
or 1000?

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] auto mount nfs shares

2009-07-31 Thread Oscar del Rio

Harry Putnam wrote:


  # ls -ld /projects
 drwxr-sr-x 9 1000 wheel 12 2009-07-24 15:37 /projects



My user has UID 1000 and belongs to group `wheel' on both localhost
and remotehost, but yet is not able to write to the automounted share.


Are you sure the user (reader) is defined on the client with the same 
UID?  It it was, you should see reader as owner instead of 1000


drwxr-sr-x 9 reader wheel 12 2009-07-24 15:37 /projects
 ^^

Double check the user's UID.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] auto mount nfs shares

2009-07-24 Thread Brian Ruthven - Sun UK


Have you checked the automount(1M) man page? The simple case for 1 
filesystem to be automounted is to specify it in a direct map. The 
section on Direct Maps gives an example of what to add to 
/etc/auto_master.


See also the Map Entry Format section for what to put in /etc/auto_direct.

That should hopefully get you up and running.

Regards,
Brian


Harry Putnam wrote:

I'm pretty sure this is well documented but my google searches like:

  `opensolaris automount nfs'

are turning up so much extraneous bull pucky... I'm not finding it.

I want to make sure a specific nfs share is mounted at bootup.  


Server is opensolaris 2006.09 and client is opensolaris 2010.10.

I'm concerned here with the client mounting a share served to it from
the 2006.09 machine.

The share is readily mountable by hand... I just want to automate it.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
  


--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] auto mount nfs shares

2009-07-24 Thread Harry Putnam
Brian Ruthven - Sun UK brian.ruth...@sun.com
writes:

 Have you checked the automount(1M) man page? The simple case for 1
 filesystem to be automounted is to specify it in a direct map. The
 section on Direct Maps gives an example of what to add to
 /etc/auto_master.

 See also the Map Entry Format section for what to put in /etc/auto_direct.

 That should hopefully get you up and running.


I'm denser than most... but now that I'm absolutely confused by what
appears to be a man page that is designed purposely to be confusing.
(I know that was not the intent of the author but jesus does
it really have to be so convuluted).

Seems I need something like:

/etc/auto_master

/localdir   [options] remoteHost:/remotedir

But I'm not really understanding at all what role  /etc/auto_direct
plays.

It appears its another way to annotate something in /etc/auto_master

like:

  /projects-  auto_direct  

I see no mention anywhere of creating an /etc/auto_direct... or any
indication of what might go in it.

Is there no chance of ignoring all the mapping baloney and put some kind
of entry in /etc/vfstab? 

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] auto mount nfs shares

2009-07-24 Thread Brian Ruthven - Sun UK


OK.

Your /etc/auto_master should contain a line at the end like this:

/-  /etc/auto_direct


Then, create /etc/auto_direct and put something like this in it:

/local/mount/point  server:/remote/mount/point


If you need to give any options (such as those given on the 
mount_nfs(1M) man page), then add these after the local mount point and 
before the remote mount point, e.g.:


/usr/mysoftware   -oro   server:/export/mysoftware


Once you've done that, running /usr/sbin/automount should mount the new 
mountpoint for you. If it doesn't, then try svcadm restart autofs.


Incidentally, the name auto_direct is not hard-coded - you can name it 
anything you wish.


Regards,
Brian


Harry Putnam wrote:

Brian Ruthven - Sun UK brian.ruth...@sun.com
writes:

  

Have you checked the automount(1M) man page? The simple case for 1
filesystem to be automounted is to specify it in a direct map. The
section on Direct Maps gives an example of what to add to
/etc/auto_master.

See also the Map Entry Format section for what to put in /etc/auto_direct.

That should hopefully get you up and running.




I'm denser than most... but now that I'm absolutely confused by what
appears to be a man page that is designed purposely to be confusing.
(I know that was not the intent of the author but jesus does
it really have to be so convuluted).

Seems I need something like:

/etc/auto_master

/localdir   [options] remoteHost:/remotedir

But I'm not really understanding at all what role  /etc/auto_direct
plays.

It appears its another way to annotate something in /etc/auto_master

like:

  /projects-  auto_direct  


I see no mention anywhere of creating an /etc/auto_direct... or any
indication of what might go in it.

Is there no chance of ignoring all the mapping baloney and put some kind
of entry in /etc/vfstab? 


___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
  


--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] auto mount nfs shares

2009-07-24 Thread Harry Putnam
Brian Ruthven - Sun UK brian.ruth...@sun.com
writes:
 OK.

 Your /etc/auto_master should contain a line at the end like this:

 /-  /etc/auto_direct


 Then, create /etc/auto_direct and put something like this in it:

 /local/mount/point  server:/remote/mount/point


 If you need to give any options (such as those given on the
 mount_nfs(1M) man page), then add these after the local mount point
 and before the remote mount point, e.g.:

 /usr/mysoftware   -oro   server:/export/mysoftware


 Once you've done that, running /usr/sbin/automount should mount the
 new mountpoint for you. If it doesn't, then try svcadm restart
 autofs.

 Incidentally, the name auto_direct is not hard-coded - you can name
 it anything you wish.


Thanks... that works. 

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] auto mount nfs shares

2009-07-24 Thread Robert Thurlow

Harry Putnam wrote:


Is there no chance of ignoring all the mapping baloney and put some kind
of entry in /etc/vfstab? 


Of course you can do this; just go edit /etc/vfstab and put in
a line like this, with tabs between fields:

server:/share/path  -  /client/path  nfs  -  yes  -

Of course, if the server isn't up when the client boots, the client
won't fully boot.  The automounter has some advantages here.
Rob T
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] auto mount nfs shares

2009-07-24 Thread Harry Putnam
Robert Thurlow robert.thur...@sun.com writes:

 Harry Putnam wrote:

 Is there no chance of ignoring all the mapping baloney and put some
 kind of entry in /etc/vfstab?

 Of course you can do this; just go edit /etc/vfstab and put in
 a line like this, with tabs between fields:

 server:/share/path  -  /client/path  nfs  -  yes  -

 Of course, if the server isn't up when the client boots, the client
 won't fully boot.  The automounter has some advantages here.

Yes, I can see it would.

However, mounted the way I have now set in automounter:
my user is not allowed to write there.

I don't really think its the fault of automount because mounting it my
hand (mount -Fnfs zfs:/projects /projects) has the same result.

The directory /projects (the mountpoint) was created on localhost with
Owner=reader(1000) Group=wheel(15) and 755 permissions with setgid bit
set.

  # ls -ld /projects
 drwxr-sr-x 9 1000 wheel 12 2009-07-24 15:37 /projects

And that is how it appears when automounter has mounted the share with 
these settings in /etc/auto_mounter and /etc/auto_direct

  # grep '^[^#]' /etc/auto_master
 +auto_master
 /net-hosts  -nosuid,nobrowse
 /home   auto_home   -nobrowse
 /-  auto_direct

= * = * = * =

  # grep '^[^#]' /etc/auto_direct
 /projects   zfs.local.lan:/projects

As mounted with automounter:  
  # ls -l /projects
  [...]
  -rw---  1 1000 wheel 189268 2009-06-29 09:52 bookmarks.html
  drwxrwxrwx  9 1000 wheel 10 2009-07-13 08:38 harvey
  -rw-r--r--  1 1000 wheel 191372 2009-06-28 19:44 
hput-bookmarks-2009-06-28.html
  drwxr-xr-x  3 1000 wheel  3 2009-01-21 18:22 mob1
  [...]

  # ls -ld /projects
 drwxr-sr-x 9 1000 wheel 12 2009-07-24 15:37 /projects

My user has UID 1000 and belongs to group `wheel' on both localhost
and remotehost, but yet is not able to write to the automounted share.

The remote:/projects (remote share) is also setup the same way:

  (on remote host)
  ls -ld /projects
  rwxr-sr-x 9 reader wheel 12 2009-07-24 15:37 /projects

I don't understand why user reader is not allowed to write to that
mounted share.

Nor is user reader allowed to mount it...

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


[osol-discuss] auto mount nfs shares

2009-07-23 Thread Harry Putnam
I'm pretty sure this is well documented but my google searches like:

  `opensolaris automount nfs'

are turning up so much extraneous bull pucky... I'm not finding it.

I want to make sure a specific nfs share is mounted at bootup.  

Server is opensolaris 2006.09 and client is opensolaris 2010.10.

I'm concerned here with the client mounting a share served to it from
the 2006.09 machine.

The share is readily mountable by hand... I just want to automate it.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org