In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
AIX rootvg mirror is what and how to replace the hard disk, I believe that many inexperienced people are helpless, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
1. Mirror image
Suppose the host has two hard disks hdisk0 and hdisk1, and the system is installed on hdisk0.
#Clear PVID, not necessary, implemented more secure
chdev -l hdisk1 -a pv=clear
chdev -l hdisk1 -a pv=yes
extendvg rootvg hdisk1
#-S for background synchronization
mirrorvg -S rootvg hdisk1
#View LV STATE, all stales become syncd, indicating synchronization is complete. PPs=2 times LPs, indicating that LV has a mirror image. lg_dumplv is the dumplv of the system, which is generally not mirrored. Mirrorvg will mirror it only when lv and dummlv of the page space are the same lv.
lsvg -l rootvg
#Create a boot record
bosboot -ad /dev/hdisk1
#Set the boot sequence
bootlist -m normal hdisk0 hdisk1
#vg After finishing mirror, quorum will automatically disable to ensure that VG can still automatically varyon after one of the two disks is broken.
lsvg rootvg
#Restart is for quorum disable to take effect
shutdown -Fr
2. Replace hard disk
Suppose hdisk0 fails.
unmirrorvg rootvg hdisk0
#Get guidance information
chpv -c hdisk0
#If lg_dumplv is on hdisk0, move it to hdisk1
migratepv -l lg_dumplv hdisk0 hdisk1
#Remove hdisk0 from rootvg
reducevg rootvg hdisk0
rmdev -Rdl hdisk0
#Check if hdisk0 still exists
lspv
lscfg -vl hdisk0
#Determine hard disk location
#smitty diag>
#Task Selection>
#Hot Plug Task>
#SCSI and SCSI RAID Hot Plug Manager>
#Identify a Device Attached to a SCSI Hot Swap Enclosure Device>
#hdiskX
At this point hdiskX's hard drive will light up red
replace the hard drive
#Identify hard disk
cfgmgr
#The following steps are the same as mirroring, but there is no need to restart, because quorum disable has already taken effect
extendvg rootvg hdisk0
mirrorvg -S rootvg hdisk0
lsvg -l rootvg
bosboot -ad /dev/hdisk0
bootlist -m normal hdisk0 hdisk1
III. About lg_dumplv
#Migration
migratepv -l lg_dumplv hdisk0 hdisk1
#OK, if you want to replace hdsik0, you can also omit step 2
sysdumpdev -Pp /dev/sysdumpnull#reassign the primary dump device
2、rmlv lg_dumplv
3、mklv -t sysdump -y lg_dumplv rootvg 16 hdisk1
sysdumpdev -Pp /dev/lg_dumplv#refers back to the master dump device
--------------------------------
AIX If paging swap and dump device are different, the system does not mirror dump device(The system dump devices "primary /dev/hd6 and secondary /dev/sysdumpnull" should not be mirrored.), The following is the information about the dump device under normal system conditions:
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 244 488 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 8 16 2 open/syncd /
hd2 jfs2 40 80 2 open/syncd /usr
hd9var jfs2 40 80 2 open/syncd /var
hd3 jfs2 16 32 2 open/syncd /tmp
hd1 jfs2 40 80 2 open/syncd /home
hd10opt jfs2 80 160 2 open/syncd /opt
lg_dumplv sysdump 16 16 1 open/syncd N/A
# sysdumpdev -l
primary /dev/lg_dumplv
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE always
allow dump FALSE
dump compression ON
# lslv -l lg_dumplv
lg_dumplv:N/A
PV COPIES IN BAND DISTRIBUTION hdisk0 016:000:000 0% 000:000:000:000:016
After reading the above, do you know what AIX rootvg mirroring is and how to replace a hard drive? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.