Re-Adding to Database
If a host needs to be re-added to the database (it was erased, or the front-end is being rebuilt), get the host info from SVN.
[root@msurxi install]# grep cc-115-1 /var/svn/msurxi.aglt2.org/rocks-db/rocks-dump.out
/opt/rocks/bin/rocks add host attr cc-115-1 mac-eth0 00:0c:29:c4:20:6f
/opt/rocks/bin/rocks add host cc-115-1 cpus=2 rack=115 rank=1 membership=dell-compute-x
/opt/rocks/bin/rocks add host interface cc-115-1 eth0
/opt/rocks/bin/rocks add host interface cc-115-1 eth1
/opt/rocks/bin/rocks set host interface ip cc-115-1 eth0 10.10.128.254
/opt/rocks/bin/rocks set host interface mac cc-115-1 eth0 00:0c:29:c4:20:6f
/opt/rocks/bin/rocks set host interface mac cc-115-1 eth1 00:0c:29:c4:20:79
/opt/rocks/bin/rocks set host interface module cc-115-1 eth0 e1000
/opt/rocks/bin/rocks set host interface module cc-115-1 eth1 e1000
/opt/rocks/bin/rocks set host interface name cc-115-1 eth0 cc-115-1
/opt/rocks/bin/rocks set host interface subnet cc-115-1 eth0 private
Run those commands (as needed). Automating this is a to-do item.
Need to
sync config
rocks sync config
Checks
You should be able to look-up the host's name and reverse look-up the host's IP.
[root@msurxi install]# host cc-115-1
cc-115-1.msulocal has address 10.10.128.254
[root@msurxi install]# host cc-115-1
cc-115-1.msulocal has address 10.10.128.254
If everything is ok, you can list the host XML and profile:
[root@msurxi install]# rocks list host xml cc-115-1 | wc
5797 11557 216962
[root@msurxi install]# rocks list host profile cc-115-1 | wc
5814 14463 211971
If the above give errors, something is wrong...
--
TomRockwell - 13 Nov 2009