Tru64 Unix
1752492 會員
5405 線上
108788 解決方案
發表新文章

关于磁带机的问题

 
watermelonyu
教授

关于磁带机的问题

大家好:

 请问有什么方法或命令可以在系统里面查看到某盒磁带用了多少空间,还剩下多少?

 如果是我在使用tar或者vdump过程中,磁带空间用完了,会提示更换新磁带吗?这种更换上去的新磁带是使用ntape方式还是使用tape方式来读写数据呢?

 资料上讲使用tar命令时单个文件不能大于8GB,如果我在备份过程中,一个目录下有15GB的数据,例如file=9gb,xyz=2gb,zdk=3gb,那么在tar的时候是不是应该先tar第一个文件,即file,但file文件过大,这种情况会不会导致tar命令中止,后面的xyz,zdk两个文件就不能备份了?
8則回覆 8
watermelonyu
教授

关于磁带机的问题

1)tape 是屬於raw device 看不出用了多少

只能用你的source file space來估計

2)還是用ntape

3)tar 失敗後,後面的動作就停了



另外對於太大的檔案,就要用GNU tar







watermelonyu
教授

关于磁带机的问题

watermelonyu
教授

关于磁带机的问题

對了你的作業系統是什麼版本的

我的5.1b

不用GNU tar 也可以超過8G



# ls -al

total 11435336

drwxr-xr-x 2 root system 8192 Sep 29 02:25 .

drwxr-xr-x 5 root system 8192 Sep 29 02:24 ..

-rw-r--r-- 1 root system 11709685760 Sep 29 02:58 joey.tar

watermelonyu
教授

关于磁带机的问题

Hi,



> 资料上讲使用tar命令时单个文件不能大于8GB,如果我在备份过程中,一个目录下有15GB的数据



Please using the "tar" command with "-E" for more large files or directories.



Best regards,

Richard.
watermelonyu
教授

关于磁带机的问题

附加二个问题:

1。系统里面有没有什么命令可以把磁带机中的磁带退出来的?

2。请问 I/O error这类似的代码是什么意思?因为我发现这个不一定是磁带或者磁带机有问题。可否总结一下这类似的错误以及引起此错误的原因。



Richard Kuo: 你提供的方法可行,你再发一下贴,我给你点成全部解决我的问题!给你加点分,以表感谢!!!

joey: 同样感谢,你也回一下,我给你加分!
watermelonyu
教授

关于磁带机的问题

#mt rewind應可以退帶
watermelonyu
教授

关于磁带机的问题

大家好:

我還想問一下平時我們見到的tape目錄下有這些東西crw-rw-rw- 1 root system 19,210 Dec 8 15:44 tape4

crw-rw-rw- 1 root system 19,214 Dec 8 15:42 tape4_d0

crw-rw-rw- 1 root system 19,216 Dec 8 15:42 tape4_d1

crw-rw-rw- 1 root system 19,218 Dec 8 15:42 tape4_d2

crw-rw-rw- 1 root system 19,220 Dec 8 15:42 tape4_d3

crw-rw-rw- 1 root system 19,222 Dec 8 15:42 tape4_d4

crw-rw-rw- 1 root system 19,224 Dec 8 15:42 tape4_d5

crw-rw-rw- 1 root system 19,226 Dec 8 15:42 tape4_d6

crw-rw-rw- 1 root system 19,228 Dec 8 15:42 tape4_d7

crw-rw-rw- 1 root system 19,212 Dec 8 15:42 tape4c

不知道tape4_d1,tape_d2....與tape4有什麽區別?或者這些分別有什麽不同的含義呢?用的時候有什麽區別?可否解釋一下?
watermelonyu
教授

关于磁带机的问题

Hello:



man tz 有詳盡解釋:

:::::::::

:::::::::

Note that the tape?_?? format device names correspond to the previous dev-

ice names as shown in the following table:



_______________________________________________________________________

Previous Format in /dev New Formats in /dev/tape and /dev/ntape

_______________________________________________________________________

rmt?a tape?_d3

rmt?l tape?_d0 (d0 always maps to the low density)

rmt?m tape?_d2

rmt?h tape?_d1 (d1 always maps to the high density)

_______________________________________________________________________





:::::::::

:::::::::

From the DENSITY section of the entry you can determine which device spe-

cial files apply:



DensityNumber = 0,3,4,5,6,7

tape?_d0, or any device name with the suffix: _d3, _d4, _d5, _d6, and

_d7. In this case, compression is set to Off (0x0).



DensityNumber = 1,2

tape?_d1, or tape?_d2. In this case, compression is set to On (0x1)

::::::::::

::::::::::



Best Regads

Danny