cancel
Showing results for 
Search instead for 
Did you mean: 

Write Protected Tape

SheltonQ
Level 4

Greetings All - Is there a way to identify a write protected tape from netbackup as i do not have library console IP , would like to check the status.

1 ACCEPTED SOLUTION

Accepted Solutions

sclind
Moderator
Moderator
   VIP   

I run this once a day in crontab:

find /usr/openv/netbackup/logs/bptm -mtime -1 -type f | xargs grep "write protected" > /tmp/freeze.grep && mailx -s "write protected media found" userid@mycompany.com

A sample email:

/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.212 [31851006] <16> mount_open_media: error requesting media, TpErrno = Request terminated because media is write protected
/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.216 [31851006] <16> write_backup: FREEZING media id R20261, it is write protected and cannot be used for backups

View solution in original post

5 REPLIES 5

sclind
Moderator
Moderator
   VIP   

Only that when it tries to use it you'll get a message in the bptm  log and the tape will get frozen.

will bptm report anything as write protected or keyword i can look for in the logs ?

 

sclind
Moderator
Moderator
   VIP   

I run this once a day in crontab:

find /usr/openv/netbackup/logs/bptm -mtime -1 -type f | xargs grep "write protected" > /tmp/freeze.grep && mailx -s "write protected media found" userid@mycompany.com

A sample email:

/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.212 [31851006] <16> mount_open_media: error requesting media, TpErrno = Request terminated because media is write protected
/usr/openv/netbackup/logs/bptm/root.092416_00001.log:04:01:35.216 [31851006] <16> write_backup: FREEZING media id R20261, it is write protected and cannot be used for backups

Thanks , let me check my logs and update you.

Genericus
Moderator
Moderator
   VIP   

And don't get me started on the operators that manage to insert the tape upside down!

 

NetBackup 9.1.0.1 on Solaris 11, writing to Data Domain 9800 7.7.4.0
duplicating via SLP to LTO5 & LTO8 in SL8500 via ACSLS