Taking devices offline and completing maintenance

Input and output must be quiesced and all driver handles must be closed before a lin_tape device is taken offline. It is recommended to remove the lin_tape driver module and then the HBA driver module before maintenance is done or the physical topology of the tape drive or library environment is changed. Lin_tape can be removed by the following command at the shell prompt.
lin_taped stop
modprobe -r lin_tape

Only if sfmp was enabled unload stmp/sgmp:
modprobe -r stmp
modprobe -r sgmp

modprobe -r pfo
Likewise, the HBA module can be removed by the following command, where "HBA_driver" is your specific HBA driver.
rmmod <HBA_driver>
After the maintenance is complete and the environment is ready to issue input and output, the drivers must be reinstalled in reverse order. This procedure is typically done by
modprobe <HBA_driver>
modprobe pfo
modprobe lin_tape

Only if sfmp was enabled load stmp/sgmp:
modprobe stmp
modprobe sgmp

>lin_taped start