LoginSignup
1
3

More than 5 years have passed since last update.

HA構成の構築

Posted at

2台のLinux(CentOS7)でHA環境を構築し、仕組みを理解する。

1.構築

### 両方で実施
[root@SYSLOG01 ~]# yum install pacemaker pcs

### 両方で実施
[root@SYSLOG01 ~]# systemctl start pcsd

### 両方で実施
[root@SYSLOG01 ~]# systemctl enable pcsd

### 両方で実施
[root@SYSLOG01 ~]# passwd hacluster
    !QAZ2wsx

### 両方で実施
[root@SYSLOG01 ~]# vim /etc/hosts
    xxx.xxx.xxx.xxx SYSLOG01    
    xxx.xxx.xxx.xxx SYSLOG02

### 両方で実施
### https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/high_availability_add-on_reference/s1-firewalls-haar
[root@SYSLOG01 ~]# firewall-cmd --permanent --add-service=high-availability
success
[root@SYSLOG01 ~]# firewall-cmd --add-service=high-availability
success

### SYSLOG01で実施
[root@SYSLOG01 ~]# pcs cluster auth SYSLOG01 SYSLOG02
Username: hacluster
Password: 
syslog02: Authorized
syslog01: Authorized

### SYSLOG01で実施
[root@SYSLOG01 ~]# pcs cluster setup --name SYSLOG-CLUSTER syslog01 syslog02
Destroying cluster on nodes: syslog01, syslog02...
syslog02: Stopping Cluster (pacemaker)...
syslog01: Stopping Cluster (pacemaker)...
syslog02: Successfully destroyed cluster
syslog01: Successfully destroyed cluster

Sending 'pacemaker_remote authkey' to 'syslog01', 'syslog02'
syslog01: successful distribution of the file 'pacemaker_remote authkey'
syslog02: successful distribution of the file 'pacemaker_remote authkey'
Sending cluster config files to the nodes...
syslog01: Succeeded
syslog02: Succeeded

Synchronizing pcsd certificates on nodes syslog01, syslog02...
syslog02: Success
syslog01: Success
Restarting pcsd on the nodes in order to reload the certificates...
syslog02: Success
syslog01: Success

### SYSLOG01で実施
[root@SYSLOG01 ~]# pcs cluster start --all
syslog02: Starting Cluster...
syslog01: Starting Cluster...

### SYSLOG01で実施
[root@SYSLOG01 ~]# pcs status
Cluster name: SYSLOG-CLUSTER
WARNING: no stonith devices and stonith-enabled is not false
Stack: corosync
Current DC: syslog01 (version 1.1.18-11.el7_5.3-2b07d5c5a9) - partition with quorum
Last updated: Sun Aug  5 00:03:29 2018
Last change: Sun Aug  5 00:02:44 2018 by hacluster via crmd on syslog01

2 nodes configured
0 resources configured

Online: [ syslog01 syslog02 ]

No resources


Daemon Status:
  corosync: active/disabled
  pacemaker: active/disabled
  pcsd: active/enabled

### SYSLOG01で実施
[root@SYSLOG01 ~]# pcs property set stonith-enabled=false

### SYSLOG01で実施
[root@SYSLOG01 ~]# pcs status
Cluster name: SYSLOG-CLUSTER
Stack: corosync
Current DC: syslog01 (version 1.1.18-11.el7_5.3-2b07d5c5a9) - partition with quorum
Last updated: Sun Aug  5 00:07:54 2018
Last change: Sun Aug  5 00:07:35 2018 by root via cibadmin on syslog01

2 nodes configured
0 resources configured

Online: [ syslog01 syslog02 ]

No resources


Daemon Status:
  corosync: active/disabled
  pacemaker: active/disabled
  pcsd: active/enabled

