Piping to /dev/rmt0 tape ?


 
Thread Tools Search this Thread
Operating Systems AIX Piping to /dev/rmt0 tape ?
# 1  
Old 06-04-2009
Piping to /dev/rmt0 tape ?

I am trying to find a way to do the following on an AIX 4.2 with Korn:

tar cvfpdl - . | compress > /dev/rmt0

The /dev/rmt0 is the device we use when we tar directly to it.

I want to compress a folder's content to tape. Our current TAR does not have compression at all. We only have 'compress' as compression command.

When I use the command above, it shows it started to TAR some files but then it failes with a message:
A system call received a parameter that is not valid.


Also, I read there is a GNU tar with compression but do not know if it would work on an 4.2 AIX
# 2  
Old 06-05-2009
# 3  
Old 06-08-2009
Error

Quote:
Originally Posted by GaneshCPUX
I started that thread.

Quote:
Last thought: AIX dd supports spanning across several media since AIX 5L (span=yes) came to market in 2000 or 2001 ....
==> My client has AIX 4.2 !

Quote:
Why should you? Again we are talking Unix here. Use sth. like
# tar ... | dd of=/dev/rmt0 obs=20
It would be just a matter of combination to write directly onto a tape.
You might find the following information useful:
AIX Backup tar CPIO Restore
That does not use compression.


What I am trying to achieve is backing up to tape any folders containing backup files, using compression, not using the current folder as temporary storage (no space for it). All this on an AIX 4.2 who's TAR does not have any compression on it and where I only have 'compress' as compression tool (althougth I said we had gzip, it is not on all our server and I am almost on a deadlock situation when talking to my team lead about copying it to all our servers because he says the license is only on one server !!!)

We have 10 backup disk folders (totalling anywhere between 60-90Gb) on 5 servers (2 DB per servers), each with one single tape drive. The current procedure to do this takes almost 12 hours to do !!!!!!!!! I want to reduce them all to less then 8 hours by using compression (just compression a 1.9Gb file on disk takes 25 min !).
# 4  
Old 06-08-2009
Quote:
Originally Posted by Browser_ice
[...]What I am trying to achieve is backing up to tape any folders containing backup files, using compression, not using the current folder as temporary storage (no space for it).
Using pipes you don't need temporary diskspace and tar does not care whether it writes an archive onto disk or onto /dev/rmtX directly. This is all files to Unix. Try to use a combination of commands, pipes and files to backup compressed data onto a tape. Sth. like
Code:
# tar -cBf - /yourdirectory | compress | dd of=/dev/rmt0

B option (blocking) is recommended with pipes. Reverse the syntax to read data from tape again.
Code:
# dd if=/dev/rmt0 | uncompress | tar -xBf -

Quote:
Originally Posted by Browser_ice
All this on an AIX 4.2 who's TAR does not have any compression on it and where I only have 'compress' as compression tool (althougth I said we had gzip, it is not on all our server and I am almost on a deadlock situation when talking to my team lead about copying it to all our servers because he says the license is only on one server !!!)
gzip is open source. What did you mean with "the license is only on one server"?Smilie
# 5  
Old 06-09-2009
Quote:
Originally Posted by shockneck
Using pipes you don't need temporary diskspace and tar does not care whether it writes an archive onto disk or onto /dev/rmtX directly. This is all files to Unix. Try to use a combination of commands, pipes and files to backup compressed data onto a tape. Sth. like
Code:
# tar -cBf - /yourdirectory | compress | dd of=/dev/rmt0

B option (blocking) is recommended with pipes. Reverse the syntax to read data from tape again.
Code:
# dd if=/dev/rmt0 | uncompress | tar -xBf -

gzip is open source. What did you mean with "the license is only on one server"?Smilie
Doesn't 'compress' use the current folder to store the *.Z files ? If so I cannot do that (sorry I am mistaken. My Unix knowledge is limited). The folders where the backups are are over 90% full. I tried finding other places to move the files (and then compress them) but I did not have enough time to continue my search. Compression will have to be elsewhere (if there is room enough somewhere). The biggest backup folder has 10.5Gb and by extrapolating the compression time, it would take 2hrs to compress the whole thing on disk (I would not gain any time with this way. That is why I am looking for compressing directly to tape). This particular backup folder takes over 4 hours to be TARed to tape (without compression).

By "the license is only on one server", my teamlead said the licence for the few servers (1-2) we have GZIP on them is only valid those servers only ant that it cannot be copied on any other servers. Frankly I do not know if he is telling the truth or simply not knowing the answer at all. We have gzip v1.2.4 on those AIX 4.2 servers (they all have AIX 4.2). I sent an email to the gzip support for the whereabouts of the licence vs our intented usages.

