Forum Discussion

SheltonQ's avatar
SheltonQ
Level 4
8 years ago

Write Protected Tape

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.

  • sclind's avatar
    sclind
    8 years ago

    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

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

    • SheltonQ's avatar
      SheltonQ
      Level 4

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

       

      • sclind's avatar
        sclind
        Level 6

        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