NBU常用命令1——介质管理
环境说明:
NBU 6.5.6、Redhat Linux 5.4
1、查看当前磁带信息
[root@vtl01 logs]# available_media
media media robot robot robot side/ ret size status
ID type type # slot face level KBytes
----------------------------------------------------------------------------
CatalogBackup pool
DataStore pool
NetBackup pool
10001 HCART3 TLD 0 1 - 1 99424 ACTIVE
20004 HCART3 TLD 0 4 - 3 194400 ACTIVE
20006 HCART3 TLD 0 6 - 3 567168 ACTIVE
20008 HCART3 TLD 0 8 - 1 33 ACTIVE
20005 HCART3 TLD 0 5 - - - AVAILABLE
20002 HCART3 TLD 0 2 - 3 0 FROZEN
20003 HCART3 TLD 0 3 - 3 0 FROZEN
20007 HCART3 TLD 0 7 - 3 573632 FROZEN
None pool
scratch pool
[root@vtl01 logs]#[@more@]
2、查看磁带所属信息
命令:vmquery -m media_id[root@vtl01 logs]# vmquery -m 10001
================================================================================
media ID: 10001
media type: 1/2" cartridge tape 3 (24)
barcode: 10001
media description: Added by Media Manager
volume pool: NetBackup (1)
robot type: TLD - Tape Library DLT (8)
robot number: 0
robot slot: 1
robot control host: vtl01
volume group: 000_00000_TLD
vault name: ---
vault sent date: ---
vault return date: ---
vault slot: ---
vault session id: ---
vault container id: -
created: Fri 23 May 2008 02:26:11 AM CST
assigned: Fri 23 May 2008 03:04:02 AM CST
last mounted: Sat 24 May 2008 08:59:31 PM CST
first mount: Fri 23 May 2008 02:46:08 AM CST
expiration date: ---
number of mounts: 7
max mounts allowed: ---
status: 0x0
================================================================================
[root@vtl01 logs]#
3、将磁带解冻unfreeze
命令:bpmedia -unfreeze -h host -m media_id
[root@vtl01 logs]# bpmedia -unfreeze -h vtl01 -m 20002
[root@vtl01 logs]# bpmedia -unfreeze -h vtl01 -m 20003
[root@vtl01 logs]# bpmedia -unfreeze -h vtl01 -m 20007
[root@vtl01 logs]# available_media
media media robot robot robot side/ ret size status
ID type type # slot face level KBytes
----------------------------------------------------------------------------
CatalogBackup pool
DataStore pool
NetBackup pool
10001 HCART3 TLD 0 1 - 1 99424 ACTIVE
20004 HCART3 TLD 0 4 - 3 194400 ACTIVE
20006 HCART3 TLD 0 6 - 3 567168 ACTIVE
20007 HCART3 TLD 0 7 - 3 573632 ACTIVE
20008 HCART3 TLD 0 8 - 1 33 ACTIVE
20002 HCART3 TLD 0 2 - - - AVAILABLE
20003 HCART3 TLD 0 3 - - - AVAILABLE
20005 HCART3 TLD 0 5 - - - AVAILABLE
None pool
scratch pool
[root@vtl01 logs]#
4、查看volume pool信息
[root@vtl01 admincmd]# vmpool -list_all
===================================================================
pool number: 0
pool name: None
description: the None pool
max partially full: 0
================================================================================
pool number: 1
pool name: NetBackup
description: the NetBackup pool
max partially full: 0
================================================================================
pool number: 2
pool name: DataStore
description: the DataStore pool
max partially full: 0
================================================================================
pool number: 3
pool name: CatalogBackup
description: NetBackup Catalog Backup pool
max partially full: 0
================================================================================
pool number: 4
pool name: scratch
description: ------
max partially full: 0
================================================================================
[root@vtl01 admincmd]#
5、查看StorageUnit信息
命令:bpstulist
[root@vtl01 admincmd]# bpstulist
vtl01-hcart3-robot-tld-0 2 vtl01 8 0 20 4 0 "*NULL*" 0 1 1048576 *NULL* 0 1 0 0 0 0 *NULL* vtl01
[root@vtl01 admincmd]# bpstulist -L
Label: vtl01-hcart3-robot-tld-0
Storage Unit Type: Media Manager
Host Connection: vtl01
Number of Drives: 4
On Demand Only: no
Density: hcart3 (20)
Robot Type/Number: TLD (8) / 0
Max Fragment Size: 1048576
Max MPX/drive: 1
[root@vtl01 admincmd]#
[root@vtl01 admincmd]# bpstulist -L -verbose
<2>bpstulist: INITIATING: version NetBackup 6.5 created: 2010042321
Label: vtl01-hcart3-robot-tld-0
Storage Unit Type: Media Manager
Host Connection: vtl01
Number of Drives: 4
On Demand Only: no
Density: hcart3 (20)
Robot Type/Number: TLD (8) / 0
Max Fragment Size: 1048576
Max MPX/drive: 1
<2>bpstulist: EXIT status = 0
[root@vtl01 admincmd]#