tsm5x升级到tsm6x自己实验Word文档格式.docx
《tsm5x升级到tsm6x自己实验Word文档格式.docx》由会员分享,可在线阅读,更多相关《tsm5x升级到tsm6x自己实验Word文档格式.docx(18页珍藏版)》请在冰豆网上搜索。
Command:
2.运行convertussfilespace(此不一定不能省略)
tsm:
TSM55>
convertussfilespace
ANR2034ECONVERTUSSFILESPACE:
Nomatchfoundusingthiscriteria.
ANS8001IReturncode11.
3.关闭连接
disablesessionclient
disablesessionserver
4.备份dev以及vol文件
BAckupDEVCONFigfile=/tmp/devconfig.bak
backupvolhfile=/tmp/volhistory.bak
5.关闭服务器
halt
6.安装upgrade工具
工具从TSM的FTP上的server-upgrade目录上下载
rpm-ivhTIVsm-upgrade-5.5.6-0.x86_64.rpm
7.设置相关变量
exportDSMSERV_DIR=/opt/tivoli/tsm/upgrade/bin
exportDSMSERV_CONFIG=/opt/tivoli/tsm/server/bin/dsmserv.opt
8.准备数据库
nohup/opt/tivoli/tsm/upgrade/bin/dsmupgrdpreparedb>
prepare.out2>
&
1&
prepare.out内容如下:
TivoliStorageManagerforLinux/x86_64
Version5,Release5,Level6.0
LicensedMaterials-PropertyofIBM
(C)CopyrightIBMCorporation1990,2009.
Allrightsreserved.
U.S.GovernmentUsersRestrictedRights-Use,duplicationordisclosure
restrictedbyGSAADPScheduleContractwithIBMCorporation.
ANR7800IDSMSERVgeneratedat09:
19:
16onOct242011.
ANR7801ISubsystemprocessIDis2274.
ANR0900IProcessingoptionsfile/opt/tivoli/tsm/server/bin/dsmserv.opt.
ANR4726ITheICCsupportmodulehasbeenloaded.
ANR0990IServerrestart-recoveryinprogress.
ANR0200IRecoverylogassignedcapacityis8megabytes.
ANR0201IDatabaseassignedcapacityis16megabytes.
ANR0306IRecoverylogvolumemountinprogress.
ANR0353IRecoveryloganalysispassinprogress.
ANR0354IRecoverylogredopassinprogress.
ANR0355IRecoverylogundopassinprogress.
ANR0352ITransactionrecoverycomplete.
ANR1635ITheservermachineGUID,8a.f7.67.a0.fc.bc.e2.11.8c.94.00.0c.29.7a.44-
.38,hasinitialized.
ANR4726ITheNAS-NDMPsupportmodulehasbeenloaded.
ANR1794WTSMSANdiscoveryisdisabledbyoptions.
ANR8200ITCP/IPVersion4driverreadyforconnectionwithclientsonport
1500.
ANR2718WSchedulemanagerdisabled.
ANR0129IDatabaseupgradecompletedsuccessfully.
ANR1305IDiskvolume/opt/tivoli/tsm/server/bin/backup.dsmvariedonline.
ANR0993IServerinitializationcomplete.
ANR0916ITIVOLISTORAGEMANAGERdistributedbyTivoliisnowreadyforuse.
ANR0991IServershutdowncomplete.
9.卸载TSM软件
rpm–qa|grep–itiv
TIVsm-server-5.5.6-0.x86_64
10.安装TSM6软件
略。
。
11.初始TSM6的环境
groupaddtsm
adduser-d/home/tsm-m-gtsm-s/bin/kshtsmadmin
root用户
mkdir/tsm
chown-Rtsmadmin:
tsm/tsm
tsm用户
mkdir/tsm/db
mkdir/tsm/activelog
mkdir/tsm/archlog
12.解压备份数据
在原有的tsm5的server/bin目录下执行
nohup/opt/tivoli/tsm/upgrade/bin/dsmupgrdextractdbdevclass=ibma(之前备份的devclass)manifest=./manifest.txt>
extract.out2>
extract.out:
ANR7801ISubsystemprocessIDis58319.
ANR4029IEXTRACTDB:
Databasecheckpointstarted.
ANR4030IEXTRACTDB:
Databasecheckpointcompleted.
ANR0610IEXTRACTDBstartedbyADMINISTRATORasprocess1.
ANR1305IDiskvolume/opt/tivoli/tsm/server/bin/archive.dsmvariedonline.
ANR8439ISCSIlibraryIBM3584Bisreadyforoperations.
ANR8439ISCSIlibraryIBM3584Aisreadyforoperations.
ANR8337ILTOvolumeM00007L3mountedindriveDR1(/dev/IBMtape1).
ANR1360IOutputvolumeM00007L3opened(sequencenumber1).
ANR1361IOutputvolumeM00007L3closed.
ANR8336IVerifyinglabelofLTOvolumeM00007L3indriveDR1(/dev/IBMtape1).
ANR8468ILTOvolumeM00007L3dismountedfromdriveDR1(/dev/IBMtape1)in
libraryIBM3584A.
ANR1380IEXTRACTDB:
Outputstream1usedvolumeM00007L3.
ANR1382IEXTRACTDB:
Process1,databaseextract,hascompleted.
ANR1383IEXTRACTDB:
Found118databaseobjects.
ANR1384IEXTRACTDB:
Processed53databaseobjects.
ANR1385IEXTRACTDB:
Skipped65emptydatabaseobjects.
ANR1386IEXTRACTDB:
Failedtoprocess0databaseobjects.
ANR1387IEXTRACTDB:
Processed938databaserecords.
ANR1388IEXTRACTDB:
Read82databasepages.
ANR1389IEXTRACTDB:
Wrote125,348bytes.
ANR1390IEXTRACTDB:
Elapsedtimewas0:
00:
14.
ANR1391IEXTRACTDB:
Throughputwas0.00megabytesperhour.
13.创建一个实例
root用户
cd/opt/tivoli/tsm/db2/instance
./db2icrt-aserver-utsmadmintsmadmin
编辑tsmadmin的.profile
set-ovi
exportPS1='
[$(id-un)@$(hostname-s)"
$PWD"
]$'
exportPATH=$PATH:
/opt/tivoli/tsm/db2/instance/:
/home/tsm/sqllib/bin:
/opt/tivoli/tsm/server/bin
#ThefollowingthreelineshavebeenaddedbyIBMDB2instanceutilities.
if[-f/home/tsm/sqllib/db2profile];
then
./home/tsm/sqllib/db2profile
fi
拷贝dsmserv.opt/devconfig.bak文件到tsmadmin的home目录
编辑dsmserv.opt文件,至少加入volhistory和devconfig文件
db2updatedbmcfgusingdftdbpath/tsm
/opt/tivoli/tsm/server/bin/dsmservloadformatdbdir=/tsm/dbactivelogsize=2048activelogdir=/tsm/activelogarchlogdir=/tsm/archlog
ANR7800IDSMSERVgeneratedat15:
53:
18onOct192012.
Version6,Release3,Level3.000
(C)CopyrightIBMCorporation1990,2011.
ANR7801ISubsystemprocessIDis61242.
ANR0900IProcessingoptionsfile/home/tsm/dsmserv.opt.
ANR7814IUsinginstancedirectory/home/tsm.
ANR0152IDatabasemanagersuccessfullystarted.
ANR1380IThebufferpoolmonitorswitchisenabled.
ANR1004IServerformattingcomplete,databasereadyforloading.
ANR0369IStoppingthedatabasemanagerbecauseofaservershutdown.
ANR2976IOfflineDBbackupfordatabaseTSMDB1started.
ANR2974IOfflineDBbackupfordatabaseTSMDB1completedsuccessfully.
14.载入原有数据
将原有存放manifest.txt的文件改为tsmadmin可读写权限
最好将原有的server/bin目录改为tsmadmin属主
用tsmadmin执行如下:
nohup/opt/tivoli/tsm/server/bin/dsmservinsertdbmanifest=/opt/tivoli/tsm/server/bin/manifest.txt>
insert.out2>
ANR7801ISubsystemprocessIDis61432.
ANR1628IThedatabasemanagerisusingport51500forserverconnections.
ANR1636WTheservermachineGUIDchanged:
oldvalue(),newvalue(8a.f7.67.a0-
.fc.bc.e2.11.8c.94.00.0c.29.7a.44.38).
ANR8955IDriveDR1inlibraryIBM3584Awithserialnumberisupdatedwiththe
newlydiscoveredserialnumber71800051.
ANR8955IDriveDR2inlibraryIBM3584Awithserialnumberisupdatedwiththe
newlydiscoveredserialnumber71800052.
ANR8955IDriveDR3inlibraryIBM3584Awithserialnumberisupdatedwiththe
newlydiscoveredserialnumber71800053.
ANR8955IDriveDR4inlibraryIBM3584Awithserialnumberisupdatedwiththe
newlydiscoveredserialnumber71800054.
ANR8955IDriveDR5inlibraryIBM3584Awithserialnumberisupdatedwiththe
newlydiscoveredserialnumber71800055.
ANR1363IInputvolumeM00007L3opened(sequencenumber1).
ANR1526IINSERTDB:
Buildingindicesandcheckingtableintegrity.
ANR1364IInputvolumeM00007L3closed.
ANR1527IINSERTDB:
Checked53of53databaseobjectsin0:
03.
ANR0336IRunstatsfortableSTAGED_OBJECT_IDSstarted.
ANR0337IRunstatsfortableSTAGED_OBJECT_IDSendedwithsqlCode0.
ANR0336IRunstatsfortableARCHIVE_OBJECTSstarted.
ANR0337IRunstatsfortableARCHIVE_OBJECTSendedwithsqlCode0.
ANR0336IRunstatsfortableBACKUP_OBJECTSstarted.
ANR0337IRunstatsfortableBACKUP_OBJECTSendedwithsqlCode0.
ANR0336IRunstatsfortableSPACEMAN_OBJECTSstarted.
ANR0337IRunstatsfortableSPACEMAN_OBJECTSendedwithsqlCode0.
ANR0136ITableupdatingstatisticsperformedsuccessfullyfor4of4.
ANR1524IINSERTDB:
Beginningdat