AIX下配置磁带库机械臂.docx

上传人:b****3 文档编号:5133555 上传时间:2022-12-13 格式:DOCX 页数:21 大小:36.38KB
下载 相关 举报
AIX下配置磁带库机械臂.docx_第1页
第1页 / 共21页
AIX下配置磁带库机械臂.docx_第2页
第2页 / 共21页
AIX下配置磁带库机械臂.docx_第3页
第3页 / 共21页
AIX下配置磁带库机械臂.docx_第4页
第4页 / 共21页
AIX下配置磁带库机械臂.docx_第5页
第5页 / 共21页
点击查看更多>>
下载资源
资源描述

AIX下配置磁带库机械臂.docx

《AIX下配置磁带库机械臂.docx》由会员分享,可在线阅读,更多相关《AIX下配置磁带库机械臂.docx(21页珍藏版)》请在冰豆网上搜索。

AIX下配置磁带库机械臂.docx

AIX下配置磁带库机械臂

前言

本文就AIX系统下带库机械臂、磁带驱动器驱动Atape的下载、安装、设备配置、设备测试、驱动卸载进行详细介绍。

另外文章还列出了常用的磁带设备的命令,并介绍如何在备份软件TSM(TivoliStorageManager)中定义和使用磁带设备。

所用的命令均辅以实战用例,供系统管理员查看使用。

安装前的准备工作

对于较小型的存储网络,可以使用SCSI线直接连接系统与磁带库。

本实例使用SAN网络来连接AIX系统和磁带库,因此需要在AIX系统正确配置HBA(HostBusAdapter)卡,确保SAN网络的正确连接。

Atape简介

IBMAIXAtape驱动提供对IBM磁带驱动器以及机械臂设备(MediaChanger)的支持。

Atape不仅可以给各种应用程序提供基本的磁带操作,例如对备份、恢复;提供基本的机械臂操作,例如载入(Mount)、载出(Unmount)磁带(Cartridges/Tapes);还为磁带管理系统提供更高级的功能。

该驱动对应用程序是透明的。

正确安装驱动以后,应用程序可以使用驱动提供的各种功能。

安装包下载:

IBMAtape安装包可以从ftp:

//下载。

从下面的网站确定你的操作系统的补丁级别是否符合要求:

下载步骤如下:

#ftp

Connectedtodispsd-40-.

220-*******************************************************************************

220-**

220-*IBM'sinternalsystemsmustonlybeusedforconductingIBM's*

220-*businessorforpurposesauthorizedbyIBMmanagement.*

220-**

220-*UseissubjecttoauditatanytimebyIBMmanagement.*

220-**

220-*******************************************************************************

220-

220serviceFTPserver(Versionwu-2.6.2(5)CustomSatMay2801:

48:

31MDT2005)ready.

Name(:

root):

anonymous

331Guestloginok,sendanypassword.

Password:

230Guestloginok,accessrestrictionsapply.

ftp>cd/storage/devdrvr/AIX

250-PleasereadthefileREADME

250-itwaslastmodifiedonMonOct817:

36:

522007-520daysago

250CWDcommandsuccessful.

ftp>ls

200PORTcommandsuccessful.

150OpeningASCIImodedataconnectionforfilelist.

Atape.10.7.3.0.bin

Atape.11.3.4.0.bin

Atape.8.4.9.0.bin

Atape.9.7.5.0.bin

Atape.README

Atape.fixlist

README

atldd.5.5.1.0.bin

atldd.6.7.7.0.bin

atldd.Readme

atldd.fixlist

226Transfercomplete.

ftp>bin

200TypesettoI.

ftp>mgetAtape.11.3.4.0.bin

mgetAtape.11.3.4.0.bin?

y

200PORTcommandsuccessful.

150OpeningBINARYmodedataconnectionforAtape.11.3.4.0.bin(5376000bytes).

226Transfercomplete.

5376000bytesreceivedin1.261seconds(4165Kbytes/s)

local:

Atape.11.3.4.0.binremote:

Atape.11.3.4.0.bin

安装过程

在安装新版本的设备驱动之前,建议先卸载老版本的驱动,并保证磁带设备已经上电、功能正常并已经正确连接到AIX系统上。

可以使用命令:

installp–acXdAtape.x.x.x.xAtape.driver

下面来安装我们下载的Atape.11.3.4.0.bin:

#installp-acXdAtape.11.3.4.0.binAtape.driver

+-----------------------------------------------------------------------------+

Pre-installationVerification...

+-----------------------------------------------------------------------------+

Verifyingselections...done

Verifyingrequisites...done

Results...

SUCCESSES

---------

Filesetslistedinthissectionpassedpre-installationverification

