当前位置:网站首页>Oracle RAC configuration multipathing

Oracle RAC configuration multipathing

2022-06-24 14:40:00 It bond

Keep creating , Accelerate growth ! This is my participation 「 Nuggets day new plan · 6 Yuegengwen challenge 」 Of the 31 God , Click to see the event details


hello ! Hello everyone , I am a 【IT bond 】, Jianghu people jeames007,10 year DBA Work experience
China DBA union (ACDU) member , Currently engaged in DBA And program programming
Good at Oracle、MySQL、PG Operations and development , Backup recovery , Installation migration , performance optimization 、 Emergency treatment of failure .
️️️ Thank you, big and small !️️️

Abstract :Oracle RAC Configure multipathing , This paper makes a detailed description

1 install multipath

[[email protected] ~]# rpm -qa | grep device-mapper

 If not, execute the following command to install :
yum install -y device-mapper*

2 Generate configuration files

mpathconf --enable --with_multipathd y

 see scsi_id
[[email protected] ~]# /usr/lib/udev/scsi_id -g -u /dev/sdb
36000c29f7e6ca7c54bd3ad4d2a2b8939
[[email protected] ~]# /usr/lib/udev/scsi_id -g -u /dev/sdc
36000c2970b50cdffdc8e547c8a87938d
[[email protected] ~]# /usr/lib/udev/scsi_id -g -u /dev/sdd
36000c292f6145f1679dcb64d20c7499e
[[email protected] ~]# /usr/lib/udev/scsi_id -g -u /dev/sde
36000c29c6f447f602411b8adabfe82a9
[[email protected] ~]# /usr/lib/udev/scsi_id -g -u /dev/sdf
36000c29937fecda3c66ce8a02e9a9d9d
[[email protected] ~]# /usr/lib/udev/scsi_id -g -u /dev/sdg
36000c29541e4d4e620c8326c45b51dd4
[[email protected] ~]# multipath -v3

 To configure multipath,wwid  The value of is obtained above  scsi_id,alias  Customizable ,
 Configuration here  3  block  OCR  disc ,2 block DATA disc , A piece of  ARCH  disc .

cp /etc/multipath.conf /etc/multipath.conf.bak

 The initialization configuration file contains the following :
defaults {
        user_friendly_names yes
        find_multipaths yes
}
blacklist {
}

 The following needs to be in  blacklist  Add a row  devnode  Information 
cat <<EOF>> /etc/multipath.conf
blacklist {
  devnode "^sda"
}

multipaths {
  multipath {
  wwid "36000c29f7e6ca7c54bd3ad4d2a2b8939"
  alias asm_ocr01
  }
  multipath {
  wwid "36000c2970b50cdffdc8e547c8a87938d"
  alias asm_ocr02
  }
  multipath {
  wwid "36000c292f6145f1679dcb64d20c7499e"
  alias asm_ocr03
  }
  multipath {
  wwid "36000c29c6f447f602411b8adabfe82a9"
  alias asm_data01
  }  
  multipath {
  wwid "36000c29937fecda3c66ce8a02e9a9d9d"
  alias asm_data02
  }
  multipath {
  wwid "36000c29541e4d4e620c8326c45b51dd4"
  alias asm_arch01
  }
}
EOF

3 Activate multipath Multipath

multipath -F
multipath -v2

multipath -ll

4 Check the status

systemctl status multipathd.service

5 Boot up service

systemctl enable multipathd.service
[[email protected] ~]# multipath -v3 | grep 3600
[[email protected] ~]# mpathconf

原网站

版权声明
本文为[It bond]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241413526766.html