如何通过 LTO-6 磁带读取 dar 档案

如何通过 LTO-6 磁带读取 dar 档案

文件/data夹已保存在磁带中

dar -R /data/ -c - | mbuffer -R 110M -P 90 -m 1G | dd of=/dev/nst0 bs=256k

我该如何测试、列出并提取它?

我尝试了以下方法来测试档案,但没有成功:

# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x58 (no translation).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN

# dd if=/dev/nst0 bs=256k | dar -t -
dd: error reading ‘/dev/nst0’: Cannot allocate memory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00344152 s, 0.0 kB/s
Opening a pair of pipes to read the archive, expecting dar_slave at the other ends...
�Final memory cleanup...
FATAL error, aborting operation
Corrupted data read on pipe

答案1

-0对于顺序读取:

dd if=/dev/nst0 bs=256k | dar -0 -t -

相关内容