连着几次发现catalog磁带增量备份持续几个小时都在queue状态;取消后采用手工方式备份总能正常完成。
catalog备份策略如下,是一个nbu本身的增量备份,在每次nbu执行备份后都会被自动调用
查看该策略对应的volumn pool为catalog_pool;内有磁带三盒,8883L2,8884L2,A00022 。且8883L2
和A00022的mount时间都是当天。其中8883L2,8884L2为磁带库正式分配的磁带,而A00022为不存在
的磁带。通过查看bpmedialist发现A00022是在host=web的清单上。
初步怀疑是A00022导致了catalog备份异常。在备份使用完8883L2后查找第2个磁带,由于8884L2磁带
在bpmedialist清单上查找不到,所以转向了A00022磁带,而A00022是一个不存在的磁带标签,就导致
了备份任务的挂起。
截出相关信息如下:
Server Host = web
id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
A00003 8 2 04/02/2011 09:27 04/02/2011 09:27 4mm 74755036 0
2 04/01/2012 09:27 N/A
A00022 3 0 06/17/2011 06:20 N/A 4mm 0 0
0 N/A N/A
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedialist -h backupsvr
Server Host = backupsvr
8879L2 3 5167 04/21/2010 16:31 06/17/2011 01:06 hcart2 364890848 0
408 07/18/2011 01:06 N/A
8883L2 3 26070 09/30/2007 11:26 06/17/2011 03:46 hcart2 312727293 0
699 07/18/2011 03:46 02/12/2011 15:03
8887L2 3 29 04/28/2011 00:00 05/26/2011 00:00 hcart2 291124600 0
10 06/26/2011 00:00 N/A FULL
尝试直接在nbu-windows界面的catalog_pool里删除磁带A00022,但总是报磁带在使用中无法删除。
于是用以下命令执行过期。
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpexpdate -m A00022 -d 0
Are you SURE you want to delete A00022 y/n (n)? y
requested media id was not found in the EMM database
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpexpdate -host web -m A00022 -d 0
Are you SURE you want to delete A00022 y/n (n)? y
requested media id was not found in the EMM database
接着重新在windows界面删除成功。
接下来是处理8884L2的问题,这个磁带在bpmedialist清单上消失的无影无踪,但直接在库池中变更库池
却可以正常操作。同样尝试对该磁带做过期处理。
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpexpdate -m 8884L2 -d 0
Are you SURE you want to delete 8884L2 y/n (n)? Y
requested media id was not found in the EMM database
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedialist -h backupsvr
Server Host = backupsvr
8879L2 3 5167 04/21/2010 16:31 06/17/2011 01:06 hcart2 364890848 0
408 07/18/2011 01:06 N/A
8883L2 3 26073 09/30/2007 11:26 06/17/2011 09:18 hcart2 312927533 0
702 07/18/2011 09:18 02/12/2011 15:03
8887L2 3 29 04/28/2011 00:00 05/26/2011 00:00 hcart2 291124600 0
10 06/26/2011 00:00 N/A FULL
过期完仍然找不到8884L2磁带。
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedialist -h web
Server Host = web
id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
A00003 8 2 04/02/2011 09:27 04/02/2011 09:27 4mm 74755036 0
2 04/01/2012 09:27 N/A
决定新建一个测试策略,将8884L2分配到一个单独的卷池,在测试策略中指定该池,以测试8884L2
是否可以用于备份。
该卷池中只有8884L2一盘磁带
测试结果如下:
可见8884L2是正常磁带。
并且在test策略执行成功后,catalog备份也能正常调用8883L2磁带备份成功。
再次查看bpmedialist
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedialist -h backupsvr
Server Host = backupsvr
id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
8883L2 3 26076 09/30/2007 11:26 06/17/2011 10:06 hcart2 312961441 0
705 07/18/2011 10:06 02/12/2011 15:03
8884L2 1 2 06/17/2011 10:01 06/17/2011 10:01 hcart2 6 0
2 07/01/2011 10:01 N/A
接着对8884L2再做一下过期bpexpdate -m 8884L2 -d 0,重新change到catalog_pool里