for_each_profile(node_db, prof_list, doModules)
sys_set_debug_path()
+ sys_set_ptldebug()
script = config.gdb_script
run(lctl.lctl, ' modules >', script)
if config.gdb:
config.portals = os.path.join(config.lustre, config.portals)
def sysctl(path, val):
+ debug("+ sysctl", path, val)
if config.noexec:
return
try:
def sys_set_debug_path():
- debug("debug path: ", config.debug_path)
sysctl('portals/debug_path', config.debug_path)
def sys_set_recovery_upcall(upcall):
if config.recovery_upcall:
upcall = config.recovery_upcall
if upcall:
- debug("setting recovery_upcall:", upcall)
sysctl('lustre/recovery_upcall', upcall)
def sys_set_timeout(timeout):
if config.timeout > 0:
timeout = config.timeout
if timeout > 0:
- debug("setting timeout:", timeout)
sysctl('lustre/timeout', timeout)
def sys_set_ptldebug():
# the command overrides the value in the node config
+ debug("ptldebug: ", config.ptldebug)
if config.ptldebug != None:
ptldebug = config.ptldebug
sysctl('portals/debug', ptldebug)