### SYSLOG01で実施
### HA構成として監視できるものを全表示
[root@SYSLOG01 ~]# pcs resource list
lsb:netconsole - netconsole
lsb:network - Bring up/down networking
ocf:heartbeat:apache - Manages an Apache Web server instance
ocf:heartbeat:aws-vpc-move-ip - Move IP within a APC of the AWS EC2
ocf:heartbeat:awseip - Amazon AWS Elastic IP Address Resource Agent
ocf:heartbeat:awsvip - Amazon AWS Secondary Private IP Address Resource Agent
ocf:heartbeat:azure-lb - Answers Azure Load Balancer health probe requests
ocf:heartbeat:clvm - clvmd
ocf:heartbeat:conntrackd - This resource agent manages conntrackd
ocf:heartbeat:CTDB - CTDB Resource Agent
ocf:heartbeat:db2 - Resource Agent that manages an IBM DB2 LUW databases in Standard role as primitive or in HADR roles as master/slave configuration. Multiple partitions are supported.
ocf:heartbeat:Delay - Waits for a defined timespan
ocf:heartbeat:dhcpd - Chrooted ISC DHCP server resource agent.
ocf:heartbeat:docker - Docker container resource agent.
ocf:heartbeat:Dummy - Example stateless resource agent
ocf:heartbeat:ethmonitor - Monitors network interfaces
ocf:heartbeat:exportfs - Manages NFS exports
ocf:heartbeat:Filesystem - Manages filesystem mounts
ocf:heartbeat:galera - Manages a galara instance
ocf:heartbeat:garbd - Manages a galera arbitrator instance
ocf:heartbeat:iface-vlan - Manages VLAN network interfaces.
ocf:heartbeat:IPaddr - Manages virtual IPv4 and IPv6 addresses (Linux specific version)
ocf:heartbeat:IPaddr2 - Manages virtual IPv4 and IPv6 addresses (Linux specific version)
ocf:heartbeat:IPsrcaddr - Manages the preferred source address for outgoing IP packets
ocf:heartbeat:iSCSILogicalUnit - Manages iSCSI Logical Units (LUs)
ocf:heartbeat:iSCSITarget - iSCSI target export agent
ocf:heartbeat:LVM - Controls the availability of an LVM Volume Group
ocf:heartbeat:MailTo - Notifies recipients by email in the event of resource takeover
ocf:heartbeat:mysql - Manages a MySQL database instance
ocf:heartbeat:nagios - Nagios resource agent
ocf:heartbeat:named - Manages a named server
ocf:heartbeat:nfsnotify - sm-notify reboot notifications
ocf:heartbeat:nfsserver - Manages an NFS server
ocf:heartbeat:nginx - Manages an Nginx web/proxy server instance
ocf:heartbeat:NodeUtilization - Node Utilization
ocf:heartbeat:oraasm - Oracle ASM resource agent
ocf:heartbeat:oracle - Manages an Oracle Database instance
ocf:heartbeat:oralsnr - Manages an Oracle TNS listener
ocf:heartbeat:pgsql - Manages a PostgreSQL database instance
ocf:heartbeat:portblock - Block and unblocks access to TCP and UDP ports
ocf:heartbeat:postfix - Manages a highly available Postfix mail server instance
ocf:heartbeat:rabbitmq-cluster - rabbitmq clustered
ocf:heartbeat:redis - Redis server
ocf:heartbeat:Route - Manages network routes
ocf:heartbeat:rsyncd - Manages an rsync daemon
ocf:heartbeat:SendArp - Broadcasts unsolicited ARP announcements
ocf:heartbeat:slapd - Manages a Stand-alone LDAP Daemon (slapd) instance
ocf:heartbeat:Squid - Manages a Squid proxy server instance
ocf:heartbeat:sybaseASE - Sybase ASE Failover Instance
ocf:heartbeat:symlink - Manages a symbolic link
ocf:heartbeat:tomcat - Manages a Tomcat servlet environment instance
ocf:heartbeat:VirtualDomain - Manages virtual domains through the libvirt virtualization framework
ocf:heartbeat:Xinetd - Manages a service of Xinetd
ocf:openstack:nova-compute-wait - OpenStack Nova Compute Server
ocf:openstack:NovaEvacuate - Evacuator for OpenStack Nova Compute Server
ocf:pacemaker:attribute - Manages a node attribute
ocf:pacemaker:ClusterMon - Runs crm_mon in the background, recording the cluster status to an HTML file
ocf:pacemaker:controld - DLM Agent for cluster file systems
ocf:pacemaker:Dummy - Example stateless resource agent
ocf:pacemaker:HealthCPU - System health CPU usage
ocf:pacemaker:HealthSMART - SMART health status
ocf:pacemaker:ifspeed - Network interface speed monitor
ocf:pacemaker:ping - node connectivity
ocf:pacemaker:pingd - pingd resource agent
ocf:pacemaker:remote - remote resource agent
ocf:pacemaker:Stateful - Example stateful resource agent
ocf:pacemaker:SysInfo - SysInfo resource agent
ocf:pacemaker:SystemHealth - SystemHealth resource agent
service:arp-ethers - systemd unit file for arp-ethers
service:auditd - systemd unit file for auditd
service:auth-rpcgss-module - systemd unit file for auth-rpcgss-module
service:blk-availability - systemd unit file for blk-availability
service:brandbot - systemd unit file for brandbot
service:chrony-wait - systemd unit file for chrony-wait
service:chronyd - systemd unit file for chronyd
service:console-getty - systemd unit file for console-getty
service:console-shell - systemd unit file for console-shell
service:corosync - systemd unit file for corosync
service:corosync-notifyd - systemd unit file for corosync-notifyd
service:cpupower - systemd unit file for cpupower
service:crm_mon - systemd unit file for crm_mon
service:crond - systemd unit file for crond
service:dbus - systemd unit file for dbus
service:dbus-org.fedoraproject.FirewallD1 - systemd unit file for dbus-org.fedoraproject.FirewallD1
service:dbus-org.freedesktop.hostname1 - systemd unit file for dbus-org.freedesktop.hostname1
service:dbus-org.freedesktop.import1 - systemd unit file for dbus-org.freedesktop.import1
service:dbus-org.freedesktop.locale1 - systemd unit file for dbus-org.freedesktop.locale1
service:dbus-org.freedesktop.login1 - systemd unit file for dbus-org.freedesktop.login1
service:dbus-org.freedesktop.machine1 - systemd unit file for dbus-org.freedesktop.machine1
service:dbus-org.freedesktop.NetworkManager - systemd unit file for dbus-org.freedesktop.NetworkManager
service:dbus-org.freedesktop.nm-dispatcher - systemd unit file for dbus-org.freedesktop.nm-dispatcher
service:dbus.socket - systemd unit file for dbus.socket
service:debug-shell - systemd unit file for debug-shell
service:dm-event - systemd unit file for dm-event
service:dm-event.socket - systemd unit file for dm-event.socket
service:dracut-cmdline - systemd unit file for dracut-cmdline
service:dracut-initqueue - systemd unit file for dracut-initqueue
service:dracut-mount - systemd unit file for dracut-mount
service:dracut-pre-mount - systemd unit file for dracut-pre-mount
service:dracut-pre-pivot - systemd unit file for dracut-pre-pivot
service:dracut-pre-trigger - systemd unit file for dracut-pre-trigger
service:dracut-pre-udev - systemd unit file for dracut-pre-udev
service:dracut-shutdown - systemd unit file for dracut-shutdown
service:ebtables - systemd unit file for ebtables
service:emergency - systemd unit file for emergency
service:firewalld - systemd unit file for firewalld
service:fstrim - systemd unit file for fstrim
service:gssproxy - systemd unit file for gssproxy
service:halt-local - systemd unit file for halt-local
service:initrd-cleanup - systemd unit file for initrd-cleanup
service:initrd-parse-etc - systemd unit file for initrd-parse-etc
service:initrd-switch-root - systemd unit file for initrd-switch-root
service:initrd-udevadm-cleanup-db - systemd unit file for initrd-udevadm-cleanup-db
service:iprdump - systemd unit file for iprdump
service:iprinit - systemd unit file for iprinit
service:iprupdate - systemd unit file for iprupdate
service:irqbalance - systemd unit file for irqbalance
service:kdump - systemd unit file for kdump
service:kmod-static-nodes - systemd unit file for kmod-static-nodes
service:lvm2-lvmetad - systemd unit file for lvm2-lvmetad
service:lvm2-lvmetad.socket - systemd unit file for lvm2-lvmetad.socket
service:lvm2-lvmpolld - systemd unit file for lvm2-lvmpolld
service:lvm2-lvmpolld.socket - systemd unit file for lvm2-lvmpolld.socket
service:lvm2-monitor - systemd unit file for lvm2-monitor
service:messagebus - systemd unit file for messagebus
service:microcode - systemd unit file for microcode
service:netconsole - netconsole
service:network - Bring up/down networking
service:NetworkManager - systemd unit file for NetworkManager
service:NetworkManager-dispatcher - systemd unit file for NetworkManager-dispatcher
service:NetworkManager-wait-online - systemd unit file for NetworkManager-wait-online
service:nfs - systemd unit file for nfs
service:nfs-blkmap - systemd unit file for nfs-blkmap
service:nfs-config - systemd unit file for nfs-config
service:nfs-idmap - systemd unit file for nfs-idmap
service:nfs-idmapd - systemd unit file for nfs-idmapd
service:nfs-lock - systemd unit file for nfs-lock
service:nfs-mountd - systemd unit file for nfs-mountd
service:nfs-rquotad - systemd unit file for nfs-rquotad
service:nfs-secure - systemd unit file for nfs-secure
service:nfs-server - systemd unit file for nfs-server
service:nfs-utils - systemd unit file for nfs-utils
service:nfslock - systemd unit file for nfslock
service:pacemaker - systemd unit file for pacemaker
service:pcsd - systemd unit file for pcsd
service:plymouth-halt - systemd unit file for plymouth-halt
service:plymouth-kexec - systemd unit file for plymouth-kexec
service:plymouth-poweroff - systemd unit file for plymouth-poweroff
service:plymouth-quit - systemd unit file for plymouth-quit
service:plymouth-quit-wait - systemd unit file for plymouth-quit-wait
service:plymouth-read-write - systemd unit file for plymouth-read-write
service:plymouth-reboot - systemd unit file for plymouth-reboot
service:plymouth-start - systemd unit file for plymouth-start
service:plymouth-switch-root - systemd unit file for plymouth-switch-root
service:polkit - systemd unit file for polkit
service:postfix - systemd unit file for postfix
service:quotaon - systemd unit file for quotaon
service:rc-local - systemd unit file for rc-local
service:rdisc - systemd unit file for rdisc
service:rescue - systemd unit file for rescue
service:rhel-autorelabel - systemd unit file for rhel-autorelabel
service:rhel-autorelabel-mark - systemd unit file for rhel-autorelabel-mark
service:rhel-configure - systemd unit file for rhel-configure
service:rhel-dmesg - systemd unit file for rhel-dmesg
service:rhel-domainname - systemd unit file for rhel-domainname
service:rhel-import-state - systemd unit file for rhel-import-state
service:rhel-loadmodules - systemd unit file for rhel-loadmodules
service:rhel-readonly - systemd unit file for rhel-readonly
service:rpc-gssd - systemd unit file for rpc-gssd
service:rpc-rquotad - systemd unit file for rpc-rquotad
service:rpc-statd - systemd unit file for rpc-statd
service:rpc-statd-notify - systemd unit file for rpc-statd-notify
service:rpcbind - systemd unit file for rpcbind
service:rpcbind.socket - systemd unit file for rpcbind.socket
service:rpcgssd - systemd unit file for rpcgssd
service:rpcidmapd - systemd unit file for rpcidmapd
service:rsyncd - systemd unit file for rsyncd
service:rsyncd.socket - systemd unit file for rsyncd.socket
service:rsyslog - systemd unit file for rsyslog
service:sshd - systemd unit file for sshd
service:sshd-keygen - systemd unit file for sshd-keygen
service:sshd.socket - systemd unit file for sshd.socket
service:svnserve - systemd unit file for svnserve
service:syslog.socket - systemd unit file for syslog.socket
service:systemd-ask-password-console - systemd unit file for systemd-ask-password-console
service:systemd-ask-password-plymouth - systemd unit file for systemd-ask-password-plymouth
service:systemd-ask-password-wall - systemd unit file for systemd-ask-password-wall
service:systemd-binfmt - systemd unit file for systemd-binfmt
service:systemd-bootchart - systemd unit file for systemd-bootchart
service:systemd-firstboot - systemd unit file for systemd-firstboot
service:systemd-fsck-root - systemd unit file for systemd-fsck-root
service:systemd-halt - systemd unit file for systemd-halt
service:systemd-hibernate - systemd unit file for systemd-hibernate
service:systemd-hostnamed - systemd unit file for systemd-hostnamed
service:systemd-hwdb-update - systemd unit file for systemd-hwdb-update
service:systemd-hybrid-sleep - systemd unit file for systemd-hybrid-sleep
service:systemd-importd - systemd unit file for systemd-importd
service:systemd-initctl - systemd unit file for systemd-initctl
service:systemd-initctl.socket - systemd unit file for systemd-initctl.socket
service:systemd-journal-catalog-update - systemd unit file for systemd-journal-catalog-update
service:systemd-journal-flush - systemd unit file for systemd-journal-flush
service:systemd-journald - systemd unit file for systemd-journald
service:systemd-journald.socket - systemd unit file for systemd-journald.socket
service:systemd-kexec - systemd unit file for systemd-kexec
service:systemd-localed - systemd unit file for systemd-localed
service:systemd-logind - systemd unit file for systemd-logind
service:systemd-machine-id-commit - systemd unit file for systemd-machine-id-commit
service:systemd-machined - systemd unit file for systemd-machined
service:systemd-modules-load - systemd unit file for systemd-modules-load
service:systemd-poweroff - systemd unit file for systemd-poweroff
service:systemd-quotacheck - systemd unit file for systemd-quotacheck
service:systemd-random-seed - systemd unit file for systemd-random-seed
service:systemd-readahead-collect - systemd unit file for systemd-readahead-collect
service:systemd-readahead-done - systemd unit file for systemd-readahead-done
service:systemd-readahead-drop - systemd unit file for systemd-readahead-drop
service:systemd-readahead-replay - systemd unit file for systemd-readahead-replay
service:systemd-reboot - systemd unit file for systemd-reboot
service:systemd-remount-fs - systemd unit file for systemd-remount-fs
service:systemd-shutdownd - systemd unit file for systemd-shutdownd
service:systemd-shutdownd.socket - systemd unit file for systemd-shutdownd.socket
service:systemd-suspend - systemd unit file for systemd-suspend
service:systemd-sysctl - systemd unit file for systemd-sysctl
service:systemd-tmpfiles-clean - systemd unit file for systemd-tmpfiles-clean
service:systemd-tmpfiles-setup - systemd unit file for systemd-tmpfiles-setup
service:systemd-tmpfiles-setup-dev - systemd unit file for systemd-tmpfiles-setup-dev
service:systemd-udev-settle - systemd unit file for systemd-udev-settle
service:systemd-udev-trigger - systemd unit file for systemd-udev-trigger
service:systemd-udevd - systemd unit file for systemd-udevd
service:systemd-udevd-control.socket - systemd unit file for systemd-udevd-control.socket
service:systemd-udevd-kernel.socket - systemd unit file for systemd-udevd-kernel.socket
service:systemd-update-done - systemd unit file for systemd-update-done
service:systemd-update-utmp - systemd unit file for systemd-update-utmp
service:systemd-update-utmp-runlevel - systemd unit file for systemd-update-utmp-runlevel
service:systemd-user-sessions - systemd unit file for systemd-user-sessions
service:systemd-vconsole-setup - systemd unit file for systemd-vconsole-setup
service:tcsd - systemd unit file for tcsd
service:tuned - systemd unit file for tuned
service:vgauthd - systemd unit file for vgauthd
service:vmtoolsd - systemd unit file for vmtoolsd
service:wpa_supplicant - systemd unit file for wpa_supplicant
systemd:arp-ethers - systemd unit file for arp-ethers
systemd:auditd - systemd unit file for auditd
systemd:auth-rpcgss-module - systemd unit file for auth-rpcgss-module
systemd:autovt@ - systemd unit file for autovt@
systemd:blk-availability - systemd unit file for blk-availability
systemd:brandbot - systemd unit file for brandbot
systemd:chrony-dnssrv@ - systemd unit file for chrony-dnssrv@
systemd:chrony-wait - systemd unit file for chrony-wait
systemd:chronyd - systemd unit file for chronyd
systemd:console-getty - systemd unit file for console-getty
systemd:console-shell - systemd unit file for console-shell
systemd:container-getty@ - systemd unit file for container-getty@
systemd:corosync - systemd unit file for corosync
systemd:corosync-notifyd - systemd unit file for corosync-notifyd
systemd:cpupower - systemd unit file for cpupower
systemd:crm_mon - systemd unit file for crm_mon
systemd:crond - systemd unit file for crond
systemd:dbus - systemd unit file for dbus
systemd:dbus-org.fedoraproject.FirewallD1 - systemd unit file for dbus-org.fedoraproject.FirewallD1
systemd:dbus-org.freedesktop.hostname1 - systemd unit file for dbus-org.freedesktop.hostname1
systemd:dbus-org.freedesktop.import1 - systemd unit file for dbus-org.freedesktop.import1
systemd:dbus-org.freedesktop.locale1 - systemd unit file for dbus-org.freedesktop.locale1
systemd:dbus-org.freedesktop.login1 - systemd unit file for dbus-org.freedesktop.login1
systemd:dbus-org.freedesktop.machine1 - systemd unit file for dbus-org.freedesktop.machine1
systemd:dbus-org.freedesktop.NetworkManager - systemd unit file for dbus-org.freedesktop.NetworkManager
systemd:dbus-org.freedesktop.nm-dispatcher - systemd unit file for dbus-org.freedesktop.nm-dispatcher
systemd:dbus.socket - systemd unit file for dbus.socket
systemd:debug-shell - systemd unit file for debug-shell
systemd:dm-event - systemd unit file for dm-event
systemd:dm-event.socket - systemd unit file for dm-event.socket
systemd:dracut-cmdline - systemd unit file for dracut-cmdline
systemd:dracut-initqueue - systemd unit file for dracut-initqueue
systemd:dracut-mount - systemd unit file for dracut-mount
systemd:dracut-pre-mount - systemd unit file for dracut-pre-mount
systemd:dracut-pre-pivot - systemd unit file for dracut-pre-pivot
systemd:dracut-pre-trigger - systemd unit file for dracut-pre-trigger
systemd:dracut-pre-udev - systemd unit file for dracut-pre-udev
systemd:dracut-shutdown - systemd unit file for dracut-shutdown
systemd:ebtables - systemd unit file for ebtables
systemd:emergency - systemd unit file for emergency
systemd:firewalld - systemd unit file for firewalld
systemd:fstrim - systemd unit file for fstrim
systemd:getty@ - systemd unit file for getty@
systemd:gssproxy - systemd unit file for gssproxy
systemd:halt-local - systemd unit file for halt-local
systemd:initrd-cleanup - systemd unit file for initrd-cleanup
systemd:initrd-parse-etc - systemd unit file for initrd-parse-etc
systemd:initrd-switch-root - systemd unit file for initrd-switch-root
systemd:initrd-udevadm-cleanup-db - systemd unit file for initrd-udevadm-cleanup-db
systemd:iprdump - systemd unit file for iprdump
systemd:iprinit - systemd unit file for iprinit
systemd:iprupdate - systemd unit file for iprupdate
systemd:irqbalance - systemd unit file for irqbalance
systemd:kdump - systemd unit file for kdump
systemd:kmod-static-nodes - systemd unit file for kmod-static-nodes
systemd:lvm2-lvmetad - systemd unit file for lvm2-lvmetad
systemd:lvm2-lvmetad.socket - systemd unit file for lvm2-lvmetad.socket
systemd:lvm2-lvmpolld - systemd unit file for lvm2-lvmpolld
systemd:lvm2-lvmpolld.socket - systemd unit file for lvm2-lvmpolld.socket
systemd:lvm2-monitor - systemd unit file for lvm2-monitor
systemd:lvm2-pvscan@ - systemd unit file for lvm2-pvscan@
systemd:messagebus - systemd unit file for messagebus
systemd:microcode - systemd unit file for microcode
systemd:NetworkManager - systemd unit file for NetworkManager
systemd:NetworkManager-dispatcher - systemd unit file for NetworkManager-dispatcher
systemd:NetworkManager-wait-online - systemd unit file for NetworkManager-wait-online
systemd:nfs - systemd unit file for nfs
systemd:nfs-blkmap - systemd unit file for nfs-blkmap
systemd:nfs-config - systemd unit file for nfs-config
systemd:nfs-idmap - systemd unit file for nfs-idmap
systemd:nfs-idmapd - systemd unit file for nfs-idmapd
systemd:nfs-lock - systemd unit file for nfs-lock
systemd:nfs-mountd - systemd unit file for nfs-mountd
systemd:nfs-rquotad - systemd unit file for nfs-rquotad
systemd:nfs-secure - systemd unit file for nfs-secure
systemd:nfs-server - systemd unit file for nfs-server
systemd:nfs-utils - systemd unit file for nfs-utils
systemd:nfslock - systemd unit file for nfslock
systemd:pacemaker - systemd unit file for pacemaker
systemd:pcsd - systemd unit file for pcsd
systemd:plymouth-halt - systemd unit file for plymouth-halt
systemd:plymouth-kexec - systemd unit file for plymouth-kexec
systemd:plymouth-poweroff - systemd unit file for plymouth-poweroff
systemd:plymouth-quit - systemd unit file for plymouth-quit
systemd:plymouth-quit-wait - systemd unit file for plymouth-quit-wait
systemd:plymouth-read-write - systemd unit file for plymouth-read-write
systemd:plymouth-reboot - systemd unit file for plymouth-reboot
systemd:plymouth-start - systemd unit file for plymouth-start
systemd:plymouth-switch-root - systemd unit file for plymouth-switch-root
systemd:polkit - systemd unit file for polkit
systemd:postfix - systemd unit file for postfix
systemd:quotaon - systemd unit file for quotaon
systemd:rc-local - systemd unit file for rc-local
systemd:rdisc - systemd unit file for rdisc
systemd:rescue - systemd unit file for rescue
systemd:rhel-autorelabel - systemd unit file for rhel-autorelabel
systemd:rhel-autorelabel-mark - systemd unit file for rhel-autorelabel-mark
systemd:rhel-configure - systemd unit file for rhel-configure
systemd:rhel-dmesg - systemd unit file for rhel-dmesg
systemd:rhel-domainname - systemd unit file for rhel-domainname
systemd:rhel-import-state - systemd unit file for rhel-import-state
systemd:rhel-loadmodules - systemd unit file for rhel-loadmodules
systemd:rhel-readonly - systemd unit file for rhel-readonly
systemd:rpc-gssd - systemd unit file for rpc-gssd
systemd:rpc-rquotad - systemd unit file for rpc-rquotad
systemd:rpc-statd - systemd unit file for rpc-statd
systemd:rpc-statd-notify - systemd unit file for rpc-statd-notify
systemd:rpcbind - systemd unit file for rpcbind
systemd:rpcbind.socket - systemd unit file for rpcbind.socket
systemd:rpcgssd - systemd unit file for rpcgssd
systemd:rpcidmapd - systemd unit file for rpcidmapd
systemd:rsyncd - systemd unit file for rsyncd
systemd:rsyncd.socket - systemd unit file for rsyncd.socket
systemd:rsyncd@ - systemd unit file for rsyncd@
systemd:rsyslog - systemd unit file for rsyslog
systemd:selinux-policy-migrate-local-changes@ - systemd unit file for selinux-policy-migrate-local-changes@
systemd:serial-getty@ - systemd unit file for serial-getty@
systemd:sshd - systemd unit file for sshd
systemd:sshd-keygen - systemd unit file for sshd-keygen
systemd:sshd.socket - systemd unit file for sshd.socket
systemd:sshd@ - systemd unit file for sshd@
systemd:svnserve - systemd unit file for svnserve
systemd:syslog.socket - systemd unit file for syslog.socket
systemd:systemd-ask-password-console - systemd unit file for systemd-ask-password-console
systemd:systemd-ask-password-plymouth - systemd unit file for systemd-ask-password-plymouth
systemd:systemd-ask-password-wall - systemd unit file for systemd-ask-password-wall
systemd:systemd-backlight@ - systemd unit file for systemd-backlight@
systemd:systemd-binfmt - systemd unit file for systemd-binfmt
systemd:systemd-bootchart - systemd unit file for systemd-bootchart
systemd:systemd-firstboot - systemd unit file for systemd-firstboot
systemd:systemd-fsck-root - systemd unit file for systemd-fsck-root
systemd:systemd-fsck@ - systemd unit file for systemd-fsck@
systemd:systemd-halt - systemd unit file for systemd-halt
systemd:systemd-hibernate - systemd unit file for systemd-hibernate
systemd:systemd-hibernate-resume@ - systemd unit file for systemd-hibernate-resume@
systemd:systemd-hostnamed - systemd unit file for systemd-hostnamed
systemd:systemd-hwdb-update - systemd unit file for systemd-hwdb-update
systemd:systemd-hybrid-sleep - systemd unit file for systemd-hybrid-sleep
systemd:systemd-importd - systemd unit file for systemd-importd
systemd:systemd-initctl - systemd unit file for systemd-initctl
systemd:systemd-initctl.socket - systemd unit file for systemd-initctl.socket
systemd:systemd-journal-catalog-update - systemd unit file for systemd-journal-catalog-update
systemd:systemd-journal-flush - systemd unit file for systemd-journal-flush
systemd:systemd-journald - systemd unit file for systemd-journald
systemd:systemd-journald.socket - systemd unit file for systemd-journald.socket
systemd:systemd-kexec - systemd unit file for systemd-kexec
systemd:systemd-localed - systemd unit file for systemd-localed
systemd:systemd-logind - systemd unit file for systemd-logind
systemd:systemd-machine-id-commit - systemd unit file for systemd-machine-id-commit
systemd:systemd-machined - systemd unit file for systemd-machined
systemd:systemd-modules-load - systemd unit file for systemd-modules-load
systemd:systemd-nspawn@ - systemd unit file for systemd-nspawn@
systemd:systemd-poweroff - systemd unit file for systemd-poweroff
systemd:systemd-quotacheck - systemd unit file for systemd-quotacheck
systemd:systemd-random-seed - systemd unit file for systemd-random-seed
systemd:systemd-readahead-collect - systemd unit file for systemd-readahead-collect
systemd:systemd-readahead-done - systemd unit file for systemd-readahead-done
systemd:systemd-readahead-drop - systemd unit file for systemd-readahead-drop
systemd:systemd-readahead-replay - systemd unit file for systemd-readahead-replay
systemd:systemd-reboot - systemd unit file for systemd-reboot
systemd:systemd-remount-fs - systemd unit file for systemd-remount-fs
systemd:systemd-rfkill@ - systemd unit file for systemd-rfkill@
systemd:systemd-shutdownd - systemd unit file for systemd-shutdownd
systemd:systemd-shutdownd.socket - systemd unit file for systemd-shutdownd.socket
systemd:systemd-suspend - systemd unit file for systemd-suspend
systemd:systemd-sysctl - systemd unit file for systemd-sysctl
systemd:systemd-tmpfiles-clean - systemd unit file for systemd-tmpfiles-clean
systemd:systemd-tmpfiles-setup - systemd unit file for systemd-tmpfiles-setup
systemd:systemd-tmpfiles-setup-dev - systemd unit file for systemd-tmpfiles-setup-dev
systemd:systemd-udev-settle - systemd unit file for systemd-udev-settle
systemd:systemd-udev-trigger - systemd unit file for systemd-udev-trigger
systemd:systemd-udevd - systemd unit file for systemd-udevd
systemd:systemd-udevd-control.socket - systemd unit file for systemd-udevd-control.socket
systemd:systemd-udevd-kernel.socket - systemd unit file for systemd-udevd-kernel.socket
systemd:systemd-update-done - systemd unit file for systemd-update-done
systemd:systemd-update-utmp - systemd unit file for systemd-update-utmp
systemd:systemd-update-utmp-runlevel - systemd unit file for systemd-update-utmp-runlevel
systemd:systemd-user-sessions - systemd unit file for systemd-user-sessions
systemd:systemd-vconsole-setup - systemd unit file for systemd-vconsole-setup
systemd:tcsd - systemd unit file for tcsd
systemd:teamd@ - systemd unit file for teamd@
systemd:tuned - systemd unit file for tuned
systemd:vgauthd - systemd unit file for vgauthd
systemd:vmtoolsd - systemd unit file for vmtoolsd
systemd:wpa_supplicant - systemd unit file for wpa_supplicant

2. 設定

VIPの構築

[root@SYSLOG01 ~]# pcs resource create Virtual_IP ocf:heartbeat:IPaddr2 ip=192.168.1.30 cidr_netmask=24 op monitor interval=5s

メンテナンスモード

[root@SYSLOG01 ~]# pcs property set maintenance-mode=true/false
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3