Documente Academic
Documente Profesional
Documente Cultură
30 (lan0) Heartbeat IP: 10.10.1.30 (lan1) Standby: (lan2) Lock Disk: VG: /dev/vglock PV: /dev/disk/disk12
Server 2: Hardware: HP Integrity rx4640 OS: HP-UX B.11.31 Servername: server2 Stationary IP: 172.16.18.31 (lan0) Heartbeat IP: 10.10.1.31 (lan1) Standby: (lan2) Lock Disk: VG: /dev/vglock PV: /dev/disk/disk12 Storage:
# server1 172.16.18.30 boston.vogtnet.com boston 10.10.1.30 boston.vogtnet.com boston 127.0.0.1 localhost loopback # server2 172.16.18.31 denver.vogtnet.com denver 10.10.1.31 denver.vogtnet.com denver -> on server2
# vi /etc/hosts
# server2 172.16.18.31 denver.vogtnet.com denver 10.10.1.31 denver.vogtnet.com denver 127.0.0.1 localhost loopback # server1 172.16.18.30 boston.vogtnet.com boston 10.10.1.30 boston.vogtnet.com boston -
/etc/cmcluster
3. Configure ~/.rhosts (for rcp, dont use in secure envs) -> on boston.vogtnet.com
# cat ~/.rhosts
boston root
4. Create the $SGCONF/cmclnodelist (every node in the cluster must be listed in this file)
# vi $SGCONF/cmclnodelist
6. Disable the Auto Activation of LVM Volume Groups (on bot nodes)
# vi /etc/lvmrc
AUTO_VG_ACTIVATE=0 -
7. Lock Disk ( The lock disk is not dedicated for use as the cluster lock; the disk can be employed as part of a normal volume group with user data on it. The cluster lock volume group and physical volume names are identified in the cluster configuration file. ) However, in this cluster we use a dedicated Lock Volume Group so we are sure this VG will never be deleted. As soon as this VG is registered as lock disk in the cluster configuration, it will be automatically marked as cluster aware. Create a LUN on the EVA and present it to boston and denver. Server1:
# ioscan -N -fnC disk
Physical volume /dev/rdisk/disk12 has been successfully created. // Create the VG with the HP-UX 11.31 agile Multipathing instead of LVM Alternate Paths.
# vgcreate /dev/vglock /dev/disk/disk12
Volume group /dev/vglock has been successfully created. Volume Group configuration for /dev/vglock has been saved in /etc/lvmconf/vglock.conf
# strings /etc/lvmtab
/dev/vglock /dev/disk/disk12
# vgexport -v -p -s -m vglock.map /dev/vglock # rcp vglock.map denver:/
Server2:
# mkdir /dev/vglock # mknod /dev/vglock/group c 64 0x010000 # vgimport -v -s -m vglock.map vglock
> Agile Multipathing of HP-UX 11.31 is not used by default after import (HP-UX 11.31 Bug ?!). The volume group uses alternate LVM Paths. Solution:
# vgchange -a y vglock
Device file path /dev/dsk/c4t0d1 is an primary link. Removing primary link and switching to an alternate link. Volume group vglock has been successfully reduced. Volume Group configuration for /dev/vglock has been saved in /etc/lvmconf/vglock.conf
# strings /etc/lvmtab
/dev/vglock /dev/disk/disk12
# vgchange -a n vglock
// Backup VG
# vgchange -a r vglock # vgcfgbackup /dev/vglock
CLUSTER_NAME cluster1 FIRST_CLUSTER_LOCK_VG /dev/vglock NODE_NAME denver NETWORK_INTERFACE lan0 HEARTBEAT_IP 172.16.18.31
NETWORK_INTERFACE lan2 NETWORK_INTERFACE lan1 STATIONARY_IP 10.10.1.31 FIRST_CLUSTER_LOCK_PV /dev/dsk/c16t0d1 NODE_NAME boston NETWORK_INTERFACE lan0 HEARTBEAT_IP 172.16.18.30 NETWORK_INTERFACE lan2 NETWORK_INTERFACE lan1 STATIONARY_IP 10.10.1.30 FIRST_CLUSTER_LOCK_PV /dev/disk/disk12 HEARTBEAT_INTERVAL 1000000 NODE_TIMEOUT 2000000 AUTO_START_TIMEOUT 600000000 NETWORK_POLLING_INTERVAL 2000000 NETWORK_FAILURE_DETECTION INOUT MAX_CONFIGURED_PACKAGES 150 VOLUME_GROUP /dev/vglock -> Change this file to: CLUSTER_NAME MCSG_SAP_Cluster FIRST_CLUSTER_LOCK_VG /dev/vglock NODE_NAME denver NETWORK_INTERFACE lan0
STATIONARY_IP 172.16.18.31 NETWORK_INTERFACE lan2 NETWORK_INTERFACE lan1 HEARTBEAT_IP 10.10.1.31 FIRST_CLUSTER_LOCK_PV /dev/disk/disk12 NODE_NAME boston NETWORK_INTERFACE lan0 STATIONARY_IP 172.16.18.30 NETWORK_INTERFACE lan2 NETWORK_INTERFACE lan1 HEARTBEAT_IP 10.10.1.30 FIRST_CLUSTER_LOCK_PV /dev/disk/disk12 HEARTBEAT_INTERVAL 1000000 NODE_TIMEOUT 5000000 AUTO_START_TIMEOUT 600000000 NETWORK_POLLING_INTERVAL 2000000 NETWORK_FAILURE_DETECTION INOUT MAX_CONFIGURED_PACKAGES 15 VOLUME_GROUP /dev/vglock # cmcheckconf -v -C cmclconfig.ascii Checking cluster file: cmclconfig.ascii Checking nodes Done Checking existing configuration Done Gathering storage information
Found 2 devices on node denver Found 2 devices on node boston Analysis of 4 devices should take approximately 1 seconds 0%-10%-20%-30%-40%-50%-60%-70%-80%-90%-100% Found 2 volume groups on node denver Found 2 volume groups on node boston Analysis of 4 volume groups should take approximately 1 seconds 0%-10%-20%-30%-40%-50%-60%-70%-80%-90%-100% Gathering network information Beginning network probing (this may take a while) Completed network probing Checking for inconsistencies Adding node denver to cluster MCSG_SAP_Cluster Adding node boston to cluster MCSG_SAP_Cluster cmcheckconf: Verification completed with no errors found. Use the cmapplyconf command to apply the configuration.
# cmapplyconf -v -C cmclconfig.ascii
Checking cluster file: cmclconfig.ascii Checking nodes Done Checking existing configuration Done Gathering storage information Found 2 devices on node denver Found 2 devices on node boston Analysis of 4 devices should take approximately 1 seconds 0%-10%-20%-30%-40%-50%-60%-70%-80%-90%-100%
Found 2 volume groups on node denver Found 2 volume groups on node boston Analysis of 4 volume groups should take approximately 1 seconds 0%-10%-20%-30%-40%-50%-60%-70%-80%-90%-100% Gathering network information Beginning network probing (this may take a while) Completed network probing Checking for inconsistencies Adding node denver to cluster MCSG_SAP_Cluster Adding node boston to cluster MCSG_SAP_Cluster Marking/unmarking volume groups for use in the cluster Completed the cluster creation // Deactivate the VG (vglock will be activated from cluster daemon)
# vgchange -a n /dev/vglock
cmruncl: Validating network configuration cmruncl: Network validation complete Waiting for cluster to form .. done Cluster successfully formed. Check the syslog files on all nodes in the cluster to verify that no warnings occurred during startup.
# cmviecl -v
denver up running Cluster_Lock_LVM: VOLUME_GROUP PHYSICAL_VOLUME STATUS /dev/vglock /dev/disk/disk12 up Network_Parameters: INTERFACE STATUS PATH NAME PRIMARY up 0/2/1/0 lan0 PRIMARY up 0/2/1/1 lan1 STANDBY up 0/3/2/0 lan2 NODE STATUS STATE boston up running Cluster_Lock_LVM: VOLUME_GROUP PHYSICAL_VOLUME STATUS /dev/vglock /dev/disk/disk12 up Network_Parameters: INTERFACE STATUS PATH NAME PRIMARY up 0/2/1/0 lan0 PRIMARY up 0/2/1/1 lan1 STANDBY up 0/3/2/0 lan2 10. Cluster Startup Shutdown // Automatic Startup: /etc/rc.config.d/cmcluster AUTOSTART_CMCLD=1 // Manuel Startup
# cmruncl -v
// Overview
# cmviewcl -v
// Stop Cluster
# cmhaltcl -v