[Rocks-Discuss] Mounting NFS home directories

218 views
Skip to first unread message

Stuart Luscombe

unread,
Oct 20, 2008, 11:57:00 AM10/20/08
to npaci-rocks...@sdsc.edu
Hi there,

I've not been able to find a definitive answer to this so I hope
somebody can help...

We currently share our home directories by NFS and LDAP has the home
folder set to /home/samba/user/<user>. I need
to get this mounted on the server so that when people login there is no
extra messing around to do.
If I have understood correctly, the home folder in rocks is not static
and in fact auto-mounts as and when it's needed? I've created
the /samba/user folders under /export/home but cannot get it to show up
despite adjusting /etc/auto.home to say
"samba cluster.local:/export/home/samba/".

I feel like I'm overlooking something obvious here, if it's just a case
of restarting a service (autofs?) then please could someone
confirm that?

Many thanks
-
Stuart Luscombe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081020/08f810d4/attachment.html

Greg Bruno

unread,
Oct 20, 2008, 2:13:14 PM10/20/08
to Discussion of Rocks Clusters
On Mon, Oct 20, 2008 at 8:57 AM, Stuart Luscombe
<slus...@drc.ion.ucl.ac.uk> wrote:
> Hi there,
>
> I've not been able to find a definitive answer to this so I hope
> somebody can help...
>
> We currently share our home directories by NFS and LDAP has the home
> folder set to /home/samba/user/<user>. I need
> to get this mounted on the server so that when people login there is no
> extra messing around to do.
> If I have understood correctly, the home folder in rocks is not static
> and in fact auto-mounts as and when it's needed? I've created
> the /samba/user folders under /export/home but cannot get it to show up
> despite adjusting /etc/auto.home to say
> "samba cluster.local:/export/home/samba/".

the above line says, "when user 'samba' logs in, mount
cluster.local:/export/home/samba/ on /home/samba".

for each user, you probably want something like:

<user> cluster.local:/export/home/samba/<user>

- gb

Dr. Hung-Sheng Tsao (LaoTsao)

unread,
Oct 20, 2008, 2:45:12 PM10/20/08
to Discussion of Rocks Clusters
is this home directory on different server (not the same as cluster. local)?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hung-sheng_tsao.vcf
Type: text/x-vcard
Size: 366 bytes
Desc: not available
Url : https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081020/852e1dbd/hung-sheng_tsao.vcf

Stuart Luscombe

unread,
Oct 21, 2008, 5:27:20 AM10/21/08
to Discussion of Rocks Clusters
The home directories are stored on a different server which I've shared
via nfs. I've currently
mounted them against /export/home/samba/user.

Is there any way to integrate this with our LDAP directory, or will I
have to add an
entry for each user who wishes to use the cluster?

i.e. have a line in auto.home that says something like:
<USER> cluster.local:/export/home/samba/user/

so that the users home directory will mount to /home/samba/user/<user>

Thanks
-
Stuart Luscombe

-------------- next part --------------
An HTML attachment was scrubbed...

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081021/f0ba7e04/attachment.html

Dr. Hung-Sheng Tsao (LaoTsao)

unread,
Oct 21, 2008, 6:06:58 AM10/21/08
to Discussion of Rocks Clusters
<user> <home-dir server>:/export/home/samba/<user>

* <home-dir server>:/export/home/samba/&
need to add this server to internal dns table
need to change IPtable to allow compute node to access this server
hth

Url : https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081021/c3e057aa/hung-sheng_tsao.vcf

Stuart Luscombe

unread,
Oct 21, 2008, 7:15:42 AM10/21/08
to Discussion of Rocks Clusters
Thanks for the help. I've made the changes to the file but it doesn't
seem to be showing, also /home/install
doesn't seem to work either. Do I need to restart anything?

Thanks

-
Stuart Luscombe

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081021/4d50a80a/attachment.html

Steven Dick

unread,
Oct 21, 2008, 8:06:24 AM10/21/08
to Discussion of Rocks Clusters
Does this help?
https://wiki.rocksclusters.org/wiki/index.php/Home_directories

It probably could use more examples.


-------------- next part --------------
An HTML attachment was scrubbed...

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081021/39e57a63/attachment.html

Hamilton, Scott L.

unread,
Oct 21, 2008, 9:55:34 AM10/21/08
to Discussion of Rocks Clusters
I have a similar setup to yours and this is how I did it. I actually
share two auto mounted file systems from a nas appliance. Reading you
post it sounds like you are trying to re-export a network file system.
I don't think you can do that. Here is how mine is set up. If you are
trying to mount a windows share which I assume that is the case since
you are using /export/home/samba you might need to do some strange
settings I have only done this with an NFS file server.

My file server has the following in /etc/exports
/export/users 10.1.1.0/255.255.255.0(rw,async)
/export/apps 10.1.1.0/255.255.255.0(rw,async)

My clients have the following autofs configuration files.

/etc/auto.nethome
users --fstype=nfs,rw,intr,rsize=32767,wsize=32767
nas-0-0.local:/export/users

/etc/auto.home
install nic-p1.local:/export/home/&

/etc/auto.share
apps --fstype=nfs,rw,intr,rsize=32767,wsize=32767
nas-0-0.local:/export/apps

/etc/auto.master
/share /etc/auto.share --timeout=1200
/home /etc/auto.home --timeout=1200
/nethome /etc/auto.nethome --ghost --timeout 5

Everything works great for me.

If you are in fact trying to share a samba mounted folder through nfs it
is a very bad idea, not to mention it is probably not supported.

I would recommend looking at the following article on mounting samba
with autofs.
http://fixunix.com/setup/330271-autofs-mounting-windows-smb-share-centos
.html

I have had very poor performance when trying to use samba shares with
ROCKS so we enabled samba on a linux machine so windows users could save
files to the cluster file server, and share the directory with the
cluster through nfs. I have never tried to share a folder that was a
samba mount on a different server.

Thanks,
Scott

Bart Brashers

unread,
Oct 21, 2008, 11:44:00 AM10/21/08
to Discussion of Rocks Clusters
Alternatively, you could change what's being shared in
/etc/samba/smb.conf. Just accept Rocks' default location of
/export/home/$user (auto-mounted to /home/$user) and change smb.conf to
say something like

[homes]
comment = Home Directories
browseable = no
writable = yes

That's what I do, and each users sees \\frontend\$user without problems.
I have a separate directory for shared project space (/export/home/proj,
mounted at /home/proj, shared as \\frontend\project) that has different
permissions.

I have however had problems with Windows permissions when sharing (via
samba) a filesystem that's remote (mounted via NFS). For example, if my
NAS node has exported /export/foo, which I NFS-mount on my frontent at
/home/foo, then try to export from my frontend's samba as
\\frontend\foo, then MS Word, Excel, etc. all have problems with file
locking. This did not happen on my Rocks 4.1 cluster, but is a problem
with my Rock 5.0.3 cluster, so it must be tied to Samba version
3.0.28-1.el5_2.1.

Bart


This message contains information that may be confidential, privileged or otherwise protected by law from disclosure. It is intended for the exclusive use of the Addressee(s). Unless you are the addressee or authorized agent of the addressee, you may not review, copy, distribute or disclose to anyone the message or any information contained within. If you have received this message in error, please contact the sender by electronic reply to em...@environcorp.com and immediately delete all copies of the message.

Stuart Luscombe

unread,
Oct 22, 2008, 6:03:03 AM10/22/08
to Discussion of Rocks Clusters
Hi there,

Thanks for the extremely informative post.

My installation doesn't appear to have the file /etc/auto.nethome, do I
need to just create this?

I restarted things this morning as the automount wasn't working, I
checked the log files and I'm
getting the following message:

do_mount_indirect: failed to get group info from getgrgid_r

A Google search didn't seem to turn up anything useful.

-
Stuart Luscombe
Systems Administrator
Dementia Research Centre
8-11 Queen Square
WC1N 3BG London
Direct: 08451 555 000 72 3875
Web : http://www.dementia.ion.ucl.ac.uk

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081022/9c07b809/attachment.html

Dr. Hung-Sheng Tsao (LaoTsao)

unread,
Oct 22, 2008, 6:23:21 AM10/22/08
to Discussion of Rocks Clusters

Hamilton, Scott L.

unread,
Oct 22, 2008, 10:48:48 AM10/22/08
to Discussion of Rocks Clusters
I created it on my machine. You can create an auto.anythingyoulike and
add it to auto.master and then autofs will attempt to mount it on
demand.
Reply all
Reply to author
Forward
0 new messages