Restarting the SAM-FS Archiver
This post simply provides the steps necessary to restart the SAM-FS archiver cleanly.
- Review currently running SAM related procs
# ps -edf | grep sam
- See if there are any defunct procs. If there are, attempt to kill them off
# ps -edf | grep defun # kill -9 <defunct-process-id>
- Review current archreqs in the queue
# /opt/SUNWsamfs/sbin/showqueue -a
- Idle archiving and monitor activity until idle
# samcmd aridle # samcmd a
- Stop robotic daemons
# samd stop
- Review all SAMFS proc ids
# ptree `pgrep sam-fsd`
- Then manually kill the archiver related procs
# pkill -9 sam-arfind # pkill -9 sam-archiverd
- Manually remove any archreqs
# rm /var/opt/SUNWsamfs/archiver/*/ArchReq/*
- Manually remove the archiver state file
# rm /var/opt/SUNWsamfs/archiver/state
- Start robotic daemons and restart the archiver
# samd start # samcmd arrestart
- Note different proc ids for the archiver procs
# ptree `pgrep sam-fsd`
- Monitor the archiver
# samcmd a