View Repair Crawl Activities (DRAFT)

Overview

This procedure describes how to view repair crawl activities in Lattus for a single namespace. To determine if a crawl is running for another namespace, repeat the procedure for each namespace you want to check.

 


Procedure

  1. Log into the management controller node as root.

     

  2. Exit out of OSMI by entering 0 (zero).

     

  3. Start Qshell.

     

    # qshell

     

  4. List the namespaces:

     

    In[]: q.dss.manage.listNameSpaces().keys()

    Out[]: ['_metastorebackup', 'data1', '_osis_model_backup']

     

  5. Determine the master node ID for the namespace:

     

    In []: q.dss.manage.showNameSpace('data1')['master_node_id']

    Out[]: 4

     

     

  6. Determine the IP address of the master node:

     

    In []: q.dss.manage.showStorageDaemon(4)['address'].split(':')[0]

    Out[]: '10.10.1.43'

  7. Exit Qshell:

exit()

 

  1. Enter y to confirm exit.
  2.  

  3. Check the logs on the master node (storage node):

     

    # ssh 10.10.1.43
    # cd /opt/qbase3/var/log/dss/storagedaemons/<id>/
    # less node.log
    # grep "loop start" node.log
    # grep "loop end" node.log

     

    If you see “loop start” and no “loop end” then a repair crawl is still running.


Fancy Procedure

  1. Use the following command in place of steps 4, 5, and 6 above to show all namespaces with master ID and the IP address of the master node:

In []: q.dss.manage.showStorageDaemon(4)['address'].split(':')[0]) for sd in [ (ns, q.dss.manage.show)

Out[]:
[('_metastorebackup', 9, '10.10.1.45'),
('data1', 4, '10.10.1.43'),
('_osis_model_backup', 10, '10.10.1.46')]

 

 


 

 



This page was generated by the BrainKeeper Enterprise Wiki, © 2018