Posts

Showing posts from March, 2026

Redhat Cluster 6.5 Cheet Sheet

  Redhat Cluster 6.5  Cheet Sheet    Checking status of the cluster: clustat clustat -m -> Display status of and exit clustat -s -> Display status of and exit clustat -l -> Use long format for services cman_tool status -> Show local record of cluster status cman_tool nodes -> Show local record of cluster nodes cman_tool nodes -af ccs_tool lsnode -> List nodes ccs_tool lsfence -> List fence devices group_tool -> displays the status of fence, dlm and gfs groups group_tool ls -> displays the list of groups and their membership Resource Group Control Commands: clusvcadm -d -> Disable clusvcadm -e -> Enable clusvcadm -e -F -> Enable according to failover domain rules clusvcadm -e -m -> Enable on clusvcadm -r -m -> Relocate to member clusvcadm -R -> Restart a group in place. clusvcadm -s -> Stop Resource Group Locking (for cluster Shutdown / Debugging): clusvcadm -l -> Lock local resource group manager. This preven...

Pacemaker Cluster on RHEL 9 by Vathsa

    Implementing Pacemaker Cluster on RHEL Servers   Two RHEL v9 nodes in cluster providing high availability to storage and LAN network sudo subscription-manager repos --enable=rhel-9-for-x86_64-highavailability-rpms sudo dnf install pcs pacemaker fence-agents-all -y sudo firewall-cmd --permanent --add-service=high-availability sudo firewall-cmd --reload sudo passwd hacluster sudo systemctl enable --now pcsd ## Preparing cluster configuration ## ## Basic Informations ## *You can substitute the values below accordingly to your environment: Linux Node1: LNXSRV1 IP Node1: X.X.X.X Linux Node2: LNXSRV2 IP Node2: Y.Y.Y.Y Virtual Hostname: HOSTVT Virtual IP: V.V.V.V LAN Network Adapter: enpXsY Shared Disk: /dev/sdA (the disk name on the node that you'll configure the cluster) VG Name: nameVG LV1 Name: lv1_name (ex: lv_www) FS1 name: fs1name (ex: /var/www/) LV2 Name: lv2_name (ex: lv_bkp) FS2 name: fs2name (ex: /web/bkp/ for backup) LV3 Name: lv3_name (ex: lv_mon) FS3 name: fs3...

Clone VM with ESXCli/Vsphere without VCenter

          Clone VM with ESXCli/Vsphere without VCenter   #!/bin/bash if [ -z "$1" ]    then      echo      echo " No configuration option specified. "      echo "  Usage    : sh clone-vm.sh <source_vm_name> <target_vm_name>"      echo "  Example: sh clone-vm.sh ubuntu-temp-v2 wnode01"      exit fi export SOURCE_VM=$1 export TARGET_VM=$2 cd /vmfs/volumes/ export DATASTORE=`ls | grep datastore` ## Find source vm datastore cd /vmfs/volumes/$DATASTORE pwd ## Create Target VM folder mkdir -p /vmfs/volumes/$DATASTORE/$TARGET_VM echo ls echo cd /vmfs/volumes/$DATASTORE/$SOURCE_VM pwd echo "Changed to $SOURCE_VM VM Directory `pwd`" echo cp /vmfs/volumes/$DATASTORE/$SOURCE_VM/* /vmfs/volumes/$DATASTORE/$TARGET_VM/ # Customize target VM cd /vmfs/volumes/$DATASTORE/$TARGET_VM/ vmkfstools -E $SOURCE_VM.vmdk $TARGET_VM.vmdk m...