Changes between Version 10 and Version 11 of Internal/RunningInventory
- Timestamp:
- Jan 5, 2016, 3:54:21 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/RunningInventory
v10 v11 1 1 == How to Run Inventory == 2 To run inventory preform the following :2 To run inventory preform the following ('''ALL STEPS AS ROOT'''): 3 3 4 From repository1:: 4 '''From repository1''' 5 5 1. Goto the tfptboot directory and make a symbolic link for the appropriate domain 6 6 {{{ … … 22 22 || 0A28 || Outdoor || 23 23 24 2. goto the /export/nfsroot/etc/resolvconf/resolv.conf.d and make a symbolic link to head for the proper domain e.g. for grid: 24 2. goto the /export/nfsroot/etc/resolvconf/resolv.conf.d and make a symbolic link to head for the proper domain: 25 26 For grid: 25 27 {{{ 26 28 cd /export/nfsroot/etc/resolvconf/resolv.conf.d 27 29 root@repository1:/export/nfsroot/etc/resolvconf/resolv.conf.d# ln -s head.grid head 28 30 }}} 29 for sb1:31 For sb1: 30 32 {{{ 31 33 cd /export/nfsroot/etc/resolvconf/resolv.conf.d 32 34 root@repository1:/export/nfsroot/etc/resolvconf/resolv.conf.d# ln -s head.sb1 head 33 35 }}} 34 3. '''If you are inventorying grid:''' 35 As root run the run_inventory script: 36 {{{ 36 37 '''From console (grid or sandbox)''' 38 3. '''''If you are inventorying grid:''''' 39 40 Run the run_inventory script (this script will take 45 minutes to run): 41 {{{ 37 42 root@console.grid:~# cd /root/inventory/ 38 43 root@console.grid:/root/inventory# ./run_inventory.rb 39 40 41 44 }}} 45 Starting Output will look like: 46 {{{ 42 47 root@console.grid:/root/inventory# ./run_inventory.rb 43 48 /usr/lib/ruby/vendor_ruby/restclient/response.rb:11: warning: method redefined; discarding old body … … 52 57 . 53 58 . 54 55 This script will take 45 minutes to run.56 '''If you are inventorying a sandbox:''' 57 1. Turn on (or restart) all nodes, so the boot into the inventory pxe-image 58 1.Check the inventory page for the sandbox you are inventorying, e.g. for sandbox9:59 }}} 60 '''''If you are inventorying a sandbox:''''' 61 Turn on (or restart) all nodes, so they boot into the inventory pxe-image 62 63 Check the inventory page for the sandbox you are inventorying, e.g. for sandbox9: 59 64 {{{ 60 65 http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb9.orbit-lab.org* 61 66 }}} 62 1. Wait until all the nodes check in, then proceed to next step. 63 From repository1:: 64 4. '''Break the link''' if this is not done the next person to use the grid will have a bad time. 65 {{{ 67 Wait until all the nodes check in, then proceed to next step. 68 '''From repository1''' 69 4. '''''Break the symbolic link!!! ''''' If this is not done the next person to use the grid/sandbox will have a bad time. 70 71 '''Note''': Where ''0A0A'' is the Hex set in Step 1. 72 {{{ 66 73 rm 0A0A 67 74 }}} 68 75 5. Update the inventory service "domain topology" cache (which nodes belong to what testbeds) by visiting the following URL: 69 76 {{{ 70 77 http://internal1.orbit-lab.org:5054/inventory/update_cache 71 78 }}} 72 From internal1:: 73 6. runthe ruby scripts:79 '''From internal1''' 80 6. Update topologies by running the ruby scripts: 74 81 {{{ 75 82 root@internal1:~# cd /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory/ … … 78 85 root@internal1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory# ruby mktopo_disk.rb 79 86 }}} 80 '''Note''': each ruby script 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.87 '''Note''': Each ruby script 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.