[Rocks-Discuss] Auto mounting of directory on all compute nodes

2,874 views
Skip to first unread message

JP

unread,
Nov 22, 2011, 11:37:59 AM11/22/11
to Discussion of Rocks Clusters
Using Rocks Viper - latest and greatest.

This is quite a trivial question but I could not find the answer to it in
the documentation.

I just installed a new HD on the FE and mounted it at /xyz.

How do I make this directory to auto mount across all compute nodes in a
similar way that /share does?

Many Thanks


-
Jean-Paul Ebejer
Early Stage Researcher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20111122/563ba253/attachment.html

Seren Soner

unread,
Nov 22, 2011, 11:51:09 AM11/22/11
to Discussion of Rocks Clusters
Just mount it as /export/home/xyz on front end.
You can do this through /etc/mtab easily.

- Seren

--
Seren Soner

JP

unread,
Nov 22, 2011, 12:02:09 PM11/22/11
to Discussion of Rocks Clusters
Hi there Seren,

I apologize for being thick -- but I am a newbie here.

I do not want to add xyz to the home directory. I have this directory in
the root /xyz and would like to mount it in the root on the compute nodes
/xyz (or possibly /share/xyz/ for clarity)

Also can you explain what the following means in auto.share
test somemachine.local:/export/& ?

Does it mean to share the test directory on "somemachine.local" ? What
exactly is the role of the export directory?

I have tried playing around with the auto.share file and issuing make -C
/var/411 force and restarting autofs service but this did not make any
difference. Can you give me some instructions on how to do this? Isn't
this good material for the documentation (it is lacking on this topic).

Many Thanks,

-
Jean-Paul Ebejer
Early Stage Researcher

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

Seren Soner

unread,
Nov 22, 2011, 12:21:22 PM11/22/11
to Discussion of Rocks Clusters
I guess you can check the tuto at http://jeetworks.org/node/79 .
However, I've never tried mounting a disk on anywhere but /share/ on
compute nodes. I'm not sure how that works though.

- Seren

JP

unread,
Nov 22, 2011, 12:52:10 PM11/22/11
to Discussion of Rocks Clusters
Yes,

I did as you suggested (many thanks) and I checked out the tutorial. The
problem is that this is old and doesn't work on Rocks 5.4.3 - not for the
cluster-fork which can be easily changed to rocks run host "..." but the
programm 411get doesn't even exist.

I think it is time I write a new tutorial on this -- once I find out how it
is done.

I have tried the following steps as root:

Edit /etc/auto.share and insert an entry for my directory, append "xyz
machine.local:/export/&" (without quotes)
make -C /var/411 force
rocks sync users
/sbin/service autofs restart (I even tried reload but this did not make a
difference)
rocks run host "service autofs restart"

Nothing. This didn't work.

All I want is for front end locally mounted xyz (not nfs mounted) to appear
from all compute nodes under /share/xyz

There must be someone out there in the distant lands, who has done this
before.

Many thanks,
JP

-
Jean-Paul Ebejer
Early Stage Researcher

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20111122/2fceab8a/attachment.html

Anoop Rajendra

unread,
Nov 22, 2011, 3:11:54 PM11/22/11
to Discussion of Rocks Clusters
On Tue, Nov 22, 2011 at 9:52 AM, JP <jeanpau...@inhibox.com> wrote:
> Yes,
>
> I did as you suggested (many thanks) and I checked out the tutorial.  The
> problem is that this is old and doesn't work on Rocks 5.4.3 - not for the
> cluster-fork which can be easily changed to rocks run host "..." but the
> programm 411get doesn't even exist.
>
> I think it is time I write a new tutorial on this -- once I find out how it
> is done.
>
> I have tried the following steps as root:
>
> Edit /etc/auto.share and insert an entry for my directory, append "xyz
> machine.local:/export/&"  (without quotes)
> make -C /var/411 force
> rocks sync users
> /sbin/service autofs restart (I even tried reload but this did not make a
> difference)
> rocks run host "service autofs restart"

Add an entry in /etc/exports
/xyz 10.1.1.1(rw,async,no_root_squash) 10.1.0.0/255.255.0.0(rw,async)

The entry in /etc/auto.share should read
xyz machine.local:/xyz

After you've made these changes, run

# service nfs restart
# rocks sync users

Log on to a compute node, and run
# ls /share/xyz

Let us know if that works.
-a

JP

unread,
Nov 23, 2011, 4:55:05 AM11/23/11
to Discussion of Rocks Clusters, JP
This works! This works!
(I just changed the IPs as per the export line in /etc/exports)

Thanks!

-
Jean-Paul Ebejer
Early Stage Researcher

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

Reply all
Reply to author
Forward
0 new messages