Last edited by Browser_ice; 06-09-2009 at 09:46 PM..
# 6  
Old 06-10-2009
Quote:
Originally Posted by Browser_ice
Doesn't 'compress' use the current folder to store the *.Z files ? [...]
That depends. By using a pipe you redirect the standard output (stdout) of one program to another directly. I.e. the data is not passed through a temporary file. The other program takes the data in via standard input (stdin) from the pipe. This second program may then produce output which again can be redirected into another pipe and so on. I think you got the picture.

Quote:
Originally Posted by Browser_ice
By "the license is only on one server", my teamlead said the licence for the few servers (1-2) we have GZIP on them is only valid those servers only ant that it cannot be copied on any other servers. Frankly I do not know if he is telling the truth or simply not knowing the answer at all. We have gzip v1.2.4 on those AIX 4.2 servers (they all have AIX 4.2). I sent an email to the gzip support for the whereabouts of the licence vs our intented usages.
What you write about gzip confuses me. Either we are talking about two different programs that have the same name or there is some severe misunderstanding on what "Open Source" software is. In the second case you might point your "teamlead" to the corresponding wikipedia entry.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

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

Hi, Unable to make tape backup, please help. /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... (4 Replies)
Discussion started by: anuragr
4 Replies

2. AIX

"Please mount volume 2 on /dev/rmt0.1" message during mksysb restore

Dear all First of all, my English not so good. We have p52a (production server) and p52a (test server). Tape drives are VXA2. When both servers were AIX 5.3, mksysb on production server and restoring to test server was OK. The production server was AIX 5.3 and recently upgraded to... (3 Replies)
Discussion started by: fifa15pc
3 Replies

3. SCO

Tape Drive (/dev/rct0) donot work sometimes

Hi all, I am facing problem with my Tape drive (hp) (/dev/rct0) on SCO Unix version 6.0.0. Sometimes tar works fine but some times it doesnot work and I have to restart the server to get it work. One reboot/shutdown is OK. to solve the problem. Error is "cannot open ... (9 Replies)
Discussion started by: dextergenious
9 Replies

4. Solaris

/dev/rmt is empty - Trying to make Tape Drive Functional

I have an HP Proliant DL380 with Intel Processors that I recently loaded Solaris 10 with latest patches on it. I'm trying to do a ufsdump to an HP DAT 40 tape drive via SCSI, but I can't get it to do anything because /dev/rmt is empty. I've tried the following with luck: touch /reconfigure,... (7 Replies)
Discussion started by: cvaughn
7 Replies

5. SuSE

Tape Loader Device /dev/sgN is altering after each reboot

Dear all, we are running SLES 11 where an iscsi tape library is attached. To load the tape in a slot we are using for instance the command #mtx -f /dev/sg1 load 2 which is doing very well. But after a server's reboot the device name of the loader is now /dev/sg4 or /dev/sg5 I mean it is... (1 Reply)
Discussion started by: xunil321
1 Replies

6. AIX

/dev/rmt0 pointed to from an NFS of another server ?

I only about the principle of filesystems from the very basics on Linux and Windows. But I want to know if it is possible on an AIX 4.2 to create one NFS on a server which is pointing to a tape drive (/dev/rmt0) of another server ? This is because we several backups to do on a 5 servers that... (5 Replies)
Discussion started by: Browser_ice
5 Replies

7. AIX

aix 4.2 : using dd of=/dev/rmt0 producing error

I want to compress backup files to tape using compress on our AIX 4.2 - Our TAR does not have compression. - I do not want to use local storage to compress as most of the filesystems are pretty full. - the only compressing tool we have is 'compress' - tapes are 5Gb 8mm I am trying this... (10 Replies)
Discussion started by: Browser_ice
10 Replies

8. UNIX for Dummies Questions & Answers

mt command shows /dev/tape: inappropriate ioctl for device

Hello guys, on my Red Hat machine the /bin/mt status command gives the output dev/tape: inappropriate ioctl for device. This messages comes up after the Server has been rebooted. Anybody an idea? Thx masterofdesaster (8 Replies)
Discussion started by: masterofdesaste
8 Replies

9. AIX

mt -f /dev/rmt0.1 status

Hello all, Anyboby knows what is the reason by which the ouput of the command mt -f /dev/rmt0.1 status on AIX does not show the same information that in the rest of platforms UNIX (Solaris, HP-UX, ...)? Then, what command of AIX is similar to mt- f /dev/rmt0.1 status of Solaris? We need it to... (0 Replies)
Discussion started by: smoraprosol
0 Replies

10. Shell Programming and Scripting

error piping nohup to /dev/null

Hi, I have a script as follows: #!/bin/sh nohup ./my_program >& /dev/null & However, i get a "Generated or received a file descriptor number that is not valid" whenever I run it. running the command up in prompt is ok though. if i change the first line to #!/bin/csh i get a then:... (4 Replies)
Discussion started by: mochi
4 Replies
Login or Register to Ask a Question