Hi,
I'm looking to check the compression ratio applied by hardware to work out how much free space we have on tapes.
mt -f /dev/rmt0 status shows:
Quote:
rmt0 Available 04-08-00-0,0 LVD SCSI 1/2-inch Cartridge Tape Drive
attribute value description user_settable
block_size 0 BLOCK size (0=variable length) True
compress yes Use data COMPRESSION True
density_set_1 66 DENSITY setting #1 True
density_set_2 64 DENSITY setting #2 True
extfm yes Use EXTENDED file marks True
mode yes Use DEVICE BUFFERS during writes True
ret no RETENSION on tape change or reset True
ret_error no RETURN error on tape change or reset True
size_in_mb 200000 Size in Megabytes False
If I add up the output of the
du command and what we backup from the script, it gives me the total space we tape up. So the plan was to find the compression ratio applied and apply that to the size I have noted for each backup. Then simply subtract this from the size of the tape. Although, perhaps there is an easier way to see the free space on a tape?
Cheers,
Rab