分类: 系统运维
2012-09-11 16:23:45
首先确定虚拟带库和AS/400主机的光纤线已连接好,光纤交换机ZONE已划好。
1. WRKHDWRSC *STG
在OS/400操作系统中找到连虚拟带库的HBA卡
Opt Resource Type-model Status Text CMB20 5774-001 Operational Storage Controller DC14 5774-001 Operational Storage Controller TAPMLB08 3584-032 Operational Tape Library |
此时看到TAPMLB08状态是operational
2. 在TAPMLB08前输入9=Work with resource,可以看到该LIB下的所有DRV,图中的OS/400下挂了14个驱动器。
Opt Resource Type-model Status Text TAPMLB08 3584-032 Operational Tape Librar TAP14 3580-003 Operational Tape Unit TAP16 3580-003 Operational Tape Unit TAP15 3580-003 Operational Tape Unit TAP17 3580-003 Operational Tape Unit TAP23 3580-003 Operational Tape Unit TAP19 3580-003 Operational Tape Unit TAP26 3580-003 Operational Tape Unit TAP18 3580-003 Operational Tape Unit TAP20 3580-003 Operational Tape Unit TAP27 3580-003 Operational Tape Unit TAP25 3580-003 Operational Tape Unit TAP24 3580-003 Operational Tape Unit TAP22 3580-003 Operational Tape Unit TAP21 3580-003 Operational Tape Unit |
注:在识别EMC DD670设备时,有时会只认出一半驱动器,此时需要在VTL设备上打补丁。
3. 若无法识别到所有设备,则可能是光纤链路有问题,可以检查光纤线、交换机ZONE、HBA卡等,也可以尝试重启HBA卡。
STRSST-- 1. Start a service tool-- 7. Hardware service manager-- 3. Locate resource by resource name
输入在第一步中看到的HBA卡的资源名,如DC14
Logical Hardware Resources
Type options, press Enter. 2=Change detail 4=Remove 5=Display detail 6=I/O debug 7=Verify 8=Associated packaging resource(s)
Resource Opt Description Type-Model Status Name Storage IOA 5774-001 Operational DC14
F3=Exit F5=Refresh F6=Print F9=Failed resources F10=Non-reporting resources F11=Display serial/part numbers F12=Cancel DC14 located successfully. |
4. 输入5=Display detail 可以看到该HBA卡的WWN号,检查和交换机看到的是否一致。
Port . . . . . . . . . . . . . . . : 0
Worldwide port name . . . . . . . : 10000000C99B430E
登录光纤交换机,使用switchshow命令可以看到HBA卡的WWN号。
5. 输入8=Associated packaging resource(s)
Packaging Resources Associated with a Logical Resource
Logical resource: Type-Model Resource Name Storage IOA 5774-001 DC14
Type options, press Enter. 2=Change detail 3=Concurrent maintenance 4=Remove 5=Display detail 8=Associated logical resource(s) 9=Hardware contained within package
Type- Resource Opt Description Model Unit ID Name Storage IOA 5774-001 U5873.001.99200G8 P19
F3=Exit F5=Refresh F6=Print F10=Non-reporting resources F12=Cancel F13=Unresolved locations
|
6. 输入3=Concurrent maintenance
Hardware Resource Concurrent Maintenance Unit ID: U5873.001.99200G8 Type options, press Enter. 2=Toggle identify indicator state 5=Display detail 8=Associated logical resource(s)
Power Opt Description Type-Model Status Position Storage IOA > 5774-001 On P1-C5
F3=Exit F5=Refresh F6=Print F7=Display partition information F8=Display resource names F9=Power off domain F10=Power on domain F11=In-use resources F12=Cancel F14=Work with controlling resources
|
在该界面中,选择F9 将HBA卡下电,等待一段时间再选择F10,给HBA卡加电。
7. 回到WRKHDWRSC *STG菜单,检查是否所有DRV都已经识别出来。
8. WRKDEVD TAP* ,确认TAPMLB设备状态为VARYON
9. WRKMLBSTS
Work with Media Library Status System: COREBFL Type options, press Enter. 1=Vary on 2=Vary off 3=Reset resource 4=Allocate resource 5=Allocate unprotected 6=Deallocate resource 8=Work with description
Device/ Job Opt Resource Status Allocation name TAPMLB08 VARIED ON TAP14 OPERATIONAL DEALLOCATED TAP15 OPERATIONAL DEALLOCATED TAP19 OPERATIONAL DEALLOCATED TAP18 OPERATIONAL DEALLOCATED TAP24 OPERATIONAL DEALLOCATED TAP16 OPERATIONAL DEALLOCATED TAP17 OPERATIONAL DEALLOCATED TAP20 OPERATIONAL DEALLOCATED More... Parameters or command ===> F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel F17=Position to F23=More options (C) COPYRIGHT IBM CORP. 1980, 2007. |
10. 在TAP设备前输入4 allocate resource
Work with Media Library Status System: Type options, press Enter. 1=Vary on 2=Vary off 3=Reset resource 4=Allocate resource 5=Allocate unprotected 6=Deallocate resource 8=Work with description
Device/ Job Opt Resource Status Allocation name TAPMLB08 VARIED ON TAP14 OPERATIONAL ALLOCATED TAP15 OPERATIONAL ALLOCATED TAP19 OPERATIONAL ALLOCATED TAP18 OPERATIONAL ALLOCATED TAP24 OPERATIONAL ALLOCATED TAP16 OPERATIONAL ALLOCATED TAP17 OPERATIONAL ALLOCATED TAP20 OPERATIONAL ALLOCATED More... Parameters or command ===> F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel F17=Position to F23=More options Status of drive resource in device TAPMLB08 changed successfully. + |
11. WRKTAPCTG DEV(TAPMLB08) 查看tape cartridges
Work with Tape Cartridges 09/11/12 14:41:45 Library Device: TAPMLB08 Type options, press Enter. 1=Add 2=Change 4=Remove 5=Display 6=Print ...
Cartridge Volume Media Opt ID ID Type Status AS8001 *UNKNOWN L3 Inserted AS8002 *UNKNOWN L3 Inserted AS8003 *UNKNOWN L3 Inserted AS8004 *UNKNOWN L3 Inserted AS8005 *UNKNOWN L3 Inserted AS8006 *UNKNOWN L3 Inserted AS8007 *UNKNOWN L3 Inserted More... Parameters or command ===>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Show category F12=Cancel F17=Top F18=Bottom F23=More options
|
12. 在Cartridge Id前输入1 add,F4 将category name参数改为*SHARE400
Add Tape Cartridge (ADDTAPCTG)
Type choices, press Enter.
Library device . . . . . . . . . > TAPMLB08 Name, F4 for list Cartridge ID . . . . . . . . . . > AS8001 Character value Category: Category name . . . . . . . . *SHARE400 *NOSHARE, *SHARE400, *IPL... Category system . . . . . . . *CURRENT *CURRENT... Check volume identifier . . . . *YES *YES, *NO
Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
13. 此时AS8001状态变为mounted
Cartridge Volume Media Opt ID ID Type Status AS8001 *UNKNOWN L3 Mounted |
14. SETTAPCGY DEV(TAPMLB08) OPTION(*MOUNTED)
Set Tape Category (SETTAPCGY)
Type choices, press Enter.
Library device . . . . . . . . . > TAPMLB08 Name, F4 for list Option . . . . . . . . . . . . . > *MOUNTED *MOUNTED, *DEMOUNTED... Category: Category name . . . . . . . . *SHARE400 *NOSHARE, *SHARE400, *IPL... Category system . . . . . . . *CURRENT *CURRENT... Cartridge order . . . . . . . . *SEQ *SEQ, *NEXTAVAIL Target category: Category name . . . . . . . . *CGY *CGY, *NOSHARE, *SHARE400... Category system . . . . . . . *CURRENT *CURRENT... Mount identifier . . . . . . . . *NONE Name, *NONE
Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
15. 初始化磁带, 在AS8001前输入10 initialize tape
Work with Tape Cartridges COREBFL 09/11/12 14:52:27 Library Device: TAPMLB08
Type options, press Enter. 10=Initialize tape 11=Display tape 13=Dump tape 14=Duplicate tape 15=Check tape ...
Cartridge Volume Media Opt ID ID Type Status 10 AS8001 *UNKNOWN L3 Mounted AS8002 *UNKNOWN L3 Inserted AS8003 *UNKNOWN L3 Inserted AS8004 *UNKNOWN L3 Inserted AS8005 *UNKNOWN L3 Inserted AS8006 *UNKNOWN L3 Inserted AS8007 *UNKNOWN L3 Inserted More... Parameters or command ===>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Show category F12=Cancel F17=Top F18=Bottom F23=More options
|
将CHECK FOR ACTIVE FILES改为*NO
Initialize Tape (INZTAP)
Type choices, press Enter.
Device . . . . . . . . . . . . . > TAPMLB08 Name New volume identifier . . . . . > AS8001 Character value, *NONE... New owner identifier . . . . . . *BLANK Volume identifier . . . . . . . > AS8001 Character value, *MOUNTED Check for active files . . . . . *no *YES, *NO, *FIRST Tape density . . . . . . . . . . > *CTGTYPE *DEVTYPE, *CTGTYPE, *QIC120... Code . . . . . . . . . . . . . . *EBCDIC *EBCDIC, *ASCII End of tape option . . . . . . . *REWIND *REWIND, *UNLOAD Clear . . . . . . . . . . . . . *NO *NO, *YES
Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
16. 初始化后,磁带状态如下
Cartridge Volume Media Opt ID ID Type Status AS8001 AS8001 L3 Mounted AS8002 AS8002 L3 Mounted |
17. 此时可以在系统中使用SAV命令进行备份。
如:SAVLIB LIB(QGPL) DEV(TAPMLB08) VOL(AS8001) ASPDEV(TEST)
查看备份内容:DSPTAP DEV(TAPMLB08) VOL(AS8001) DATA(*SAVRST)
18. 虚拟磁带中的内容归档到物理磁带
DUPTAP FROMDEV(TAPMLB08) TODEV(TAPMLB01) FROMVOL(AS8001) TOVOL(Y00001) CHECK(*NO)