hp 磁带机安装配置

hp 磁带机安装配置
公司用的是tape array 530磁带机
磁带机驱动器是DAT40。HP DAT 40磁带驱动器大小20G。压缩后是40G。
注意磁带库比磁带机容量更大,容量上P,管理更智能。里面有机械手,磁带库 = 磁带机 + 机械手
磁带比磁盘具有体积小巧、容量大、成本低、寿命长和便携性等优点。但磁带备份慢
从数据的安全性出发,来自病毒、黑客和自然灾难的安全威胁同样需要被考虑。文件系统很容易被攻击,而磁带的无文
件系统格式,决定其天生具备免疫能力
磁带不可部分擦写,只能重复擦写。就是说一盘磁带满了后,回收后磁带里没任何内容了。
磁带空间的估计:
如果是5300磁带机,一次只允许tar一次,就是说再tar第2次时会把以前内容覆盖掉,因为写完磁带头要重新倒带。
这个问题应该是写完磁带后自动倒带造成的,下次写磁带还是从开始顺序往下写,所以会覆盖,要避免出现这种情况,
在输入命令时在磁带路径名称后加n就可以避免。
比如,一个磁带一般最少都有36G,可是备份文件时,不可能一次用完,那怎么办?难道备份一次就用一盒磁带吗,显
然不合理,那么分多次往一盒磁带备份文件怎么备,就没有写出来。磁带不象硬盘,它是线性存储设备,写文件时不会
象硬盘那样接着前面的文件往后写!
ioscan -funC tape的解释
/dev/rmt/c#t#d#BESTnb
其中:
c# 是卡实例号。
t# 是 SCSI ID。
d# 是设备逻辑单元号。
BEST 表示设备支持的最大密度格式和数据压缩。
n 表示关闭时不倒带。
b 表示 Berkeley 式关闭。
具体说明是:
由于磁带机的设备文件有不止一个,而多数系统管理员对其不甚了解,所以在此举几个例子来逐一说明之:
/dev/rmt/c1t3d0BEST BEST = 使用可能的最高密度方式存储
/dev/rmt/c1t3d0sQIC150nb QIC-150格式, 不倒带, Berkeley
/dev/rmt/c1t3d0D8MM8500C (Names can be quite descriptive)
/dev/rmt/0m 最通用的方式
设备文件"dev/rmt/c1t0d0BESTnb" 的意义
dev = device file 设备文件
rmt = raw magnetic tape 磁介质磁带
c1 = 该磁带机连接在instance number 为1的bus上
t0 = 该磁带机的scsi id 为0
d0 = 该磁带机的unit address 为0,
BEST = 该磁带将以最大容量方式写数据
(meaning "pack as much onto this tape as is possible")
n = 当退带时,不倒带
b = 该设备将使用Berkeley形式

