[Pvfs2-users] Re: Mount Script

Rob Ross rross at mcs.anl.gov
Tue Sep 2 12:14:21 EDT 2008


Nice. We should probably add this into the examples or something. -- Rob

On Aug 27, 2008, at 10:29 AM, Bradley Settlemyer wrote:

> 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
>
> _______________________________________________
> Pvfs2-users mailing list
> Pvfs2-users at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users



More information about the Pvfs2-users mailing list