andwillbeinstalled.

SelectedFilesets

-----------------

Atape.driver11.3.4.0#IBMAIXEnhancedTapeandMe...

<>

+-----------------------------------------------------------------------------+

BUILDDATEVerification...

+-----------------------------------------------------------------------------+

Verifyingbuilddates...done

FILESETSTATISTICS

------------------

1Selectedtobeinstalled,ofwhich:

1Passedpre-installationverification

----

1Totaltobeinstalled

0503-409installp:

bosbootverificationstarting...

installp:

bosbootverificationcompleted.

+-----------------------------------------------------------------------------+

InstallingSoftware...

+-----------------------------------------------------------------------------+

installp:

APPLYINGsoftwarefor:

Atape.driver11.3.4.0

.....<>.......

IBMAIXEnhancedTapeandMediumChangerDeviceDriver

(C)COPYRIGHTInternationalBusinessMachinesCorp.19932005

AllRightsReserved

LicensedMaterials-PropertyofIBM

USGovernmentUsersRestrictedRights-Use,duplicationor

disclosurerestrictedbyGSAADPScheduleContractwithIBMCorp.

.....<>....

CheckingforexistingAtapedevices...

InstallingAIXVersion6.1Atape.driver...

Addingdeviceprototype...

Addingodmandsmitentries...

Addingcatalogs...

Addingtracetemplate...

Addingerrortemplate...

6entriesadded.

0entriesdeleted.

0entriesupdated.

Addingutilityprograms...

Finishedprocessingallfilesets.(Totaltime:

11secs).

0503-409installp:

bosbootverificationstarting...

installp:

bosbootverificationcompleted.

0503-408installp:

bosbootprocessstarting...

bosboot:

Bootimageis36475512byteblocks.

0503-292Thisupdatewillnotfullytakeeffectuntilaftera

systemreboot.

***ATTENTION***

Systembootimagehasbeenupdated.Youshouldrebootthe

systemassoonaspossibletoproperlyintegratethechanges

andtoavoiddisruptionofcurrentfunctionality.

installp:

bosbootprocesscompleted.

+-----------------------------------------------------------------------------+

Summaries:

+-----------------------------------------------------------------------------+

InstallationSummary

--------------------

NameLevelPartEventResult

-------------------------------------------------------------------------------

Atape.driver11.3.4.0USRAPPLYSUCCESS

如上例所示,如果InstallationSummary给出的结果是SUCCESS,Atape驱动已经正确安装到系统中了。

当然,也可以使用smit来安装:

#smitty

->SoftwareInstallationandMaintenance

->InstallandUpdateSoftware

->InstallSoftware

->*INPUTdevice/directoryforsoftware输入安装包位置

如下例:

InstallSoftware

Typeorselectvaluesinentryfields.

PressEnterAFTERmakingalldesiredchanges.

[EntryFields]

*INPUTdevice/directoryforsoftware.

