📄 amtapetype.8
字号:
.\" Title: amtapetype.\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>.\" Date: 05/13/2008.\" Manual: .\" Source: .\".TH "AMTAPETYPE" "8" "05/13/2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"amtapetype - generate a tapetype definition..SH "SYNOPSIS".HP 11\fBamtapetype\fR [\-h] [\-c] [\-o] [\-b\ \fIblocksize\fR] \-e\ \fIestsize\fR [\-f\ \fItapedev\fR] [\-t\ \fItypename\fR].SH "DESCRIPTION".PP\fBamtapetype\fRgenerates a tapetype entry for\fIAmanda\fR\..SH "OPTIONS".PP\fB\-h\fR.RS 4Display an help message\..RE.PP\fB\-c\fR.RS 4Run only the hardware compression detection heuristic test and stop\. This takes a few minutes only\..RE.PP\fB\-o\fR.RS 4Overwrite the tape, even if it\'s an\fIAmanda\fRtape\..RE.PP\fB\-b\fR\fI blocksize\fR.RS 4record block size (default: 32k).RE.PP\fB\-e\fR\fI estsize\fR.RS 4estimated tape size (No default!).RE.PP\fB\-f\fR\fI tapedev\fR.RS 4tape device name (default: $TAPE) The device to perform the test\..RE.PP\fB\-t\fR\fI typename\fR.RS 4tapetype name (default: unknown\-tapetype).RE.SH "EXAMPLE".PPGenerate a tapetype definition for your tape device:.sp.RS 4.nf% amtapetype \-f /dev/nst0 \-e 150G.fi.RE.SH "NOTES".PPHardware compression is detected by measuring the writing speed difference of the tape drive when writing an amount of compressable and uncompresseable data\. It does not rely on the status bits of the tape drive or the OS parameters\. If your tape drive has very large buffers or is very fast, the program could fail to detect hardware compression status reliably\..PPDuring the first pass, it writes files that are estimated to be 1% of the expected tape capacity\. It gets the expected capacity from the \-e command line flag, or defaults to 1 GByte\. In a perfect world (which means there is zero chance of this happening with tapes :\-), there would be 100 files and 100 file marks\..PPDuring the second pass, the file size is cut in half\. In that same fairyland world, this means 200 files and 200 file marks\..PPIn both passes the total amount of data written is summed as well as the number of file marks written\. At the end of the second pass, quoting from the code:.PP* Compute the size of a filemark as the difference in data written between pass 1 and pass 2 divided by the difference in number of file marks written between pass 1 and pass 2\. \.\.\. *.PPSo if we wrote 1\.0 GBytes on the first pass and 100 file marks, and 0\.9 GBytes on the second pass with 200 file marks, those additional 100 file marks in the second pass took 0\.1 GBytes and therefor a file mark is 0\.001 GBytes (1 MByte)\..PPNote that if the estimated capacity is wrong, the only thing that happens is a lot more (or less, but unlikely) files, and thus, file marks, get written\. But the math still works out the same\. The \-e flag is there to keep the number of file marks down because they can be slow (since they force the drive to flush all its buffers to physical media)\..PPAll sorts of things might happen to cause the amount of data written to vary enough to generate a big file mark size guess\. A little more "shoe shining" because of the additional file marks (and flushes), dirt left on the heads from the first pass of a brand new tape, the temperature/humidity changed during the multi\-hour run, a different amount of data was written after the last file mark before EOT was reported, etc\..PPNote that the file mark size might really be zero for whatever device this is, and it was just the measured capacity variation that caused\fBamtapetype\fRto think those extra file marks in pass 2 actually took up space\..PPIt also explains why\fBamtapetype\fRused to sometimes report a negative file mark size if the math happened to end up that way\. When that happens now we just report it as zero\..SH "SEE ALSO".PP\fBamanda\fR(8),\fI\%http://wiki.zmanda.com\fR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -