我是靠谱客的博主 诚心柜子,最近开发中收集的这篇文章主要介绍手工导入磁带一法,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

手工导入磁带

nbu恢复的时候,有时会需要用到过期或者其他的在catalog中不存在的磁带。这时,我们需要手工导入磁带,实现恢复操作。

前两天,我们做系统恢复测试,需要将磁带从生产系统恢复到测试系统,而两个系统所使用的条码规则不一样,导入的方法和普通的导入稍微有些不同。

1.从生产系统取出磁带放入测试系统磁带机,在nbu console界面做如下操作:

右键点击master server下的media,在弹出的菜单中选择Inventory Robot,出现Robot Inventory对话框。选择相应的Device host和Robot,在Inventory operation中选择Preview volumn configuration changes,同时勾选Empty media access port prior to update,单击start开始扫描。

--------------------------------------------------------------------
04/25/2008 17:10:07
Robot: TLD(0) on backup
Operation: Preview of Inventory and Update
EMM Server: bfbkup
--------------------------------------------------------------------
Generating list of recommended changes ...

Proposed Change(s) to Update the Volume Configuration
=====================================================
Logically move media ID U572L2 (barcode PQU572L2) from slot 4 to standalone residence.
Logically move media ID U545L2 (barcode PQU545L2) from slot 18 to standalone residence.
Logically move media ID B729L1 (barcode FTB729L1) from standalone to slot 19.
Logically move media ID U543L2 (barcode PQU543L2) from standalone to slot 18.
 
--------------------------------------------------------------------

从输出的信息中找到刚放入的磁带,记录下所在的slot号。

2.使用bpadm或vmadm添加磁带:

# vmadm

                Database Host:  backup

                Media Management
                ----------------
                a)  Add Volumes
                d)  Delete Volumes
                m)  Move Volumes
                p)  Print Information about Volumes

                c)  Configure Volume Pools
                s)  Special Actions

                u)  Device Configuration Utility

                h)  Help
                q)  Quit

                ENTER CHOICE: a

        Add Single Volume, Range of Volumes, or Auto-Populate? (s/r/a): s

        Adding Volume
        -------------
                Media Type
                ----------
                 1)  1/4" cartridge tape
                 2)  1/2" cartridge tape
                 3)  1/2" cartridge tape 2
                 4)  1/2" cartridge tape 3
                 5)  4MM cartridge tape
                 6)  8MM cartridge tape
                 7)  8MM cartridge tape 2
                 8)  8MM cartridge tape 3
                 9)  DLT cartridge tape
                10)  DLT cartridge tape 2
                11)  DLT cartridge tape 3
                12)  DTF cartridge tape
                13)  Optical disk rewritable
                14)  Optical disk WORM
                15)  1/2" cleaning tape
                16)  1/2" cleaning tape 2
                17)  1/2" cleaning tape 3
                18)  4MM cleaning tape
                19)  8MM cleaning tape
                20)  8MM cleaning tape 2
                21)  8MM cleaning tape 3
                22)  DLT cleaning tape
                23)  DLT cleaning tape 2
                24)  DLT cleaning tape 3
                25)  DTF cleaning tape
            Enter Choice [1-25]: 4

            Enter Media ID: U572L2

            Enter Media Description(25 char max):  for import

                Volume Pool
                -----------
                  1)  None
                  2)  NetBackup
                  3)  DataStore
                  4)  CatalogBackup
                  5)  P_Prod_DB_Month
                  6)  P_Prod_FS_Month
                  7)  P_DevQas_Week
                  8)  P_Windows
                  9)  Scratch
                 10)  P_Prod_Reserve_Year
                 11)  xinem8_appFS_DB
                 12)  DB_bw_arch
                 13)  DB_r3_arch
                 14)  DB_bw_full
                 15)  DB_r3_full
                 16)  DB_ep_full
                 17)  ERROE_media
                 18)  DB_xinem8_full
                 19)  FS_oa_mail
                 20)  FS_oa_app
                 21)  DB_r3_dev_qas_full
                 22)  DB_bw_dev_qas_full
                 23)  DB_xine_arch
                 24)  test
            Enter choice:  24

                Physical Location
                -----------------
                1)  Not in robotic device
                2)  ACS - Automated Cartridge System
                3)  TLD - Tape Library DLT
                4)  TSH - Tape Stacker Half-inch
                5)  TLH - Tape Library Half-inch
                6)  TLM - Tape Library Multimedia
                7)  LMF - Library Management Facility
                8)  RSM - Removable Storage Manager
            Enter Choice [1-8]: 3

                Applicable Robot List
                ---------------------
                    0)  TLD - Tape Library DLT  (bfbkup)
                    n)  New Robot Number
            Enter choice:  0

            Enter Media Slot [1-16000]: 4

                Volume Group
                ------------
                  1)  1-000-TLD
                  2)  Specify New Volume Group Name
                  3)  Auto-Generate New Volume Group Name
            Enter choice:  1

        inject volume using media access port? (y/n): n
       
  press any key to continue......

3.磁带添加完成后,执行
# bpimport -create_db_info -id U572L2 -L /tmp/out.file

......
16:09:26 INF - Recreating image information for client bfbwapp1, policy bfbwapp_fs, and schedule Full, done on 04/27/2008 01:04:20.
16:09:27 INF - Recreating copy 1, fragment 1 information for image.
......

4.在控制台中选择catalog,action选择import,在Media ID中填入刚导入的磁带:U572L2,Date/Time Range:选择要查找的时间范围,单击search now。

右击找到的需要导入的备份集,选择import导入备份。


经过以上步骤,就可以实现过期磁带的导入了。

最后

以上就是诚心柜子为你收集整理的手工导入磁带一法的全部内容,希望文章能够帮你解决手工导入磁带一法所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部