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 <
[EMAIL PROTECTED]> 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
>
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to