[PVFS-developers] non interactive mkmgrconf

Garrick Staples garrick at usc.edu
Thu Jul 29 10:30:20 EDT 2004


On Thu, Jul 29, 2004 at 08:56:04AM -0500, Rob Ross alleged:
> Hi Garrick,
> 
> Yes, something like that could get in :).

Thanks!  Now I don't have to the merge the patch anymore :)

 
> I changed a couple of "if ($opt_u)" things to "if (defined($opt_u))" 
> instead, so that even if the value was zero you'd still get the right 
> behavior.  Otherwise looks good.

Good idea, I should have done that.  Did you fix up all the indenting problems
introduced by the patch?  I avoided all the whitespace changes to keep the
patch small.

 
> I am guessing that you just write out the .iodtab with some other script?

Um, let's see... I worked out all this stuff a year ago...

The head node gets this:
   mkdir /pvfs-meta
   (  
      cd /pvfs-meta
      $PVFS_MKMGRCONF -r /pvfs-meta -u $2 -g $3 -m 700 -H $(hostname) -p 3000 -P
   7000 $(echo $(sort $PBS_HOME/aux/$JOBID | uniq | head -$PVFS_MAXNODE))
   )
   $PVFS_MGR

And every node in the job (including the head node) gets this:
   mkdir /tmp/pvfs-data
   chown $JOBUSER:$JOBGROUP /tmp/pvfs-data
   echo -e "datadir /tmp/pvfs-data\nuser $JOBUSER\ngroup $JOBGROUP" > /etc/iod.conf
   
   echo $EXE_HOST:/pvfs-meta /scratch pvfs port=3000 0 0 > /etc/pvfstab
   
   [ -d /scratch ] || mkdir /scratch
   $PVFS_SBIN/iod
   $PVFS_SBIN/pvfsd
   $PVFS_MOUNT $EXE_HOST:/pvfs-meta /scratch

Nope, mkmgrconf is writing the .iodtab for me.

-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs-developers/attachments/20040729/02151322/attachment.bin


More information about the PVFS-developers mailing list