汇总restore和recover 辨析.docx

上传人:b****7 文档编号:25491692 上传时间:2023-06-09 格式:DOCX 页数:14 大小:17.94KB
下载 相关 举报
汇总restore和recover 辨析.docx_第1页
第1页 / 共14页
汇总restore和recover 辨析.docx_第2页
第2页 / 共14页
汇总restore和recover 辨析.docx_第3页
第3页 / 共14页
汇总restore和recover 辨析.docx_第4页
第4页 / 共14页
汇总restore和recover 辨析.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

汇总restore和recover 辨析.docx

《汇总restore和recover 辨析.docx》由会员分享,可在线阅读,更多相关《汇总restore和recover 辨析.docx(14页珍藏版)》请在冰豆网上搜索。

汇总restore和recover 辨析.docx

汇总restore和recover辨析

 

GuidelinetorestorerecoveraTru645

整理表

 

姓名:

职业工种:

申请级别:

受理机构:

填报日期:

A4打印/修订/内容可编辑

Guidelinetorestore/recoveraTru645.1BClusterfromadisaster(data/storagearegone)

(Thisprocedurecanalsobeusedforstoragemigration)

 

 

Reasonofthisdocument

ThisdocumentdescribesoneofthepossibleproceduresusedtorecoveraTru64Unixcluster(actuallybesideVMStheonlyrealone)formatotaldatalosslet’ssaythewholestorageandordataisgone.

 

 

Therequiredresourcesarethenewstoragehardwareandnotnecessarybutmakesiteasier,thelocalinstallationdiskcontainingabootableTru64Unixoperatingsystem.Andofcoursetheactuallbackups.

 

 

Prerequesites

Forasucessfullrestoreoftheclusterthefollowingbackupsindetailarerequiredonalocaltapecartridge.

 

Backupmadebyvdumpofthefollowingfilesystems

/

/usr

/var

/cluster/members/member1/boot_partition,

/cluster/members/member2/boot_partition

andofcoursethedatasofyourapplications.

 

Forsuretarordumpwouldalsowork(yesLegato,Vertiasoranyotherbackupworksaswell,butyouneedtoinstalltherequiredclientonyourInst.diskfirst)

 

Alistof#hwmgr-viewdevicestofigureoutthemajor,minornumbersofthedisksattachedtothefunctionalcluster.Bythewayit’sallwaysagoodideatohaveanuptodatesys_checkoutput.

 

Acopyoftheshellscriptcleanup_hwdb.shonthelocalbootableUnixsystemdisk.

 

 

BootingtheinstallationdiskandwippingouttheoldHWdatabase

 

Bootyourlocaldisk(alsoknownastheclusterinstdiskinmostcasesaninternaldiskofclustermember1)

>>>bdkx0

Ifyoudon’thaveanymoreyourinstallationdisk,installtheUnixtoanewdiskandskipthecleanup_hwdbpart

 

Copyorifalreadythereexecutethescriptcleanup_hwdb.sh(cleansupthedevicedBonthelocalbootdisk)

#./cleanup_hwdb.sh

 

Thesystemwillbeshutdownbythescript.

 

BootgenvmunixtosingleusermodethisstepwillcreateanewHWdatabase

 

>>>bdkx0-figenvmunix-fls

#mountroot(createsallthedevicefiles)

#hwmgr-showscsi

 

IdentifyandwritedowntheinfosofthenewQuorumdiskandthebootdisks.

 

 

Movingthenewdiskstothedisknamestheyhadonthecluster:

 

#dsfmgr-mdskxdsky

#hwmgr-delcomp-idxx

 

 

Writingthedefaultdisklabeltothenewdisks:

 

#disklabel-wrdsk1(boot-member1)

#disklabel-wrdsk2(boot-member2)

#disklabel-wrdsk3(cluster-rootcluster-usrcluster-var)

#disklabel-wrdsk4(Quorum-disk)

 

 

Modifyingthecluster_root,cluster_usrandcluster_varpartitionforyourrequirements(infosfromanuptodatesys_checkoutput):

 

Mountusrandvarofyourinstallationdisk

#mount/usr

#mount/var

 

Settheenvironmentalvariablesrequiredforvi

#exportTERM=vt100

#exportEDITOR=vi

#disklabel-edsk3(adjustthepartitiontoyourrequirements)

 

 

Creatingthedomainsforcluster_root,cluster_usrandcluster_varmountingthemandrestoringthevdumps.

 

Ifthedomaindirectoriesalreadyexists(ontheinstallationdisktheydo)removethemfirst,orusethe-foption.

 

