[Pvfs2-users] Re: Mount Script
Bradley Settlemyer
bradles at parl.clemson.edu
Wed Aug 27 11:29:30 EDT 2008
Since no one had a script, here is a quick outline that I ended up using.
It probably won't work for anyone else, but it may be a starting place for
some folks. I don't think that using the ping command is wrong-headed, but
if it is, sorry:
#!/bin/sh
# Commands
mnt=/mnt/pvfs
ping_cmd="/opt/pvfs-2.7.1/bin/pvfs2-ping -m $mnt"
$ping_cmd
result=$?
while [ "0" -ne "$result" ]; do
sleep 5
$ping_cmd
result=$?
done
# Proceed to mount the location
/opt/pvfs-2.7.1/sbin/pvfs2-client -p sbin/pvfs2-client-core
mount $mnt
Cheers,
Brad
On Tue, Aug 26, 2008 at 9:24 AM, Bradley Settlemyer <
bradles at parl.clemson.edu> wrote:
> Hello
>
> Does anyone have a script that waits until all of the PVFS servers are
> started before running the mount command on the compute nodes? I presume it
> would run ping every few seconds, and once the ping completes, then mount.
>
> Cheers,
> Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20080827/dfe48a70/attachment.htm
More information about the Pvfs2-users
mailing list