Visit Our UNIX and Linux User Community


problems with tar multivolume


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory problems with tar multivolume
# 1  
Old 08-21-2002
Question problems with tar multivolume

HI there,

I need to backup some files from other pcs.
I want to do it from my backupserver.
I am using Unicon (developed from icon) for programming a backupscript, my BS is Mandrake Linux.

The problem I have is:
I cannot use tar multivolume with dd

the command looks something like this
ssh fileserver 'tar cMf - /file' | dd of=/tapedrive

if I use tar --tape-length with it, dd stops writing after the first tape change, but does not continue.

I tried to mount my files and then do the backup only with tar, but then i got the message: cannot open: permission denied.

I tried to find something in the internet but most have problems with extracting tar files.. I can't even create them.

i'd be glad for any help

thx
# 2  
Old 08-27-2002
The permission denied is possibly from the user not in the same group or owner of the tape drive. On our SUN server the tape drive is owned by root - group sys. Adding a user to the sys group allows backups to work (using tar or ufsdump). You may have the same type of situation. Check the permissions on the tape drive. Add the user to a group such as sys (of course, you must understand this is a security risk).

We set up a generic account that was allowed rsh from all servers to the backup server. This allowed us to move the data (for Y2K). It hasn't been used since. Part of the script was to move a new host.equiv file on the backup server into place. This allowed the generic account access. When the backups were completed, it was moved out of the way, closing the hole.
# 3  
Old 08-28-2002
permission denied

first at all thx. Smilie

I can use the tapedrive as root, when i do normal backups, it just don't work with the mounted filesystem. Smilie
I thought the permission denied was from the mounting, not from the tapedrive.

As I said, the backup with tar, ssh, and dd works, just not for multivolume. (and I do that to tape, too)

Well I'll check the permissions and try again.
Smilie

Does anyone has a working multibackup programm for tapedrives?
I'd be thankful to take a look at those how you did it.
# 4  
Old 08-29-2002
checked

I checked my permissions and started another try...
with the same result.
I (as root) have permission to the tapechanger, and to the mounted files... but i still get the error

mounted/file : cannot open: permission denied

*sight*
Smilie
# 5  
Old 08-29-2002
Re: problems with tar multivolume

Quote:
Originally posted by mysth
The problem I have is:
I cannot use tar multivolume with dd

the command looks something like this
ssh fileserver 'tar cMf - /file' | dd of=/tapedrive
That's crazy. Try this:

ssh fileserver 'tar cMf /tapedrive /file'

If you want tar to work with multiple volumes it must know that it is writing to a tape drive. At least the stardard tar does, you seem to be gnu's tar, which I have never used.

In a later post you say "I tried to mount my files". I sure hope so. tar isn't going to work with an unmounted filesystem. Are you trying to remote mount them via nfs? If so, when you export them or share them you must explicitly allow root access otherwise root will be mapped to nobody.
# 6  
Old 08-30-2002
that's what i would do, too, if my tapedrive would be connected to the fileserver. But it is on the backupserver....
sorry, if i did not say that.
so I need to pipe the data back to my backupserver.... and that is the problem.
# 7  
Old 08-30-2002
You would seem to be up the creek without a paddle. Smilie

Usually, when a large unix shop has a dedicated backup server, it will acquire some software to handle things. We use Veritas Netbackup and I have to say it is a dream. But it should be, we spent several hundred thousand dollars on our backup system. (You did ask how everyone else does it.) Smilie

I'm not a linux expert, but in mainstream unix, cpio was the first program to be able to handle multiple volumes. At some point, tar picked this up also (I think it was a Posix mandate.) And the BSD backup/restore programs can handle multiple volumes. And OSF introduced pax which can handle multiple volumes. Since you're running linux, you may have some other options, I'm not sure. But if you want to handle multiple tape volumes, the tape drive must be opened by a program that can handle multiple volumes. dd cannot.

One option is to give up on multiple volumes. Figure out how much will fit on a tape and then run several jobs. Each job will write to a single volume. You will need to monitor this solution closely to make sure that each job always fits on its tape.

The other option that I see for you is to remote mount the fileserver's files onto the backupserver. I gather that you tried this and ran into permission problems. Although I have never used linux, I believe that the permission problem can be solved. Typically very special steps are needed on the fileserver to enable remote root access to remotely mounted files. If you detail the steps that you used to accomplish the remote mount, I'll bet that one of our linux experts can help you out with this.

Previous Thread | Next Thread
Test Your Knowledge in Computers #68
Difficulty: Easy
Awk is abbreviated from the names of the developers - Aho, Weinberger, and Kernighan.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Speed problems with tar'ing a 500Gb directory on an eSATA drive

I'm trying to compress a directory structure on an external hard drive, connected by eSATA cable to my linux (Ubuntu 10.04) desktop. The total volume is 500Gb with half a million files, ranging from Kb to Mb in size. The drive is 2Tb, with 0.8Tb free space before compression. running "tar -pcf... (10 Replies)
Discussion started by: omnisppot
10 Replies

2. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

3. UNIX for Advanced & Expert Users

Problems with tar between local and nfs disk

Hi, I am trying to move a local directory from a local disk to a nfs disk that has been shared on another file server. I am using this tar command: tar cf - . | (cd /export/nfsdisk && tar xpf - ) It copies the data okay but the big problem is that is resets the owner:group to 'nobody'. The... (2 Replies)
Discussion started by: jlowry
2 Replies

4. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

5. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

6. UNIX for Dummies Questions & Answers

LTO multivolume restoration problem in SELS9

Can anybody help me ? ? Previously data was taken multi volume LTO Tape backup in Red hat Linux by following command : tar -cvf /dev/rmt/tps6d7v -b 1000 -M filenames , now i try to Restore it in SELS9 by following command : tar -xvf /dev/st1 -b 1000 -M filenames , it extracts only part of the... (0 Replies)
Discussion started by: pramanik
0 Replies

7. AIX

Problems with tar command

Hello Somebody can help me, I try to extract a file by tar command but I get this error message root@mxlgjac/home/bistrain# tar -xvf C57U6ML.tar tar: 0511-169 A directory checksum error on media; 804399312 not equal to 62020. The file in tar format its on the same directory, where I try... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

8. UNIX for Dummies Questions & Answers

Problems with GNU tar installation

Hi all, Need some help here. I've been trying to install GNU tar version 1.12 into my Solaris 9 machine. steps that I have done was: -untar the package file -run "./configure" -run "make" command (got stuck at this point) Got the following error messages after hitting the make... (2 Replies)
Discussion started by: suffer0
2 Replies

9. UNIX for Advanced & Expert Users

tar problems using Sony AIT drive

Recently we brought up a Spectralogic 2K Tape Library that had been out of service for about 3 years to replace a DDS-4 tape drive unit as our main backup device. Everything seemed to go fine but now I have run into a little problem. System details: FBSD 6.1 SpectraLogic 2K library with a... (1 Reply)
Discussion started by: thumper
1 Replies

10. UNIX for Dummies Questions & Answers

tar backup problems

Im trying to use tar to backup the os directories. I have a file called bdirs which contains a list of the directories that im trying to backup: /bin /dev /devices /etc /export /home /kernel /lib /local /mnt /opt /platform /proc /sbin start /usr /var /vol (3 Replies)
Discussion started by: blakmk
3 Replies

Featured Tech Videos