Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

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

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-25-2016
anuragr anuragr is offline
Registered User
 
Join Date: Mar 2016
Last Activity: 20 January 2017, 12:31 PM EST
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi,

Unable to make tape backup, please help.


Code:
/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

Sponsored Links
    #2  
Old Unix and Linux 04-25-2016
joeyg's Unix or Linux Image
joeyg joeyg is online now Forum Staff  
modérateur
 
Join Date: Dec 2007
Last Activity: 25 September 2017, 2:42 PM EDT
Location: Within two miles of a Dunkin donuts.
Posts: 2,457
Thanks: 126
Thanked 192 Times in 173 Posts
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.
Sponsored Links
    #3  
Old Unix and Linux 04-25-2016
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 25 September 2017, 1:59 PM EDT
Location: Switzerland - GE
Posts: 6,459
Thanks: 284
Thanked 549 Times in 511 Posts
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...
    #4  
Old Unix and Linux 04-25-2016
anuragr anuragr is offline
Registered User
 
Join Date: Mar 2016
Last Activity: 20 January 2017, 12:31 PM EST
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #5  
Old Unix and Linux 04-25-2016
joeyg's Unix or Linux Image
joeyg joeyg is online now Forum Staff  
modérateur
 
Join Date: Dec 2007
Last Activity: 25 September 2017, 2:42 PM EDT
Location: Within two miles of a Dunkin donuts.
Posts: 2,457
Thanks: 126
Thanked 192 Times in 173 Posts
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.)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
/dev/ttyS0: Device or resource busy piyush011 Hardware 0 02-19-2011 03:04 AM
/dev/rmt/0mn: write protected or reserved vickyingle5 Solaris 5 04-12-2010 07:24 AM
/dev/rmt/0mn: write protected or reserved vickyingle5 Hardware 1 04-08-2010 05:51 AM
/dev/ttyS2 device or resource busy blianna UNIX and Linux Applications 1 08-21-2009 05:50 AM
cygwin /dev/ttyS2: Device or resource busy blianna UNIX Desktop Questions & Answers 0 08-21-2009 05:35 AM



All times are GMT -4. The time now is 02:44 PM.