Fedora Servers :: Tar And Mt Commands For Tape Drive?
Feb 26, 2010
I'm having issues with mt commands. For some reason, my server doesn't like backing up directories using tar.
Code:
# tar -czf /dev/st0 /www /home
ends up giving me an error message saying "removing / prefix" and then using the command
Code:
# mt -f /dev/st0 status
gives me an IOCTRL error. I've googled the error code and haven't come up with a viable fix. Thus far, the only way I've been able to check which files are on the tape is:
Code:
# tar -tzf /dev/st0
Of course, without getting the actual directories on the tape in the first place, the only files I've been able to transfer at this point are just singular files within the directories as opposed to the entire directories themselves.
I have been using an LTO-5 Ultrium-3000 tape drive connected to an ATTO HBA without problem. I can control the tape drive using "mt -f /dev/nst0" and have been able to make successful backups using cpio, tar, and dump/restore. I followed some instructions on the web about how to install the HPE Library and Tape Tools application (version 4.21) which relies on conversion of a rpm to a deb file. The software seems to have been installed correctly and runs. However the hardware scan function does not recognize my tape drive. The following is suggested in the user manual if the tape device is not recognized by the software under Linux:
1. Login as root. 2. Edit the following file: vi /etc/modules.conf 3. Add the following line as appropriate: add options scsi_mod max_scsi_luns=128 4. Reboot the computer.
The problem is I don't have an /etc/modules.conf and am not sure exactly which file would be equivalent? If this is even the correct solution.
My tape drive is controllable and functions well using "mt -f /dev/nst0 status" so it seems to be a matter of LT&T software to detect the tape drive.
At the risk of providing too much info here some, possibly relevant, output from lshw
*-pci:3 description: PCI bridge product: 6 Series/C200 Series Chipset Family PCI Express Root Port 1 vendor: Intel Corporation physical id: 1c bus info: pci@0000:00:1c.0 version: b5
I am looking at getting a DLT drive for my network; however, I have never used the tar command with a tape drive. What happens if the data is larger then 1 tape? Does the tar application automatically span tapes or do I need to use switches so it spans multipule tapes? Right now my Full backup will take 2 or 3 tapes.
I have dell poweredge 830 server with tape drive and RHEL 4 running on it....the issue i am facing is,i am unable to insert the tape as i had ejected the tape forcefully from it....
i tried to do a listing of the contents backedup on tape and it got struck in middle throwing below error,
/dev/st0:device input/output error. after which i was unable to eject the tape using mt -f /dev/st0 rewoffl
i removed the tape by holding the eject button and now when i try to insert another tape, it's unable to take the tape in to tape drive...
I've tried doing all except reeboting the server, can any one help me out in this issue, hope the blow information may help in debugging the issue... code....
I've got a Tape drive attached to my server connected by SAS card, and am trying to copy some data across.but it fails to write, in dmesg i seescsi 1:0:1:0: Attached scsi generic sg1 type 1mptbase: ioc0: LogInfo(0x31120403): Originator={PL}, Code={Abort}, SubCode(0x0403) does this mean faulty hardware/cables?
We have RHEL4 loaded on the server and our tape drive is not working.While taking the backup on the tape using the command tar cvf /dev/nst0 * the system is creating a tar file by the name of nst0 in /dev directory and no backup is being taken on the tape .Please provide solution.
i have centos 5.9 running on my server and i have to take backup of my entire data from the different server.This one I want to make it as backup server. I need few informations about the tap drive
1.Which tape drive is good also compatible with Linux (centos ), pls send me the link 2.How to take backup into tape drive , good if you send any doc. 3. Any backup software which is kind of opensource
I have issues in installing HP Ultrium 448 external tape drive on HP ML 370 G5 server running Red-Hat-Linx OS. It has a SCSI interface & I thought it was suppose to plug & play but not. I got an information that all i need to do is echo "engage scsi" > /proc/drivers/cciss/cciss1 but unfornately i do not know how to do this because i just began learning about LINUX,
I have a linux server running Red Hat Enterprise Linux AS release 4 (Update 8) that I need to do some unusual configurations to. I have a hospital application written using a database called MSE. Now the provider of this application says they will only support tape because of the fact that this system is using a specialized backup system. Basically the data is housed on raw_data blocks. So what I am looking to do is create a way to USE the SAN to present the server with Hard Drives and be mounted as if it was a tape. Has anyone tried to do something like this before? If so how did you configure that. One solution that I thought would be to just Present a 2TB lun and carve up several partitions cut not create filesystems on them. Then just create a symlink everynight /dev/rmt0 and rotate out the partitions.
I installed centos on a server with a exabyte vxa-2 tape-drive. There are two harddisks and the tapedrive on the Adaptec SCSI 2010s Contoller. The harddisks are working , but it doesn't find the tapedrive. And there is nothing in /proc/scsi/scsi.What can i do to add the tape drive?
I am setting up a tape drive back up, but I am having "fun" with bacula configuration. Basically the drive is working , I ran the test with the btape program and all was correct. I am basically meddled up with the jargon and the very large bacula documentation. I created some 2 volumes and gave the mounted the tapedrive (labeled) the name of one of them "tapevol2" .... now I can not relabel the tape, I deleted the volume "tapevol2" but still the tape drive is mounted with that name, even though the volume is deleted. If I add ( create more volumes) I can not make the tape to mount with anything different that "tapevol2". I would like to go back to zero and delete all volumes, and mount the tape with one of the newly created volumes, so the jobs back up can run.
We have been using an Ultrium LTO-2 tape drive to perform backups of certain information from our file server. Recently, the data that we are backing up has grown too large to fit on the tapes in their 200GB uncompressed capacity. I have been looking around for a way to enable the compression in the drive, but I haven't found much. I am not using any backup software, so I'm not sure if I'll even be able to. I write the tape using a simple 'tar' command, so there aren't a whole lot of options to be set. Is there a way that I can enable the drive's compression, or would I be better off running the tar command with the gzip or bzip flags?
I didn't know if I should have posted this in newbie, hardware, or server. I haven't used tape drives in Linux previously; however I'm trying to figure out how to enable an LTO-4 tape drives built in encryption. Im not that concerned with secure key management, I am looking to just being able to load a key into the drive and get the tape to encrypt. Im for a simple command, but I dont even know where to start. If it varies by device, its an HP Ultrium 4 (1760).
I've having problems in listing files from a TAPE. I did not create this tape and I'm assuming that the files were successfully backed up to this tape.Some commands that I've tried:
I am basically mounting my portable hard drive (sdb1) and creating a bit image copy of sda on to the hard drive. What each line in the command is doing? e.g. what does ntfs-3g mean? what does the third line mean?
I am running Ubuntu 10.04, and i recently purchased an tandberg LTO-4 SAS tape drive. I want to access it and backup data on it. Do I simply just connect plug it into the server,and I should be able to backup/transfer data to the tape drive? Or are there intermediate steps before I can do that. Here are some results from commands that I have typed:
I have just installed Ubuntu on a server at work.Now I need a easy to set up (preferable GUI) backup program witch support tape drives, and can send e-mail reports.Is there any in the repertories?
I'm either missing the obvious or have four identically defective tape drives. Each is a Seagate or IBM Travan drive (yes, I know they're old and I need to access the data; they were in Win boxes) using QIC-80/DC-2120 media. I've been trying to solve this using three Fedora boxes (different versions) and one Debian machine.
The OS's recognize the drives and they show up as /dev/st0.
With no media in the drives, I get a status report; with media inserted, I get the same input/output errors.
Examples (all as root):
With tape inserted:
With no tape in drive:
With tape inserted
Everything I've found on Google suggests that the drives are defective.
I have a server with an old version of Fedora on it, Fedora 7, I know its old and that I should have upgraded it. But I haven't I plan on doing it now but I ran into a hardware failure and had to switch to a different set of hardware. I tried going into rescue mode using the fedora 7 install disc, but st0 for tape drives was not available. So I tried using the newest fedora distro, Fedora 13, installation disc and st0 is still not available on there. How to do a restore from tape?
I have a server running. I administer this server via ssh and sftp. Commands that are executed on the ssh prompt are killed when I close the ssh connection. Is it not?If I put a '&' or '&&' after it, will this process keep running when I close the ssh connection?In what other way could I start 'applications'/processes in the background? like rtorrent for example.