Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to check hardware data compression Post 302443518 by rab on Monday 9th of August 2010 06:15:23 AM
Old 08-09-2010
Question How to check hardware data compression

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

Last edited by rab; 11-09-2010 at 10:50 AM..
 

9 More Discussions You Might Find Interesting

1. Solaris

What command to check system hardware

What command can I run on a Solaris 8 server to check the hardware (ie number of processors, speed of processors, installed memory etc). (4 Replies)
Discussion started by: soliberus
4 Replies

2. SCO

System hangs on data compression

Hi, We are having an automated system installed on SCO unixware, which runs a End Of Day routine during midnight. Since few days system is hanging at data backup, I have checked the log, system hangs exactly on data compression, any idea or help that why system is hanging only on compression....... (10 Replies)
Discussion started by: tayyabq8
10 Replies

3. Linux

check written data

I'm using growisofs to write DVD, e.g. $ growisofs -Z /dev/dvd -V "Personal Data, `date +"%b, %d %Y"`" -R -J /mnt/d/* How can I test whether data was written correctly? md5sum or so? (0 Replies)
Discussion started by: Hitori
0 Replies

4. Windows & DOS: Issues & Discussions

How To Check Hardware RAID On Windows and Linux

Hello, I have Win NT server running and I want to know how can I get Hardware RAID settings without rebooting the server? Thanks in advance. (2 Replies)
Discussion started by: sureshcisco
2 Replies

5. UNIX for Advanced & Expert Users

check external hardware connected to linux/solaris machines

hello, I'm planning to do inventory of all our servers but this time it's more on physical. Meaning I would like to check all hardware connected to it (external only like storage, power support) including the count Would like to get perhaps its serial nr..(linux and solaris different servers... (2 Replies)
Discussion started by: lhareigh890
2 Replies

6. Solaris

how to check for hardware layered raid in solaris 10 ?

hi all, will command metastats tell whether there is hardware layered raid ? i intend to do patching and plug out one of the disks in case the one inside encountered issues. (1 Reply)
Discussion started by: Exposure
1 Replies

7. Solaris

Check Hardware compatibility via LIVE CD

Hi Can i use Solaris LIVE CD to verify that ubuntu has all drivers present for a certain desktop PC? which Live CD should i use ? there any many varities out there Before i purchase this expensive PC i want to ensure Solairs has all drivers for it. Specs are : Processor Intel Core i7... (1 Reply)
Discussion started by: kashif_islam
1 Replies

8. Shell Programming and Scripting

Check for data between two files

I have two files File1.txt 000199458 000199463 000200442 000200831 000200866 000201009 000201050 000201405 000201666 000201682 File2.txt (4 Replies)
Discussion started by: halfafringe
4 Replies

9. HP-UX

Check hardware

Hi, I have HP-UX version 11.23. Yesterday i saw error on syslog show Ultra SCSI 320 have issue. This rx3600 connect to EVA. How to check how many LUN connected and the connectivity to EVA? I suspect on board controller at rx3600 have a problem. The disk on local not show amber light.... (0 Replies)
Discussion started by: mzainal
0 Replies
FMS(8)							       AFS Command Reference							    FMS(8)

NAME
fms - Determine a tape's capacity and a tape device's filemark size SYNOPSIS
fms -tape <tape special file> [-help] fms -t <tape special file> [-h] DESCRIPTION
The fms command determines the capacity of the tape currently in the tape device identified by the -tape argument, along with the size of the filemark for the device. The filemark is also referred to as the device's end-of-file (EOF) marker, and can differ for each combination of tape and tape device. As the Tape Coordinator writes a dump, it writes a filemark between the data included from each volume and also tracks the amount of space left before the end of the tape (EOT). For some tape devices, the filemark is large enough (multiple megabytes) that failure to consider it leads the Tape Coordinator significantly to overestimate the available space. The intended use of this command is to determine tape capacity and filemark size values that can be specified in a tape device's entry in the /var/lib/openafs/backup/tapeconfig file. For certain types of tape drives, the Tape Coordinator operates more efficiently when the tapeconfig file lists accurate values. For further discussion, see the OpenAFS Administration Guide chapter on configuring the Backup System. Insert a tape in the drive before issuing this command. CAUTIONS
Do not use this command on compressing tape devices in compression mode or with tape devices that handle tapes of multigigabyte (or multiterabyte) capacity. It does not produce accurate results in those cases. For alternate suggestions on the values to record in the tapeconfig file for compressing drives, see the OpenAFS Administration Guide chapter on configuring the Backup System. Running the command completely overwrites the tape, so use a blank one or one that can be recycled. Because it writes filemarks to the complete length of the tape, the command can take from several hours to more than a day to complete. OPTIONS
-tape <tape special file> Specifies the UNIX device name of the tape device for which to determine filemark size and the capacity of the tape it currently contains. The format varies on different system types, but usually begins with /dev; an example is /dev/sd0a. -help Prints the online help for this command. All other valid options are ignored. OUTPUT
The command generates output both on the standard output stream and in the fms.log file that it creates in the current working directory. The output reports the capacity of the tape in the device and the device's filemark size. The first few lines of output include status information about the execution of the command, including such information as the number of blocks and the number of file marks written to the tape by the command. The last two lines of both screen and file output provide the following information: o "Tape capacity is number bytes": specifies the size, in bytes, of the tape in the device. o "File marks are number bytes": specifies the device's filemark size in bytes. The following message indicates that the fms command interpreter cannot access the tape device. The command halts. Can't open tape drive I<device> The following message indicates that the command interpreter cannot create the fms.log log file. Again, the command halts. Can't open log file EXAMPLES
The following command illustrates the output for the device called /dev/rmt1h: % fms /dev/rmt1h wrote block: 130408 Finished data capacity test - rewinding wrote 1109 blocks, 1109 file marks Finished file mark test Tape capacity is 2136604672 bytes File marks are 1910205 bytes The following appears in the fms.log file: fms test started wrote 9230 blocks Finished file mark test Tape capacity is 151224320 bytes File marks are 2375680 bytes PRIVILEGE REQUIRED
The issuer must be able to insert and write to files in the currently working directory, if the fms.log file does not already exist. If it already exists, the issuer need only be able to write to it. SEE ALSO
fms.log(5), tapeconfig(5) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 FMS(8)
All times are GMT -4. The time now is 06:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy