Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tar: 0511-195 An error occurred while writing to the storage media

410 views
Skip to first unread message

Vikrant

unread,
Oct 22, 2002, 4:58:43 AM10/22/02
to
When I am doing backup by tar I get this error message.
# tctl -f /dev/rmt2 rewind
# tar -cvf /dev/rmt2 *
a 3570code.txt 2 blocks.
a IBMF50Hw.txt 61 blocks.
tar: 0511-195 An error occurred while writing to the storage media.
: A system call received a parameter that is not valid.

What could be the reason ?

Interesting I can do backup of the same directory by sysback/6000 on
the the same 3570-B01 tape.

Thanks,

VKG

Steve Johnson

unread,
Oct 22, 2002, 4:47:08 PM10/22/02
to
icanh...@rediffmail.com (Vikrant) wrote in message news:<d236b1b8.02102...@posting.google.com>...


The error means one of the following problems:
You issued the tar command without the -b flag, but the tape drive had
an incorrect block size (4096).
You attempted to create a new archive beyond the end of the tape
marker using the tar command.
The tape density is incorrect.
The tape medium is defective.

Steve N.

unread,
Oct 22, 2002, 5:41:14 PM10/22/02
to
Perhaps your source directory contains a filename that contains
special characters (suh as dashes or spaces) that are being translated
by the tar command?

SteveN

> When I am doing backup by tar I get this error message.

Vikrant

unread,
Oct 24, 2002, 2:32:58 AM10/24/02
to
steve....@bull.com (Steve Johnson) wrote in message news:<b629965a.02102...@posting.google.com>...

Hi Steve Johnson,
You are right, Tape drive (IBM Megstar 3570-B01) has block size as
4096.
Does it mean I can not have block_size = 4096 for tar or I can not
have
block_size = 4096 for 3570-B01 or I have to mention block_size (-b)
when I am using tar ?
(1. Is it possible that tar is having some default block size,
2. or tar does not take block_size from tape drive attributes?)
o
This is the output of lsattr -El rmt2
# lsattr -El rmt2
mode yes Use Buffered Writes
True
block_size 4096 Block Size (0=Variable Length)
True
compress yes Use Hardware Compression on Tape
True
autoload yes Use Autoloading Feature at End-of-Tape
True
logging no Activate volume information logging
True
max_log_size 500 Maximum size of log file (in # of entries)
True
space_mode SCSI Backward Space/Forward Space Record Mode
True
rew_immediate no Use Immediate Bit in Rewind Commands
True
trailer_labels no Trailer Label Processing
True
retain_reserve no Retain Reservation
False
emulate_auto no Use Random Mode to Emulate Autoloader Tape
Drive True
devtype 03570B01 Device Type
False

Thanks,
VKG

0 new messages