1TSM软件安装和配置步骤第一章TSMSERVER在RS/6000上的安装和配置主机类型:rs6000系列AIX433磁带库类型:STK_L20一个驱动器,一个机械手,14盘数据磁带,一盘清洗带,CAP空闲。一、安装TSM服务器软件包,版本4.2.1#smitinstallp选择安装除用于AIX5L版本以外的所有软件包建议采用非自动启动方式运行服务器应用。在/etc/inittab文件中将自动启TSMserver的语句去掉:autosrvr:2:once:/usr/tivoli/tsm/server/bin/rc.adsmserv/dev/console2&1#StarttheTivoliStorageManagerserver二、安装TSM客户端软件包,版本4.2.1#smitinstallpInstallandUpdatefromALLAvailableSoftwareTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]*INPUTdevice/directoryforsoftware/dev/cd0*SOFTWAREtoinstall[]+PREVIEWonly?(installoperationwillNOToccur)no+COMMITsoftwareupdates?yes+SAVEreplacedfiles?no+AUTOMATICALLYinstallrequisitesoftware?yes+EXTENDfilesystemsifspaceneeded?yes+OVERWRITEsameornewerversions?no+VERIFYinstallandcheckfilesizes?no+DETAILEDoutput?no+Processmultiplevolumes?yes+F1=HelpF2=RefreshF3=CancelF4=ListEsc+5=ResetEsc+6=CommandEsc+7=EditEsc+8=ImageEsc+9=ShellEsc+0=ExitEnter=DoInstallandUpdatefromALLAvailableSoftwareTypeorselectvaluesinentryfields.PressEnterAFTERmakingalldesiredchanges.[EntryFields]*INPUTdevice/directoryforsoftware/dev/cd0*SOFTWAREtoinstall[]+PREVIEWonly?(installoperationwillNOToccur)no+COMMITsoftwareupdates?yes+SAVEreplacedfiles?no+AUTOMATICALLYinstallrequisitesoftware?yes+EXTENDfilesystemsifspaceneeded?yes+OVERWRITEsameornewerversions?no+VERIFYinstallandcheckfilesizes?no+DETAILEDoutput?no+Processmultiplevolumes?yes+2选择安装除用于AIX5L版本以外的所有软件包三、配置TSMserver在rootvg下创建一个大小为1000M的文件系统/tsm(Sizeoffilesystemin512-byteblocks:2000000),并设置为AutoMount。#smitfs#mount/tsm创建数据库、日志文件和存储池#mkdir/tsm格式化数据库、日志文件和存储池#dsmfmt–m–db/tsm/db01.dsm200#dsmfmt–m–log/tsmlog01.dsm100#dsmfmt–m–data/tsm/backupvol01.dsm200#dsmfmt–m–data/tsm/archivevol01.dsm200配置文件/.profile,加入下面几行exportDSMSERV_DIR=/usr/tivoli/tsm/server/binexportDSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dsmserv.opt编辑文件/usr/tivoli/tsm/server/bin/dsmserv.optTCPPort1500此号为和客户机相连的端口号commethodhttphttpport1580此号为web管理界面地址的端口号启动TSMServer:#cd/usr/tivoli/tsm/server/bin#dsmservformat1/tsm/tsmlog/log01.dsm1/tsm/tsmdb/db01.dsm#./dsmserv登记管理客户admin(口令:admin)和备份客户client(口令:client)TSMregisteradminadminadminTSMgrantauthorityadminclass=systemTSMregisternodeclientclientTSMupdatenodeclientbackdelete=yes修改用户client的属性配置文件/usr/tivoli/tsm/client/ba/bin/dsm.sysSErvernameabis01COMMmethodTCPipTCPPort1500TCPServeraddress172.22.241.41Nodenameabis01Passwordaccessgenerate配置文件/usr/tivoli/tsm/client/ba/bin/dsm.optSErvernameabis01这时可以用web方式进行管理,如果出现web管理界面的左半部分出不来,则需要重新安装软件包tivoli.tsm.server.webadminVolumegroupnamerootvg*SIZEoffilesystem(in512-byteblocks)[2000000]#*MOUNTPOINT[/tsm]MountAUTOMATICALLYatsystemrestart?yes+PERMISSIONSread/write+MountOPTIONS[]+StartDiskAccounting?no+FragmentSize(bytes)4096+Numberofbytesperinode4096+AllocationGroupSize(MBytes)8+3TSMhalt停掉dsmserva.将tivoli.tsm.server.webadmin软件包卸载/usr/lib/instl/sm_instinstallp_cmd-u-f'tivoli.tsm.server.webadmin''-g'b.重新安装tivoli.tsm.server.webadminc.#cd/usr/tivoli/tsm/server/bin在此目录下启动服务#./dsmserv注册:TSMregisterlicensefile=drm.licTSMregisterlicensefile=50spacemgr.licTSMregisterlicensefile=50mgsyslan.licTSMregisterlicensefile=50mgsyssan.licTSMregisterlicensefile=5library.licTSMregisterlicensefile=libshare.licTSMregisterlicensefile=50msexch.licTSMregisterlicensefile=50lnotes.lic设置web管理界面的timeout时间:例如:100分钟。四、安装STL_L20磁带库1.在TSM中的定义:#smitdevTIVOLISTORAGEMANAGERDevicesFIBRECHANNELSANATTACHEDDEVICESDISCOVERDEVICESSUPPORTEDBYTSM选择fscsi0available机器会列出找到的TSMDEVICESlb0availablemt0available4mt0设备,此为TSM可以认可的磁带机设备名。lb0设备,此为TSM可以认可的机械手设备名。五、TSM中各个参数的定义:以下文档均为在web管理界面下的操作(附命令行命令)定义库ADMINdefinelibraryautoliblibtype=scsidevice=/dev/lb0定义磁带机设备5ADMINdefinedriveautolibdrive1device=/dev/mt0element=500定义设备级别ADMINdefinedevclassautoclassdevtype=dltformat=DRIVElibrary=autolib定义存储池ADMINdefinestgpooldltpoolautoclassmaxscratch=0在磁带上加入卷标并加入到库中TSMhalt先将dsmserv关闭6#dsmlabel–drive=/dev/mt0,500–library=/dev/lb0–search–barcode-format卷标dsm001到dsm014,共14盘磁带有些磁带在加卷标时会出现错误信息,说明这盘磁带有问题,将其取出后重试启动TSMserver后checkin卷:TSMcheckinlibvautolibsearch=yesstatus=scratchTSMquerylibvolume可以看到被加进来的磁带000001,00002,000003,000004……将磁带000001,000002,……定义给存储池定义数据库、日志和存储池7TSMdefinevolumebackuppool/tsm/tsmvol/backupvol01.dsm8TSMdefinevolumearchivepool/tsm/tsmvol/archivevol01.dsm定义一个policydomain定义一个policyset910定义managementclass设为缺省class11定义backupcopy定义archivecopy12使此policyset有效激活此policyset13把客户client和st_policy相连注册一个新的节点(node)14定义copypool1和copypool2将磁带卷st03和st04赋给pool115#dsmadmc输入用户名admin和口令admin查询设置:ADMINquerylibraryADMINquerydriveADMINquerydevclassformat=detailedADMINquerystgpool建立多个客户备份目的的过程:建立autopool1,autopool2…指定某些卷给autopool1,autopool2…建立backuppool1,backuppool2…,指定卷/tsm/tsmvol/backupvol02…拷贝策略域STANDARD为user1_pd改变user1_pd策略集standard的backupcopygroup的属性copydestinationvalidatepolicysetSTANDARD,activatepolicysetSTANDARD修改用户的策略域为user1_pd在用web方式管理时如果出现“ANR2958ESQLtemporarytablestoragehasbeenexhausted.”的提示,则需要扩大database:16启动ADSMClient操作界面#dsm(图形界面)#dsmadmc(命令行界面)定义schedule1.定义schedule172.定义该schedule和哪个(哪些)用户关联3.在客户端启动进程#/usr/T