![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Piping to /dev/rmt0 tape ? | Browser_ice | AIX | 5 | 06-10-2009 08:18 AM |
| tar options server://dev/rmt0 folder ??? | Browser_ice | AIX | 3 | 06-04-2009 04:50 AM |
| sed in while loop producing arithmetic output | javathecat | Shell Programming and Scripting | 3 | 02-04-2009 05:12 AM |
| Producing visually pleasant documents from plain text with reStructuredText and rst2a | iBot | UNIX and Linux RSS News | 0 | 04-29-2008 05:40 AM |
| mt -f /dev/rmt0.1 status | smoraprosol | AIX | 0 | 08-28-2006 12:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 : change tape block_size=512 (default dd obs value) tar -cvpdlBf - a_folder | compress | dd of=/dev/rmt0 but it is giving me : dd: 0511--53 The write failed. : A system call received a parameter that is not valid. but using something like this works: tar -cvpdlBf - a_folder | compress | dd of=/tmp/zzz.Z |
|
||||
|
First off, (depending on the type of your tape drive) you have a pretty good chance of not needing any compress at all because most of the IBM tape drives have a hardware compression built in. If you send a compressed stream down to the tape drive it will be compressed a second time which will usually make the file a little bigger (because of the second compression overhead adding), not smaller.
Second, even if it is justified to use "compress" in your case, you probably have to add "if=-" to the "dd" command. AFAIK "dd" doesn't use stdin per default for incoming data. It also might be necessary to state the blocksize. Use "bs=<some number>" in this case to state the block size in bytes. A third reason might be that you have to adress the tape drive with another device number, maybe "/dev/rmt0.1". Have a look in the manual for the meaning of the minor device numbers with tape drives. I do not recognize your first statement "change tape block_size=512", usually this is accomplished using the "tctl" command, alternatively use the "chdev" command on "/dev/rmtn". I hope this helps. bakunin Last edited by bakunin; 07-07-2009 at 09:41 PM.. Reason: edited typos |
|
||||
|
Quote:
I'll check the if=- and bs= options. As for the "/dev/rmt0.1", its probably it. I have seen this in other backups types we do. The blocksize change command was just a summary of what I did before doing the DD. It is actualy a chdev. |
|
||||
|
Quote:
This client's system is old and over 20 years old (AIX 4.2). |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|