Create non-rewinding tape drive

Posted on 2005-04-12
Last Modified: 2013-11-17
I'm trying to run a script for backing up our RS/6000. When I run the script I get the following error.

0512-046 mksysb: Device /dev/rmt0n is not in the available state.

I get this same error for each save operation in the script. Now I trust this is because there is no tape device named "rmt0n". The script I'm trying to run looks similar to the following, which I read in one of tfewsters posts.

mksysb -i /dev/rmt0n
savevg -f /dev/rmt0n vg01
savevg -f /dev/rmt0n vg02
savevg -f /dev/rmt0n vg03

Now, the post read to me that "rmt0n" would be treated as a non-rewinding tape device. Can I create another device file that points to the same tape device that is non-rewinding? If so, how? Or perhaps there is a parameter that can be passed so the device does not rewind after each save operation?
Question by:midwestexp
    LVL 20

    Expert Comment

    There have no such device call rmt0n within AIX.  n stands for drive number. Maybe I misunderstand your question. Would you show me the url of the tape device that is non-rewinding.

    Use lsdev command to find out the tape device name. For example

    hk64(root)/> lsdev -Cc tape
    rmt0 Available 10-60-00-5,0 SCSI 8mm Tape Drive
    rmt1 Available 10-60-00-6,0 SCSI 8mm Tape Drive

    It means the AIX have two tape drives: rmt0 and rmt1.
    LVL 20

    Expert Comment

    savevg only support vg at a tape. Like mksysb can you cannot have two mksysb images at the tape. Hence you cannot backup two vgs at one tape using savevg.
    This is reason why I prefer to use backup command to back the files at filesystem level  as backup command can backup more than a filesystem within a tape.

    Extract from savevg help
      Attention: The savevg command will not generate a bootable tape if the
        volume group is the root volume group. Although the tape is not bootable,
        the first three images on the tape are dummy replacements for the images
        normally found on a bootable tape. The actual system backup is the fourth
        image. For more information about images on bootable tapes, please see
        Troubleshooting an Installation from a System Backup, General Information
        Regarding Mksysb System Backups in the AIX Installation Guide.
    LVL 20

    Expert Comment

    LVL 20

    Accepted Solution

    My bad, it seems the no-rewind device under AIX is /dev/rmt0.1 - But I'll test that later
    LVL 3

    Assisted Solution



             rmt0.1 is the non-rewind device, look no further.


    Author Comment

    So far it is working great. Thanks guys.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now