Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create botable tape? 2

Status
Not open for further replies.

burza

Technical User
Jul 19, 2001
23
0
0
PL
Hi,

I need to create bootable tape for ours server (AIX 4.2).

When I do:

# mksysb -i /dev/rmt0

I receive following error message:

Backing up 41524 filesbackup: 0511-432 A write error occurred: A system call received a parameter that is not valid.
backup: 0511-079 The backup media may be damaged.
Use a different disk to run the backup.

0512-005 mksysb: Backup Completed.
The backup command completed with errors.
The messages displayed on Standard Error contained additional
information.


Tape is good (new one), "tar" command works fine... any suggestions???

p.s.

# mt status
rmt0 Available 04-02-00-4,0 Differential SCSI 8mm Tape Drive
attribute value description user_settable


mode yes Use DEVICE BUFFERS during writes True
block_size 32768 BLOCK size (0=variable length) True
ret no RETENSION on tape change or reset True
density_set_1 39 DENSITY setting #1 True
density_set_2 39 DENSITY setting #2 True
compress yes Use data COMPRESSION True
size_in_mb 20000 Size in Megabytes False
extfm yes Use EXTENDED file marks True
ret_error no RETURN error on tape change or reset True

 
Hi,
check that between '-i' and '/dev/rmt0' you write at last
one blank ' '
Regards Boris
 
Hi Boria,

there is one blank ' ' between '-i' and '/dev/rmt0'.
 
The write size must be an even multiple of the tape's physical block size.
 
From IBM:

0511-079 The backup media may be damaged
Possible Causes
From the command line, you issued the backup command naming a tape device with the block size set to 0, but specified a value with the -b flag that is larger than the maximum allowable write size for the tape device.
From the command line, you issued the backup command naming a tape device, but specified a value with the -b flag that does not yield a whole number multiple of the tape device's physical block size.
From the command line, you issued the following command:
find File -print| backup -ivf FileSystem/FileName
but the specified FileSystem was full.
The backup media is damaged.
Procedures for Recovery
Specify a value with the -b flag that does not exceed the maximum allowable write size for the tape device, or do not use this flag.
Specify a value with the -b flag that yields a whole number multiple of the tape device's physical block size (-b Number, where Number is the number of 512-byte blocks).
Note: You can use the lsattr command to check the physical block size of the device:
lsattr -l rmt# -E
Remove unnecessary files from the file system, or use the chfs command to increase the file system and rerun the backup command.
Check the error log for media errors:
errpt -a
Use a different tape or disk to run the backup.
 
Hi Burza,
I change block_size on my tape from 0 to 32768 and receive
the same error as you. Therefore you have to change block_size on your drive to 0
# chdev -l rmt0 -a block_size=0

Best regards Boris
 
Hi,

thanks all for yours help. Special thanks to AIXSPadmin - I've used 'write size' (-b flag) and finaly I've seen on terminal:

0512-038 mksysb: Backup Completed Successfully

Regards Burza

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top