This is an old revision of the document!


Linux

udev rules (for ASM) :

ENV{DM_VG_NAME}=="oradisksASM" ENV{DM_LV_NAME}=="DISK*" OWNER="oracle" GROUP="dba"

LVM :

lvdisplay --noheadings --units m -C -o Size /dev/db2vg/lv_RAW01

OpenSSL file encryption :

openssl aes-256-cbc -a -salt -in secrets.txt -out secrets.txt.enc

OpenSSL file decryption :

openssl aes-256-cbc -d -a -in secrets.txt.enc -out secrets.txt.new

Install components [ALL NODES] :

yum -y install pcs pacemaker fence-agents-all

Set password of user hacluster [ALL NODES] :

passwd hacluster

Enable services [ALL NODES] :

systemctl start pcsd.service
systemctl enable pcsd.service

Create authentication tokens [FROM PRIM. NODE] :

pcs cluster auth dbp04allx.unixguest.eu dbp26allx.unixguest.eu dbp05allx.unixguest.eu

Create cluster [FROM PRIM. NODE] :

pcs cluster setup --start --name HADR_ISM dbp04allx.unixguest.eu dbp26allx.unixguest.eu dbp05allx.unixguest.eu

Enable cluster services on boot [FROM PRIM. NODE] :

pcs cluster enable --all

You can list services in Linux as follows:

List services

[root@tain-cx-uatdb1 ~]# systemctl list-unit-files
UNIT FILE                                     STATE
proc-sys-fs-binfmt_misc.automount             static
dev-hugepages.mount                           static
dev-mqueue.mount                              static
proc-fs-nfsd.mount                            static
proc-sys-fs-binfmt_misc.mount                 static
sys-fs-fuse-connections.mount                 static
sys-kernel-config.mount                       static
sys-kernel-debug.mount                        static
tmp.mount                                     disabled
var-lib-nfs-rpc_pipefs.mount                  static
brandbot.path                                 enabled
systemd-ask-password-console.path             static
systemd-ask-password-plymouth.path            static
systemd-ask-password-wall.path                static
session-1.scope                               static
session-29975.scope                           static
session-29979.scope                           static
acpid.service                                 enabled
arp-ethers.service                            disabled
auditd.service                                enabled
auth-rpcgss-module.service                    static
autofs.service                                disabled
[email protected]                               enabled
bacula-fd.service                             disabled
blk-availability.service                      disabled
brandbot.service                              static
certmonger.service                            disabled
console-getty.service                         disabled
console-shell.service                         disabled
[email protected]                      static
cpupower.service                              disabled
crond.service                                 enabled
dbus-org.freedesktop.hostname1.service        static
dbus-org.freedesktop.import1.service          static
dbus-org.freedesktop.locale1.service          static
dbus-org.freedesktop.login1.service           static
dbus-org.freedesktop.machine1.service         static
dbus-org.freedesktop.timedate1.service        static
dbus.service                                  static
debug-shell.service                           disabled
dm-event.service                              static
dnsmasq.service                               disabled
dracut-cmdline.service                        static
dracut-initqueue.service                      static
dracut-mount.service                          static
dracut-pre-mount.service                      static
dracut-pre-pivot.service                      static
dracut-pre-trigger.service                    static
dracut-pre-udev.service                       static
dracut-shutdown.service                       static
ebtables.service                              disabled
emergency.service                             static
firewalld.service                             disabled
fstrim.service                                static
[email protected]                                enabled
gssproxy.service                              disabled
halt-local.service                            static
initrd-cleanup.service                        static
initrd-parse-etc.service                      static
initrd-switch-root.service                    static
initrd-udevadm-cleanup-db.service             static
ip6tables.service                             disabled
iprdump.service                               disabled
iprinit.service                               disabled
iprupdate.service                             disabled
iptables.service                              disabled
irqbalance.service                            enabled
kdump.service                                 enabled
kmod-static-nodes.service                     static
lvm2-lvmetad.service                          static
lvm2-lvmpolld.service                         static
lvm2-monitor.service                          enabled
[email protected]                          static
messagebus.service                            static
microcode.service                             enabled
NetworkManager-dispatcher.service             disabled
NetworkManager-wait-online.service            enabled
NetworkManager.service                        disabled
nfs-blkmap.service                            disabled
nfs-config.service                            static
nfs-idmap.service                             static
nfs-idmapd.service                            static
nfs-lock.service                              static
nfs-mountd.service                            static
nfs-rquotad.service                           disabled
nfs-secure.service                            static
nfs-server.service                            disabled
nfs-utils.service                             static
nfs.service                                   disabled
nfslock.service                               static
ntpd.service                                  disabled
ntpdate.service                               disabled
oddjobd.service                               enabled
plymouth-halt.service                         disabled
plymouth-kexec.service                        disabled
  • linux_basic_admin.1594211139.txt.gz
  • Last modified: 2020/07/08 12:25
  • by andonovj