Anyway I was trying to do a full backup of my work server SUN SPARC SERVER 1000 machine (yes we are actually using this dinosaur). I did the ufsdump comand and everything was fine until I got to the dumping of regular files. During the run I got the following errors:
I was wondering if this error is a problem with the tape drive, the tape cartidge, or the file that was trying to get backup on the tape. Trying to figure out where to start fixing this issue.
For those with backup tapes (and I just bought and installed a Seagate one for my FreeBSD box) I want to know how to get the most out of each tape by placing multiple backups on each tape (potentially 20GB). Please correct me if I'm wrong:
First, retension the tape:
# mt retension
next, turn... (3 Replies)
Currently am running the backup command for AIX 5L and see that the tape is rewinding after the completion of the back.
backup -0 -u -f /dev/rmt0 / >> $file 2>&1
What can I do to stop allow the backup to rew after the completion of this job? Any thoughts?
Thanks again. (2 Replies)
Hello all, how would i go about verifying that a tape is backing up data correctly other than restoring the backup. for example, what command would i use to check the tape for errors? Any and all help is appreciated
-Coffee (0 Replies)
Hi,
I am a abit new in AIX system administration field. I want to gather knowledge about backup techniques. As per my knowledge we use Tape archives for taking backups. Can anyone pls explain me in detail abt tape archive? Whether these tape archives come along with the systems or we have to... (1 Reply)
My tape library is broken but backups still need to go on .I have 2 boxes running Solaris 10
Got SCSI tape drive attached to the DEV box ( my PROD Box has only fibre)
I want to take the prod backup from the DEV box using ufsdump. ie
/usr/sbin/ufsdump 0uvf DEV:/dev/rmt/1n... (2 Replies)
Hi, I am currently looking at how we can optimize and speed up our backups here. I am just a beginner operator and our system admin hardly knows anything (long term interim).
There is this particular TAR backup of DB backups that for a 10.5Gb amount of files, it takes 5 hours to do the backup on... (6 Replies)
It may seam a bit odd that I ask this question.
After you have done your backups to tapes, do you verify the content of the tapes ?
- never
- sometimes
- always
The reason I am asking is that here in the office, all the backup procedures include verifying the content of the tapes (no... (5 Replies)
Hello folks. I have the following problem:
I'm trying to create a tape backup of a list of files on a 10 year old server, running SCO Openserver 5.0.5 (the tape drive is a Seagate STD224000N, connected as a SCSI drive).
I then want to restore the contents of this tape onto a new server... (6 Replies)
Hello,
I need to be able to encrypt LTO tapes that our AIX writes to for backups.
We have a tape library (IBM TS3100) that our AIX host uses to write to LTO6 tapes. We then take those tapes off-site and restore to another AIX system using a 3580-H6S LTO6 tape drive - this is a very simple... (3 Replies)
Discussion started by: c3rb3rus
3 Replies
LEARN ABOUT MINIX
mtio
MTIO(4) Kernel Interfaces Manual MTIO(4)NAME
mtio - magnetic tape commands
SYNOPSIS
#include <sys/types.h>
#include <sys/mtio.h>
#include <sys/ioctl.h>
DESCRIPTION
The magnetic tape devices described in sd(4) may be sent commands or queried for their status using the following ioctl calls:
ioctl(fd, MTIOCTOP, &struct mtop)
ioctl(fd, MTIOCGET, &struct mtget)
The struct mtop, struct mtget and associated definitions are defined in <sys/mtio.h> as follows:
/* Tape operations: ioctl(fd, MTIOCTOP, &struct mtop) */
struct mtop {
short mt_op; /* Operation (MTWEOF, etc.) */
int mt_count; /* Repeat count. */
};
#define MTWEOF 0 /* Write End-Of-File Marker */
#define MTFSF 1 /* Forward Space File mark */
#define MTBSF 2 /* Backward Space File mark */
#define MTFSR 3 /* Forward Space Record */
#define MTBSR 4 /* Backward Space Record */
#define MTREW 5 /* Rewind tape */
#define MTOFFL 6 /* Rewind and take Offline */
#define MTNOP 7 /* No-Operation, set status only */
#define MTRETEN 8 /* Retension (completely wind and rewind) */
#define MTERASE 9 /* Erase the tape and rewind */
#define MTEOM 10 /* Position at End-Of-Media */
#define MTMODE 11 /* Select tape density */
#define MTBLKZ 12 /* Select tape block size */
/* Tape status: ioctl(fd, MTIOCGET, &struct mtget) */
struct mtget {
short mt_type; /* Type of tape device. */
/* Device dependent "registers". */
short mt_dsreg; /* Drive status register. */
short mt_erreg; /* Error register. */
/* Misc info. */
off_t mt_resid; /* Residual count. */
off_t mt_fileno; /* Current File Number. */
off_t mt_blkno; /* Current Block Number within file. */
off_t mt_blksize; /* Current block size. */
};
See mt(1) for a detailed description on what each operation does. The mt_type field is always zero, there is no use for it yet. Mt_dsreg
is 0 (OK), 1 (Error), or 2 (EOF encountered.) Mt_erreg holds the SCSI sense key of the last operation. Mt_blksize is the current tape
block size in bytes, zero if the block size is variable.
Note that one can issue these commands on a file descriptor that is in use to read or write data, something that mt can't do. So you can
add eof markers in the middle of an output stream, or get the status of a device before a rewind-on-close tape rewinds.
The driver will automatically add an end of file marker to a tape that is written to if you execute a space command. If you write eof
markers yourself then the driver will not add one extra on close.
SEE ALSO mt(1), sd(4).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
MTIO(4)