*SOFTWAREtoinstall[Atape>+

PREVIEWonly?

(installoperationwillNOToccur)no+

COMMITsoftwareupdates?

yes+

SAVEreplacedfiles?

no+

AUTOMATICALLYinstallrequisitesoftware?

yes+

EXTENDfilesystemsifspaceneeded?

yes+

OVERWRITEsameornewerversions?

no+

VERIFYinstallandcheckfilesizes?

no+

IncludecorrespondingLANGUAGEfilesets?

yes+

DETAILEDoutput?

no+

Processmultiplevolumes?

yes+

ACCEPTnewlicenseagreements?

no+

PreviewnewLICENSEagreements?

no+

需要注意的是,PREVIEWonly一项需要置成no,这样驱动才真正会被安装到系统中。

选择确认后,回车完成安装过程。

安装完成后,用如下命令来确认,安装的版本和状态:

 

lslpp–lAtape.driver

#lslpp-lAtape.driver

FilesetLevelStateDescription

----------------------------------------------------------------------------

Path:

/usr/lib/objrepos

Atape.driver11.3.4.0COMMITTEDIBMAIXEnhancedTapeand

MediumChangerDeviceDriver

如果安装成功的话,installp会自动调用AIX的bosboot命令把新安装的Atape文件更新到启动记录里,所以不需要重新启动AIX系统。

配置磁带驱动器和机械臂

安装结束后,需要进行配置以后,才能使用设备驱动。

使用命令#cfgmgr来重新发现系统连接的设备,并进行配置。

#cfgmgr

上例中,cfgmgr执行完毕,没有报错,则配置成功。

当然重新启动AIX系统也能达到重新配置的效果。

在Atape驱动已经安装而且设备已经配置以后,系统通过/dev目录下的smc*文件来表示物理的机械臂,rmt*表示磁带驱动器。

#lsdev-Cctape能列出系统所带的所有磁带设备

#lsdev-Cctape

rmt0Available01-01-01IBM3580UltriumTapeDrive(FCP)

rmt1Available01-01-01LTOUltriumTapeDrive(FCP)

rmt2Available01-01-01IBM3580UltriumTapeDrive(FCP)

smc8Available01-01-01IBM3584LibraryMediumChanger(FCP)

smc9Available01-01-01IBM3584LibraryMediumChanger(FCP)

上例中,系统连接有两个机械臂设备smc8和smc9,和三个磁带驱动器rmt0,rmt1,rmt2。

验证机械臂以及驱动器是否工作正常

需要使用tapeutil对机械臂和驱动器来进行验证。

tapeutil是Atape提供的设备测试应用程序,它是对磁带库以及驱动器进行直接操作的接口。

安装Atape后,可直接运行tapeutil来启动程序。

下面介绍一下如何使用tapeutil对系统连接的磁带驱动器和机械臂进行测试。

#tapeutil

GeneralCommands:

1.OpenaDevice5.Inquiry9.LogSensePage

2.CloseaDevice6.TestUnitReady10.ModeSensePage

3.DeviceInfo7.ReserveDevice11.ReleaseDevice

4.TapeDriveServiceAids8.RequestSenseQ.QuitProgram

MediumChangerCommands:

12.ElementInformation16.MoveMedium

13.PositionToElement17.Load/UnloadMedium

14.ElementInventory18.InitializeElementStatus

15.ExchangeMedium19.Prevent/AllowMediumRemoval

TapeCommands:

20.Query/SetParameters30.ReadandWriteTests

21.Prevent/AllowMediumRemoval31.Unload/LoadTape

22.Rewind32.Erase

23.EraseGap33.WriteFilemarks

24.ForwardSpaceFilemarks34.BackwardSpaceFilemarks

25.ForwardSpaceRecords35.BackwardSpaceRecords

26.SpacetoEndofData36.Query/SetTapePosition

27.LogSense37.ReadorWriteFiles

28.DisplayMessage38.GetDriveEncryptionSettings

29.SynchronizeBuffers39.ReportDensitySupport

40.TestEncryptionKeyPath/Setup

EnterSelection:

如何验证磁带驱动器是否正确安装:

1.打开AIX窗口

2.输入tapeutil

3.输入1(打开一个设备)

4.输入/dev/rmt0(需要验证的设备文件)

5.输入1(Read/Write)

6.输入3(DeviceInfo)

7.输入5(Inquiry)选择0,对设备进行基本测试

8.输入6(TestUnitRead)确认没有错误。

9.输入18(InitializeElementStatus)

10.输入14(ElementInventory)查看所有带库中所有磁带

11.从上一步结果中,选择一个可写的空闲磁带,查看其序列号,并选择一个空闲的磁带插槽

12.输入16(MoveMedium),指定磁带的地址和空闲磁带插槽的地址。

确认磁带被放置到正确的位置

13.输入14(ElementInventory),确认磁带库信息被更新

14.输入2(CloseaDevice)

15.输入Q(退出程序)

如何验证机械臂是否工作正常:

1.打开AIX窗口

2.输入tapeutil

3.输入1(打开一个设备)

4.输入/dev/smc0

5.输入1(Read/Write)

6.输入3(DeviceInfo)

7.输入5(Inquiry)选择0,对设备进行基本测试

8.输入6(TestUnitRead)确认没有错误

9.输入22(Rewind)

10.输入30(ReadandWriteTests)进行读写测试

11.输入1(Read/Write).开始测试

12.输入31(UnloadTape)取出磁带

13.输入2(CloseaDevice)

14.输入Q(退出程序)

常用磁带设备管理命令

查看所有系统连接的设备:

下例列出系统识别出的所有带库机械臂和磁带驱动器的基本信息:

lsdev-Cctape

#lsdev-Cctape

rmt2Available01-01-01IBM3580UltriumTapeDrive(FCP)

rmt3Available01-01-01LTOUltriumTapeDrive(FCP)

rmt4Available01-01-01LTOUltriumTapeDrive(FCP)

rmt5Available01-01-01LTOUltriumTapeDrive(FCP)

rmt6Available01-01-01LTOUltriumTapeDrive(FCP)

rmt7Available01-01-01LTOUltriumTapeDrive(FCP)

rmt8Available01-01-01LTOUltriumTapeDrive(FCP)

smc5Available01-01-01IBM3584LibraryMediumChanger(FCP)

smc6Available01-01-01IBM3576LibraryMediumChanger(FCP)

smc7Availa

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1