first add files
This commit is contained in:
14
sbin/build-sunhpc
Executable file
14
sbin/build-sunhpc
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# first : initialize the sunhpc database
|
||||
# second : add cluster data to database.
|
||||
WHERE=$1
|
||||
HERE=`pwd`
|
||||
SUNHPC=/opt/sunhpc/bin/sunhpc
|
||||
|
||||
# initialize database
|
||||
/opt/sunhpc/sbin/init-sunhpcDB
|
||||
|
||||
# add fronetend node to database
|
||||
MYNAME=`hostname -s`
|
||||
$SUNHPC add host $MYNAME rack=0 rank=1 member=server 2> /tmp/sunhpc-initdb.log
|
||||
$SUNHPC add catindex $MYNAME category=host 2>> /tmp/sunhpc-initdb.log
|
||||
Reference in New Issue
Block a user