Hello Gene,
Would a variant like this:
/usr/sbin/mtx load 1 0;
/usr/bin/mt -f /dev/st0 compression 0;
/usr/bin/mt -f /dev/st0 setblk 524288;
/usr/bin/dd if=/dev/zero of=/dev/st0 bs=512k count=1;
su amandabackup -c "/usr/sbin/amlabel -f Monthly-LTO7 000321L7
slot 1";
/usr/sbin/mtx unload 1 0;
work?
During my tests with this, the hardware compression stays disabled when
I load a new tape.
Thanks!
On 2018-01-11 10:51 PM, Gene Heskett wrote:
1. rewind the tape.
1a. Do NOT remove tape from drive, or cause it to read the tape other
than what I write here until after step 5.
2. read the label out to a 32k file.
3. rewind the tape.
4. Turn the compression off, probably with mt.
5. Immediately re-write that label while the tape is rewound, and the
hidden tape id block in front of the label will get rewritten too, with
that compression flag off.
--
Luc Lalonde, analyste
-----------------------------
Département de génie informatique:
École polytechnique de MTL
(514) 340-4711 x5049
[email protected]
-----------------------------