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
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
-------------- 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
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...
* <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
Thanks
-
Stuart Luscombe
It probably could use more examples.
-------------- next part --------------
An HTML attachment was scrubbed...
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
[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.
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