AIX上移除和替换硬盘的标准步骤Word文档下载推荐.docx
- 文档编号:18033520
- 上传时间:2022-12-13
- 格式:DOCX
- 页数:6
- 大小:18.56KB
AIX上移除和替换硬盘的标准步骤Word文档下载推荐.docx
《AIX上移除和替换硬盘的标准步骤Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《AIX上移除和替换硬盘的标准步骤Word文档下载推荐.docx(6页珍藏版)》请在冰豆网上搜索。
2.Removethephysicalvolumefromthevolumegroup.
3.Removethedefinitionforthediskfromthedeviceconfigurationdatabase.
Thesestepsareoutlinedinmoredetailinsubsequentsections.
Ifthereisjustonediskinthevolumegroup,proceedtothenextsection,"
Howtoproceedifthevolumegrouphasjustonedisk."
Otherwise,proceedtothesectionentitled"
Deallocatingphysicalpartitionsfromthedisk."
Howtoproceedifthevolumegrouphasjustonedisk
Ifthedrivetobereplacedistheonlydriveinthevolumegroup,thenremovethevolumegroupdefinitionwith:
exportvg<
VGname>
Atthispoint,removethediskdefinitionusingthermdevcommand.Detailsareincludedinthesection"
Removingthediskdefinitionfromthesystem"
inthisdocument.
Checkingtoseewhatquorumissetto
Ifyourvolumegroupismirrored,youcouldhavedisabledquorum.ThepurposeofquorumisexplainedintheIBMRedbook:
LVM:
IntroductionandConcepts.Hereisanexcerpt:
AquorumisavoteofthenumberofVolumeGroupDescriptorAreasandVolumeGroupStatusAreas(VGDA/VGSA)thatareactive.Aquorumensuresdataintegrityintheeventofadiskfailure.EachphysicaldiskinavolumegrouphasatleastoneVGDA/VGSA.Whenavolumegroupiscreatedontoasingledisk,itinitiallyhastwoVGDA/VGSAareasresidingonthedisk.Ifavolumegroupconsistsoftwodisks,onediskstillhastwoVGDA/VGSAareas,buttheotherdiskhasoneVGDA/VGSA.Whenthevolumegroupismadeupofthreeormoredisks,theneachdiskisallocatedoneVGDA/VGSA.
AquorumislostwhenenoughdisksandtheirVGDA/VGSAareasareunreachablesothata51%majorityofVGDA/VGSAareasnolongerexists.Inatwo-diskvolumegroup,ifthediskwithonlyoneVGDA/VGSAislost,aquorumstillexistsbecausetwoofthethreeVGDA/VGSAareasstillarereachable.IfthediskwithtwoVGDA/VGSAareasislost,thisstatementisnolongertrue.Themoredisksthatmakeupavolumegroup,thelowerthechancesofquorumbeinglostwhenonediskfails.
lsvgtestvg-->
checktoseeifQuorumissetto1
VOLUMEGROUP:
testvgVGIDENTIFIER:
00097c7f00004c00000000f4a163bc7b
VGSTATE:
activePPSIZE:
16megabyte(s)
VGPERMISSION:
read/writeTOTALPPs:
1084(17344megabytes)
MAXLVs:
256FREEPPs:
998(15968megabytes)
LVs:
12USEDPPs:
86(1376megabytes)
OPENLVs:
9QUORUM:
1
TOTALPVs:
2VGDESCRIPTORS:
3
STALEPVs:
1STALEPPs:
ACTIVEPVs:
2AUTOON:
yes
MAXPPsperPV:
2032MAXPVs:
16
Ifreplacingthediskdriveimmediately,thenyoumaynothavetoturnquorumbackon.Themirrorvgcommandautomaticallyturnsquorumoffandtheunmirrorvgcommandautomaticallyturnsquorumon.Ifyouaredealingwithrootvg,theonlywaytohaveachangeinquorumtakeeffect,istoreboot.Ifthisisanon-rootvgvolumegroup,quorumcanbechangedbyvaryingoffthevolumegroupandthenvaryingitbackon.Tochangequorumfromthecommandline,runthefollowing:
chvg-Qnvgname-->
turnsquorumoff
chvg-Qyvgname-->
turnsquorumon
Inordertovaryoffavolumegroup,unmountallfilesystemsandmakesurealllogicalvolumesareinaclosedstate.Enter:
lsvg-ltestvg
LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINT
testlvjfs2111closed/sync'
d/testfs
loglv00jfs2log111closed/sync'
dN/A
Onceallthelogicalvolumesareclosed,runthefollowing:
varyoffvgvgname
varyonvgvgname
Thenewquorumchangewillbeineffect.
Deallocatingphysicalpartitionsfromthedisk
Everyphysicalpartition(PP)onthediskallocatedtoanylogicalvolume(LV),includingfilesystemsorpagingspaces,mustbedeallocated,eitherbymovingthecontentsofthosePPstoanotherdiskorbyremovingthem.
TodeterminewhatlogicalvolumeshavePPsallocatedtothatdisk,run:
lspv-l<
hdisk#>
Ifthehdisknamenolongerexists,andthediskisidentifiableonlybyits16-digitPVID(youmightseethisfromtheoutputoflsvg-p<
),substitutethePVIDforthediskname.Forexample:
lspv-l0123456789abcdef
Youmayreceivethefollowingerror:
0516-320:
Physicalvolume00001165a97b10c6isnotassignedto
avolumegroup.
Ifso,runthefollowingcommand:
putlvodm-p`getlvodm-v<
`<
PVID>
VGnamereferstoyourvolumegroup,PVIDreferstothe16-digitphysicalvolumeidentifier,andthecharactersaroundthegetlvodmcommandaregravemarks,thebackwardsinglequotemark.Thelspv-l<
commandshouldnowrunsuccessfully.
Ifanotherdiskinthevolumegrouphasspacetocontainthepartitionsonthisdisk,andthedisktobereplacedhasnotfailed,themigratepvcommandmaybeusedtomovetheusedPPsonthisdisk.Seethemanpageforthemigratepvcommandonthestepstodothis.
Ifthepartitionscannotbemigrated,theymustberemoved.Theoutputofthelspv-l<
orlspv-l<
commandindicateswhatlogicalvolumeswillbeaffected.RunthefollowingcommandoneachLV:
lslv<
LVname>
TheCOPIESfieldshowsiftheLVismirrored.Ifso,removethefailedcopywith:
rmlvcopy<
1<
hdisk#referstoallthedisksinthecopythatcontainthefaileddisk.Alistofdrivescanbespecifiedwithaspacebetweeneach.Usethelslv-m<
commandtoseewhatotherdisksmayneedtobelistedinthermlvcopycommand.IfthediskPVIDwaspreviouslyusedwiththelspvcommand,specifythatPVIDinthelistofdisksgiventothermlvcopycommand.AtAIXVersion4.2.1orhigher,theunmirrorvgcommandmaybeusedinlieuofthermlvcopycommand.Seethemanpagesforrmlvcopyandunmirrorvg,orotherdocumentation,foradditionalinformation.
IftheLVisnotmirrored,theentirelogicalvolumemustberemoved,evenifjustonephysicalpartitionresidesonthedrivetobereplacedandcannotbemigratedtoanotherdisk.IftheunmirroredLVisaJFSfilesystem,unmountthefilesystemandremoveit.Enter:
umount/<
fsname>
rmfs/<
Iftheunmirroredlogicalvolumeisapagingspace,seeifitisactive.Enter:
lsps-a
Ifitisactive,setittobeinactiveonthenextreboot.Enter:
chps-an<
Afteryoureboot,removeitbyentering:
rmps<
Removeanyotherunmirroredlogicalvolumewiththefollowingcommand:
rmlv<
NOTE:
IftheLVisservingasadumpdevice,thedumppointermustfirstbereassigned.ThesameistrueiftheLVwasmirroredandthecopyisbeingremoved.Checkthedumppointersbyentering:
sysdumpdev-l
Reassignthedumppointers.Enter:
sysdumpdev-Pp/dev/sysdumpnull
(fortheprimarydevice)
sysdumpdev-Ps/dev/sysdumpnull
(forthesecondarydevice)
Thepointerscanbereassignedtotheappropriatelogicalvolumeafteritisrecreated.
Deletingthediskfromthevolumegroup
UsingeitherthePVIDorthehdiskname,dependingonwhichwasusedwhenrunninglspv-l<
intheprecedingdiscussion,runoneofthefollowing:
reducevg-f<
<
IfyouusedthePVIDvalueandifthereducevgcommandcomplainsthatthePVIDisnotinthedeviceconfigurationdatabase,runthefollowingcommandtoseeifthediskwasindeedsuccessfullyremoved:
lsvg-p<
IfthePVIDordiskisnotlistedatthispoint,thenignoretheerrorsfromthereducevgcommand.
Removingthediskdefinitionfromthesystem
Removethehdisk.Enter:
rmdev-dl<
IfthediskwasanSSAdisk,deletethepdisk.Enter:
pdisk#>
IfthediskwasanSSAdisk,determinewhichpdisknumbercorrespondstothehdisk.Theeasiestwaytodothisisbyusingthessaxlatecommands.Enterthefollowing:
ssaxlate-lhdisk#-->
showsthepdisk#(s)definition
ssaxlate-lpdisk#-->
showsthehdisk#definition
Anotherwaytodothisiswiththefollowingcommands:
lsdev-Ccdisk-Fname'
'
connwhere
lsdev-Ccpdisk-Fname'
SeewhichSSAdiskserialnumbercoincideswiththehdisktoremove.Ifthehdiskdoesnotappear,oriftheuserhasbeenworkingwithaPVIDvalueuptothispoint,thepdiskwhoseserialnumberdoesnotcoincidewithanyofthehdisksislikelytobethedisktoremove.OtherSSAcommandsmightprovideadditionalinformation.ConsulttheSSAdocumentation.
IfyouhavebeenworkingwithaPVIDvalueratherthanwithanhdiskname,ensurethatthePVIDisremovedfromtheODMwiththefollowingcommand.The32-digitvaluesuppliedconsistsofthePVIDplus16zeros.Forexample:
odmdelete-qvalue=0073659c2c6d26f100000000000
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- AIX 上移 替换 硬盘 标准 步骤