#mkfdmn/dev/disk/dsk3acluster_root

#mkfsetcluster_rootroot

#mkdir/cluster_rootifnotalreadyexists

#mountcluster_root#root/cluster_root

#vrestore-xf/dev/ntape/tape0-D/cluster_root

 

 

#mkfdmn/dev/disk/dsknxcluster_usr

#mkfsetcluster_usrusr

#mkdir/cluster_usrifnotalreadyexists

#mountcluster_usr#usr/cluster_usr

#vrestore-xf/dev/ntape/tape0-D/cluster_usr

 

#mkfdmn/dev/disk/dsknxcluster_var

#mkfsetcluster_varvar

#mkdir/cluster_varifnotalreadyexists

#mountcluster_var#var/cluster_var

#vrestore-xf/dev/ntape/tape0-D/cluster_var

 

 

AdjustingtheAdvFSdomainlinksifthedevicenamingoftherestoredclusterisn’tanymoreasitwasontheoriginalcluster:

 

#cd/cluster_root/etc/fdmns/cluster_root

#rm*

#ln-s/dev/disk/dsk3a

 

#cd/cluster_root/etc/fdmns/cluster_usr

#rm*

#ln-s/dev/disk/dsk3d

 

#cd/cluster_root/etc/fdmns/cluster_var

#rm*

#ln-s/dev/disk/dsk3e

 

#cd/cluster_root/etc/fdmns/root1_domain

#rm*

#ln-s/dev/disk/dsk1a

 

#cd/cluster_root/etc/fdmns/root2_domain

#rm*

#ln-s/dev/disk/dsk2a

 

 

Creatingtheboot_disks:

 

Weneedtocreatethebootpartitiona:

theswappartitionb:

andthenCNXpartitionh:

onthenewbootdisks.

 

#clu_bdmgr-cdsk11

#clu_bdmgr-cdsk22

 

 

Restoringandmodifyingmember_boot_partitionofmember1:

 

#mkdir/root1

#mountroot1_domain#root/root1

#vrestore-xf/dev/ntape/tape0-D/root1

 

Gettheinfosneededforthememberbootdisksysconfigtab:

#file/dev/disk/dsk1h(member1cnxpartition)/dev/disk/dsk1h:

blockspecial(19/63)

#file/dev/disk/dsk5h(quorumcnxpartition)/dev/disk/dsk5h:

blockspecial(19/111)

#file/dev/disk/dsk3a(clusterrootpartition)/dev/disk/dsk3a:

blockspecial(19/135)

 

Modify/root1/etc/sysconfigtab:

swapdevice=/dev/disk/dsk1b

cluster_seqdisk_minor=63

cluster_qdisk_minor=111

 

Restoringandmodifyingmember_boot_partitionofmember2:

 

#mkdir/root2

#mountroot2_domain#root/root2

#vrestore-xf/dev/ntape/tape0-D/root2

 

Gettheinfosneededforthememberbootdisksysconfigtab:

 

#file/dev/disk/dsk2h(member2cnxpartition)/dev/disk/dskxh:

blockspecial(19/64)

#file/dev/disk/dsk5h(quorumcnxpartition)/dev/disk/dskxh:

blockspecial(19/111)

 

#file/dev/disk/dsk3a(clusterrootpartition)/dev/disk/dskxb:

blockspecial(19/35)

 

Modify/root2/etc/sysconfigtab:

swapdevice=/dev/disk/dsk2b

cluster_seqdisk_minor=64

cluster_qdisk_minor=111

 

 

Adjustingtheclu_bdmgrconfigfile,forthenewcluster_rootdisk:

 

#cat/root1/etc/clu_bdmgr.conf

#clu_bdmgrconfigurationfile

#DONOTEDITTHISFILE

:

:

TYP:

m:

CFS:

/dev/disk/dskxb:

:

 

#vi/root1/etc/clu_bdmgr.conf(changedskxntodsk3a)

#vi/root2/etc/clu_bdmgr.conf(changedskxntodsk3a)

 

DumpingthenewconnectionmanagerinfostothememberbootdisksCNXpartitions:

 

#clu_bdmgr-hdsk1/root1/etc/clu_bdmgr.conf

#clu_bdmgr-hdsk2/root2/etc/clu_bdmgr.conf

Deletingtheoldmember1specifichwdbonmember1bootdiskandtherestoredcluster_root:

 

#rm/root1/etc/dec*

#rm/root1/etc/ddr*

#rm/cluster_root/etc/dfsc*

#rm/cluster_root/etc/dec_unid_db*

#rm/cluster_root/etc/dec_hwc_cdb*