安装配置:
1.主机上的SCSI接口连接到磁带机上。要确保服务器上的SCSI总线和磁带机的速率匹配。服务器上要有SCSI接口。如没
有考虑加HBA卡
2。在磁带机背面有设置SCSI-ID的地方,最好ID不同。
3。磁带机装好后,就可以装入磁带。槽片关闭,盒式磁带可写。槽片打开,盒式磁带处于写保护状态。操作磁带是否
写保护时一定不要在线操作,要先把磁带弹出。磁带机里要是有磁带,tape灯会亮的。
3。将清洗带插入磁带机磁带机自动装入盒式磁带并清洁磁头。清洁过程大约需要 30 到 60 秒
4。切勿过度使用磁带机 它被设计为每天拖动磁带大约三小时
5。磁带机先通电。主机才能识别。如果磁带机坏,可以在线通电下换新的磁带机。如是断电操作,那必须重启ARRAY,
主机才能识别到
主机上用ioscan -funC tape查看tape相关属性
StorageWorks 1/8 G2 LTO2安装配置
LTO(Linear Tape Open)线性磁带开放协议
一个磁带匣可插8盘磁带机,有远程管理接口,可WEB管理。容量1.6-6TB
有机械手,可以自动换带,自动加载。有2个SCSI接口,可以结合HP DP备份系统,并设置策略如差异备份等,使之自动
化备份。在与主机连接时,主机上要有机械手和驱动器的驱动程序。
HP TAPE TOOL磁带管理软件安装
1,swlist|grep -i ltt
swremove
2.下载包后
./install_hpltt安装
3。运行
可以图形或命令启动
cd /opt/ltt . /hp_ltt
磁带机的备份使用:
常用备份命令有
fbackup/frecover 可实现增量备份,介质通常为磁带
make_recovery 需要系统安装了ignite-ux软件,常用于系统根卷的全备份,备份磁带可恢复不可引导的系统
/opt/ignite/bin/make_tape_recovery
tar
sam
磁带机的读写命令
查看磁带数据: tar tvf 磁带机设备文件名
备份数据: tar cvf 磁带机设备文件名 欲记录的文件或目录名
恢复数据: tar xvf 磁带机设备文件名 欲读出的文件或目录名
tar创建tar包时,“目标在前,源在后”tar不支持8GB以上的大文件
一般用make_tape_recovery -Av 全备操作系统,或用make_recovery -A -C这两个命令是不同的版本
 
 
操作磁带常用命令
479     ioscan -fnCtape
480     tar tvf /dev/rmt/0mn
481     ioscan -fnCtape
482     tar tvf /ddev/rmt/0mn
483     tar tvf /dev/rmt/0mn
484     mt -f /dev/rmt/0mn status
485     mt -f /dev/rmt/0m rewind
486     mt -f /dev/rmt/0mn fsf 1
487     mt -f /dev/rmt/0mn rewind
488     mt -f /dev/rmt/0mn fsf 1
490     mt -f /dev/rmt/0m rew
493     tar tvf /dev/rmt/0mn
494     mt -f /dev/rmt/0mn status
495     tar cvf /dev/rmt/0mn wd_action.dbg
496     tar tvf /dev/rmt/0mn
497     mt -f /dev/rmt/0mn rewind
498     tar tvf /dev/rmt/0mn
 
如连到多个带库设备:
先确定要操作哪个设备
ioscan -funC tape
ls -l /dev/rac
例如是c35t3d0
则查看带库信息
mc -p /dev/rac/c35t3d0 -r DS
取slot5 中磁带
mc -p /dev/rac/c35t3d0 -s S5 -d D1
放回磁带
mc -p /dev/rac/c35t3d0 -s D1 -d S5
 
 
MT命令解释:
DESCRIPTION
      mt is used to give commands to the tape drive.  If tapename is not
      specified, the environment variable TAPE is used; if TAPE is not
      defined, the default drive is used.

      mt winds the tape in the requested direction (forward or backward),
      stopping after the specified count EOF marks or records are passed.
      If count is not specified, one is assumed.  Each EOF mark counts as
      one record.  When winding backwards, the tape always stops at the BOT
      marker, regardless of the number remaining in count.

      mt accepts the following commands:

           eof       Write count EOF marks.

           fsf       Forward space count files.

           fsr       Forward space count records.

           bsf       Backward space count files.

           bsr       Backward space count records.

           rew       Rewind tape.

           offl      Rewind tape and go offline.

           eod       Seek to end of data (DDS and QIC drives only).

           smk       Write count setmarks (DDS drives only).

           fss       Forward space count setmarks (DDS drives only).

           bss       Backward space count setmarks (DDS drives only).

      Spacing operations (back or forward space file or record) leave the
      tape positioned past the object being spaced to in the direction of
      motion.  That is, backspacing a file leaves the the tape positioned
      before the file mark, forward spacing a file leaves the tape
      positioned after the file mark.  This is consistent with all classical
      usage on tapes.
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值