处理NBU上状态为SUSPENDED的磁带

首先看一下FROZEN与SUSPENEDED的区别:

Frozen Volume-> A frozen volume is unavailable for future backups. A frozen volume never expires, even after the retention period ends for all backups on the media. The media ID is never deleted from the NetBackup media catalog, and it remains assigned to NetBackup.

Suspended Volume-> You cannot use a suspended volume for backups until retention periods for all backups on it have expired. At that time, NetBackup deletes the suspended volume from the NetBackup media catalog and unassigns it from NetBackup. A suspended volume is available for restores. If the backups have expired, you must import the backups first.

简单地说,Frozen一般是由于磁带损坏或驱动器损坏 引起的,NBU为了保护数据,自动将磁带设置为Frozen,避免备份数据再往损坏的磁带上写。

Suspended一般是为了保护数据人为设置的,有时也可能是NBU设置的,比如:缺省情况下,vault的磁带eject功能会自动将磁带设置为suspended。

以下示例是suspended磁带的处理过程 (磁带因设置了vault的eject功能而自动变成suspended状态):

root@abs00biidrc001:~ #> available_media | grep 000005
000005  HCART3   NONE     -       -      -       5     394824544        SUSPENDED

检查磁带状态,robot type为NONE, status为SUSPENDED.

root@abs00biidrc001:~ #> vmcheckxxx -rt tld -rn 1 -h abs00biidrc001 -rh abs00biidrc001 | grep 000005

<无输出>

磁带000005已经从带库中export了,因此inventory robot时没有此磁带的信息。

在带库的操作界面上将磁带 000005 import 到带库中。(操作略)

root@abs00biidrc001:~ #> vmcheckxxx -rt tld -rn 1 -h abs00biidrc001 -rh abs00biidrc001 | grep 000005
46      Yes  000005                                    Yes
root@abs00biidrc001:~ #> available_media | grep 000005
000005  HCART3   NONE     -       -      -       5     394824544        SUSPENDED

磁带import以后,在inventory robot时已经可以看到磁带信息了。

root@abs00biidrc001:~ #> vmupdate -rt tld -rn 1 -h abs00biidrc001 -rh abs00biidrc001
Generating list of recommended changes ...

Proposed Change(s) to Update the Volume Configuration
=====================================================
Logically move media ID 000005 (barcode 000005) from standalone to slot 46.
Updating volume configuration ...

Processing existing media added to or moved within the robotic library by
logically moving media as follows...
        Media ID        Slot
        ========        ====
         000005          46


Volume configuration successfully updated.

root@abs00biidrc001:~ #> available_media | grep 000005
000005  HCART3   TLD      1       46     -       5     394824544        SUSPENDED

update NBU的volume database信息后,robot type已经恢复为TLD。

root@abs00biidrc001:~ #> bpexpdate -m 000005 -d 0 -force
root@abs00biidrc001:~ #> available_media | grep 000005
000005  HCART3   TLD      1       46     -       -     -        AVAILABLE

强制过期磁带后,磁带状态恢复正常。如果因为业务原因,磁带不能手工过期的话,就只能等到磁带自动过期后自行恢复了。

附:vmcheckxxx和vxupdate命令语法

vmcheckxxx -rt <robot_type> -rn <robot_number> -h <volume_database_host or EMM_host> -rh <robot_control_mediaserver>

vmupdate -rt <robot_type> -rn <robot_number> -h <volume_database_host or EMM_host> -rh <robot_control_mediaserver> -use_barcode_rules

原文地址:https://www.cnblogs.com/cqubityj/p/3010504.html