Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi,

Unable to make tape backup, please help.

/opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00

 * Creating local directories for configuration files and archive.

=======  04/25/16 16:28:08 IST  Started /opt/ignite/bin/make_tape_recovery.
         (Mon Apr 25 16:28:08 IST 2016)
         @(#)Ignite-UX Revision C.7.5.142
         @(#)ignite/net_recovery (opt) Revision:
         /branches/IUX_RA0803/ignite/src@72866 Last Modified: 2008-02-06
         15:49:50 -0700 (Wed, 06 Feb 2008)

       * Testing for necessary pax patch.
       * Recovery Archive Description = Recovery Archive

       * Recovery Archive Location    = /dev/rmt/0mn

       * Number of Archives to Save   = 2

       * Pax type  = tar


        In?     dsk/vg  name                    minor#  Associated disks/mountpoints
        2       v       /dev/vg00               0x00    /dev/disk/disk3_p2
                                                /dev/vg00/lvol1 /stand  2
                                                /dev/vg00/lvol2
                                                /dev/vg00/lvol3 /       2
                                                /dev/vg00/lvol4 /home   2
                                                /dev/vg00/lvol5 /opt    2
                                                /dev/vg00/lvol6 /soft   2
                                                /dev/vg00/lvol7 /tmp    2
                                                /dev/vg00/lvol8 /usr    2
                                                /dev/vg00/lvol9 /var    2

        ** 0 - The Volume Group or Filesystem is Not included in the
               System Recovery Archive
        ** 1 - The Volume Group or Filesystem is Partially included in the
               System Recovery Archive
        ** 2 - The Volume Group or Filesystem is Fully included in the
               System Recovery Archive

       * Checking Versions of Ignite-UX filesets
ERROR:   Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16).
ERROR:   Check tape device failed.

=======  04/25/16 16:28:09 IST  make_tape_recovery completed unsuccessfully

>ioscan -funC tape
Class     I  H/W Path     Driver S/W State   H/W Type     Description
=====================================================================
tape      0  0/4/1/0.0.0  stape   CLAIMED     DEVICE       HP      Ultrium 3-SCSI
                         /dev/rmt/0m            /dev/rmt/0mnb          /dev/rmt/c1t0d0BESTn
                         /dev/rmt/0mb           /dev/rmt/c1t0d0BEST    /dev/rmt/c1t0d0BESTnb
                         /dev/rmt/0mn           /dev/rmt/c1t0d0BESTb

>fuser -u /dev/rmt/0m*
/dev/rmt/0m:
/dev/rmt/0mb:
/dev/rmt/0mn:     7701o(root)
/dev/rmt/0mnb:

>ps -ef |grep 7701
    root  6855 21540  0 16:30:58 pts/0     0:00 grep 7701
    root  7701     1  0  Apr 23  pts/0    10:15 /sbin/pax -dwx ustar -f /dev/rmt/0mn


>kill -9 7701

>kill -9 7701

>ps -ef |grep 7701
    root  7701     1  0  Apr 23  pts/0    10:15 /sbin/pax -dwx ustar -f /dev/rmt/0mn
    root  7127 21540  0 16:31:25 pts/0     0:00 grep 7701

>mt -f /dev/rmt/0m status
on tape open: Device busy

>mt -f /dev/rmt/0m rew
/dev/rmt/0m: Device busy

A couple of thoughts/questions:
1) Have you tried to restart your system, and make sure the tape is not in the tape drive at boot.
2) Try a second tape (to rule out a bad piece of media)

Have you tried to do this multiple times? The existing job access the tape is from two days ago.

Looks like you have to go and see on the server if there are no flashing led on the drive also, and take a cleaning tape with you I think it needs a feew passes of cleaning tape...

did you try offl option of mt to kick the tape out? As I suspect it will not give you back the tape... But if it works - quick give a clean, and check the drive, and be prepared to call HP support...

Hi,
I did manual ejection of tape and also did a restart to tape drive. Tomorrow i am planning to give the syatem a reboot if no solution found. Any suggestion while rebooting the system with respect to tape.
@ joeyg .. i will make sure to eject tape while reboot.
@vbe .. i will try to make it offline before reboot but is it possible to make it online via cmd or physical intervention required.

Any help will highly appreciated.

Yes, a complete restart.
Somehow, based on the owner of the original (in use) job for the tape, leads me to think something a start-up is trying to use the tape drive.
When you restart, you may want to make sure a tape is not in the drive. (Just in case there is something in the start routines.)