Displays a list of metadata servers and the automatic-restart settings for each.
>>-lsautorestart--+--------+--+-----------------------------+---> +- -?----+ | .-default----------. | +- -h----+ '- -fmt--+-delim--character-+-' '- -help-' '-xml--------------' >--+--------------+--+----------------+--+-------------+--------> | .-off-. | | .-on--. | '- -r--number-' '- -p--+-on--+-' '- -hdr--+-off-+-' >--+--------------+--+-----+--+-----------------+-------------->< | .-off-. | +- -l-+ | .-------------. | '- -v--+-on--+-' '- -s-' | V | | +---server_name-+-+ '- - -------------'
Name Service State Last Probe State Last Probe Probes ===================================================================== ST1 Running Live Server Feb 11, 2003 9:35:47 AM 218690
ST1,Running,Live Server,Feb 11, 2003 9:35:47 AM,218690
<IRETURNVALUE> <INSTANCE CLASSNAME="STC_TankWatchdog"> <PROPERTY NAME="ServiceName" TYPE="string"><VALUE TYPE="string">ST1 </VALUE></PROPERTY> <PROPERTY NAME="State" TYPE="uint32"><VALUE TYPE="uint32">1</VALUE> </PROPERTY> <PROPERTY NAME="ProbeState" TYPE="uint32"><VALUE TYPE="uint32">2</VALUE> </PROPERTY> <PROPERTY NAME="LastProbeTimeStamp" TYPE="datetime"><VALUE TYPE="datetime">20030211093547.000009-420</VALUE></PROPERTY> <PROPERTY NAME="TotalProbes" TYPE="uint64"><VALUE TYPE="uint64">218690 </VALUE></PROPERTY> <PROPERTY NAME="RetriesHWM" TYPE="uint32"><VALUE TYPE="uint32">2</VALUE> </PROPERTY> </INSTANCE> </IRETURNVALUE>
If you run this command from an engine hosting a subordinate metadata server, you can display information about only the local metadata server. If you run this command from the engine hosting the master metadata server, you can display information about any metadata server.
It is possible for the probe state to be unknown when the metadata server is live.
Example: If the metadata server fails, the metadata server restart service determines that the metadata server is absent, and restarts it. If the metadata server is slow to start, on the next probe cycle, the metadata server is neither live nor absent. When it is probed again, the metadata server is live.
Example: If the local disk is full, and the metadata server restart service tries to restart the metadata server but cannot write to its log file. The metadata server crashes, and the metadata server restart service tries to restart it again. On the next probe cycle, the state of the metadata server is absent or unknown.
sfscli> lsautorestart ST1 Name Service State Last Probe State Last Probe Probes ===================================================================== ST1 Running Live Server Feb 11, 2003 9:35:47 AM 5
Parent topic: Administrative commands
Related tasks
Viewing metadata server restart service statistics
Viewing metadata server restart service tuning details
Related reference
addserver
chserverconfig
dropserver
lsserver
setautorestart
setport
startautorestart
startserver
statserver
stopautorestart
stopserver