Version 22 (modified by 9 years ago) ( diff ) | ,
---|
How to Run Inventory
To run inventory preform the following (ALL STEPS AS ROOT):
From internal1
- Disable inventory service security:
cd /etc/omf-aggmgr-5.4/enabled
Uncomment the following line in inventory.yaml (remove the #):# - '*'
Restart OMF Agg Manager:service omf-aggmgr-5.4 restart
From repository1
- Goto the tfptboot directory and make a symbolic link for the appropriate domain:
cd /tftpboot/pxelinux.cfg/
ln -s inventory-nb-grid 0A0A
Domain Source Target Grid test-inv-grid 0A0A SB1 test-inv-sb1 0A0B SB2 test-inv-sb2 0A0C SB3 test-inv-sb3 0A0D SB4 test-inv-sb4 0A0E SB5 test-inv-sb5 0A0F SB6 test-inv-sb6 0A10 SB7 test-inv-sb7 0A11 SB8 test-inv-sb8 0A12 SB9 test-inv-sb9 0A13 Outdoor test-inv-outdoor 0A28
- Goto the /export/nfsroot/etc/resolvconf/resolv.conf.d and make a symbolic link to head for the proper domain:
cd /export/nfsroot/etc/resolvconf/resolv.conf.d
ln -s head.grid head
Domain Source Grid head.grid SB1 head.sb1 SB2 head.sb2 SB3 head.sb3 SB4 head.sb4 SB5 head.sb5 SB6 head.sb6 SB7 head.sb7 SB8 head.sb8 SB9 head.sb9 Outdoor head.outdoor
From console (grid or sandbox)
- If you are inventorying grid:
Run the run_inventory script (this script will take 45 minutes to run):
cd /root/inventory/./run_inventory.rbStarting Output will look like:
root@console.grid:/root/inventory# ./run_inventory.rb /usr/lib/ruby/vendor_ruby/restclient/response.rb:11: warning: method redefined; discarding old body I, [2013-06-26T16:55:18.502861 #30052] INFO -- : Database: Restfull DB connected to http://internal1.orbit-lab.org:5054/inventory/ =================== grid.orbit-lab.org ==================== =================== First pass ==================== Turning off 400 nodes Sleep for a minute Turning on 400 nodes Give it 900 to collect . . .If you are inventorying a sandbox:
Turn on (or restart) all nodes, so they boot into the inventory pxe-image:
omf tell -a on -t all
From a browser on any machine that can see internal1
- Check the inventory page for the sandbox you are inventorying and monitor the INV_check_in attribute:
Wait until all the nodes check in, then proceed to next step.
From repository1
- Break the symbolic link!!! If this is not done the next person to use the grid/sandbox will have a bad time.
Note: Where 0A0A is the hex target set in Step 1 (example):
rm /tftpboot/pxelinux.cfg/0A0Arm /export/nfsroot/etc/resolvconf/resolv.conf.d/head
From internal1
- Update the inventory service "domain topology" cache (which nodes belong to what testbeds) by visiting the following URL (takes 2-3 minutes to complete):
http://internal1.orbit-lab.org:5054/inventory/update_cache
- Update topologies:
cd /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory/scripts
./mktopo all
Note: This takes some time to preform all the actions, and the omf-agg-manager restarts every even hour on the 11th minute. If the ruby process is running at that time it will fail.
From internal1
- Restore inventory service security ( !!! SUPER IMPORTANT !!! ):
cd /etc/omf-aggmgr-5.4/enabled
Comment out the following line in inventory.yaml (add # to beginning of line):- '*'
Restart OMF Agg Manager:service omf-aggmgr-5.4 restart
Note:
See TracWiki
for help on using the wiki.