#rm/cluster_root/etc/dccd*

#rm/cluster_root/etc/dcdd*

#rm/cluster_root/cluster/members/member1/.Booted

#rm/cluster_root/cluster/members/member1/etc/dfsl*

#rm/cluster_root/cluster/members/member1/etc/cfginfo

#rm/cluster_root/cluster/members/member1/dev/tty0*

#rm/cluster_root/cluster/members/member1/dev/lp*

#rm/cluster_root/cluster/members/member1/dev/kevm*

#rm/cluster_root/cluster/members/member1/dev/scp*

#rm/cluster_root/cluster/members/member1/dev/disk

#rm/cluster_root/cluster/members/member1/dev/rdisk

#rm/cluster_root/cluster/members/member1/dev/ntape

#rm/cluster_root/cluster/members/member1/dev/tape

#rm-R/cluster_root/devices/disk

#rm-R/cluster_root/devices/rdisk

#rm-R/cluster_root/devices/tape

#rm-R/cluster_root/devices/ntape

 

 

Copyingtheadjustedhwdbfromtheinstallationdisktothemember1bootdiskandthecluster_rootdisk:

 

#cp/etc/dfsc*/cluster_root/etc/

#cp/etc/dec_unid_db*/cluster_root/etc/

#cp/etc/dec_hwc_cdb*/cluster_root/etc/

#cp/etc/dccd*/cluster_root/etc/

#cp/etc/dcdd*/cluster_root/etc/

#cp/etc/ddr*/root1/etc/

#cp/etc/dec_devsw*/root1/etc/

#cp/etc/dec_hw_db*/root1/etc/

#cp/etc/dec_hwc_ldb*/root1/etc/

#cp/etc/dec_scsi*/root1/etc/

#cp/etc/dfsl*/cluster_root/cluster/members/member1/etc/

#cp/etc/cfginfo/cluster_root/cluster/members/member1/etc/

 

 

Modifyingthedisklabelsonthebootdisksfortheswappartitions:

 

Ifyourdecidedswapsizeislargerthan8GByoumayneedtoadjustpartitionb:

ofyournewmemberbootdisks

 

 

Shutdownthesystemandbootthesystemfromthemember1bootdisk1:

I’msureyouneedtoadjustyourWWIDMGRconfigifyouuseFiberstorage:

wwidmgr-quicksetandsoon…

 

 

#shutdown-hnow

>>>b-fl"is"-figenvmunixdkxn

PressReturntobootdefaultkernel'genvmunix':

genvmunixclubase:

cluster_expected_votes=1

clubase:

cluster_qdisk_votes=0

 

Ignoresomeerrormessagesaboutmagicnumbersandthenotfoundswappartition

 

#mountroot

#dsfmgr-vFV(verifiesandfixesHWdBfiles)

#mount-a(Ignoreerrormessagesaboutthefilesystemsnormallycontainingyourapplicationdatas.

#init3

 

Logintosystem:

#clu_get_info

#clu_quorum

 

 

Deletingtheoldmember2specifichwdbonmember2bootdiskandtherestoredcluster_root:

 

#mountroot2_domain#root/mnt

#rm/mnt/etc/dec*

#rm/cluster/members/member2/.Booted

#rm/cluster/members/member2/etc/dfsl*

#rm/cluster/members/member2/etc/cfginfo

#rm-rf/cluster/members/member2/dev/[a-z]*

#cd/cluster/members/member2/dev/

#./MAKEDEVstd

 

Creatingandmovingthegenesisdatabaseformember2tomemberbootdisk

 

Saveboot1cnxpartitiontoafile

#clu_bdmgr-ddsk1>/tmp/dsk1.bd

Dumpthefiletocnxpartitionofmember2

#/usr/sbin/cluster/clu_partmgr-mg/tmp/dsk1.bddsk2

 

Copythegenesisdatabasetomember2bootdisk

#mv/etc/dec_hwc_genesis*/mnt/etc/

 

Bootingmember2genvmunix

 

#cd/

#umount/mnt

 

>>>b-fl"is"-figenvmunixdkxy

PressReturntobootdefaultkernel'genvmunix':

genvmunixclubase:

cluster_expected_votes=1

clubase:

cluster_qdisk_votes=0

youmaysafelyignoremessagesaboutenumerateadvfsdevts

 

#mountrootcreatesthelocaldevices

#dsfmgr-K

#dsfmgr-vFV

#hwmgrshowscsi(verifythedevices)

#^d(bootsystemto

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

当前位置:首页 > 表格模板 > 调查报告

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

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