mt -f /dev/rmt/**
I have seen many drive in the output of tpautoconf -report_disc , to veryfiye the path i did folowing and getting following output.
mt -f /dev/rmt/9cbn status
/dev/rmt/9cbn: write protected or reserved.
when i am trying to replace the drive
tpautoconf -replace_drive acs_driveXX -path /dev/rmt/9cbn
Operation failed, could not find device with path /dev/rmt/9cbn
also i see other path which i try to verifiy the status of path im getting below error
/dev/rmt/15cbn: No such file or directory
/dev/rmt/28cbn: no tape loaded or drive offline
/dev/rmt/9cbn: write protected or reserved.
Something very wrong at OS level with devices?
Forget about NBU for now and fix access between OS and devices.
write protected or reserved means one of the systems accessing this drive is holding SCSI reservation on the drive.
If SSO environment, 'vmdareq' output on master might tell you which media server has RESERVED status on the drive.To release reservation, try the following:
mt -f <drive_path_name> forcereserve
followed by:
mt -f <drive_path_name> releaseNo such file or directory means the OS has lost connectivity to device - either physical path problem or lack of persistent binding which results in device names to change when server is rebooted.
To rebuild OS device paths, issue
devfsadm -C -c tape
no tape loaded or drive offline is normal status for empty drive.
For more info on mt drive status, see man pages of mt command (man mt).