HP manual Pros and Cons of Volume Managers with Serviceguard

Page 87

Table 5 Pros and Cons of Volume Managers with Serviceguard

Product

Advantages

Tradeoffs

Logical Volume Manager (LVM)

Mirrordisk/UX

Software is provided with all versions of HP-UX.

Provides up to 3-way mirroring using optional Mirrordisk/UX software.

Dynamic multipathing (DMP) is active by default as of HP-UX 11i v3.

Supports exclusive activation as well as read-only activation from multiple nodes

Can be used to configure a cluster lock disk

Supports multiple heartbeat subnets; the one with the faster failover time is used to re-form the cluster.

Software mirroring

Lower cost solution

Lacks flexibility and extended features of some other volume managers

Lacks extended features of other volume managers

Shared Logical Volume Manager (SLVM)

Base-VxVM

Provided free with SGeRAC for multi-node access to RAC data

Supports up to 16 nodes in shared read/write mode for each cluster

Supports exclusive activation

Supports multiple heartbeat subnets.

Online node configuration with activated shared volume groups (using specific SLVM kernel and Serviceguard revisions)

Software is supplied free with HP-UX 11i releases.

Java-based administration through graphical user interface.

Striping (RAID 0) support.

Concatenation.

Online resizing of volumes.

Supports multiple heartbeat subnets.

Lacks the flexibility and extended features of some other volume managers.

Limited mirroring support

Cannot be used for a cluster lock

Supports only exclusive read or write activation

Package delays are possible, due to lengthy vxdg import at the time the package is started or failed over

Veritas Volume Manager— Full VxVM product

Disk group configuration from any node.

DMP for active/active storage devices.

Supports exclusive activation.

Hot relocation and unrelocation of failed subdisks

Supports up to 32 plexes per volume

RAID 1+0 mirrored stripes

RAID 1 mirroring

RAID 5

RAID 0+1 striped mirrors

Supports multiple heartbeat subnets, which could reduce cluster reformation time.

Requires purchase of additional license

Cannot be used for a cluster lock

Does not support activation on multiple nodes in either shared mode or read-only mode

May cause delay at package startup time due to lengthy vxdg import

Veritas Cluster Volume Provides volume configuration propagation.

Manager

Supports cluster shareable disk groups.

 

 

Package startup time is faster than with VxVM.

Disk groups must be configured on a master node

Cluster startup may be slower than with VxVM

Volume Managers for Data Storage 87

Image 87
Contents Managing Serviceguard Twentieth Edition Legal Notices Contents Contents Planning and Documenting an HA Cluster Contents Building an HA Cluster Configuration 158 Contents Configuring Packages and Their Services 227 Contents Cluster and Package Maintenance 261 279 Troubleshooting Your Cluster 321 Contents Integrating HA Applications with Serviceguard 354 Software Upgrades 357349 IPv6 Network Support 378 Blank Planning Worksheets 369Migrating from LVM to VxVM Data Storage 374 377Using Serviceguard Manager 385 396Index 398 Publishing History Publishing HistoryPreface Related Publications Securing Serviceguard and other Serviceguard white papersWhat is Serviceguard? Serviceguard at a GlanceShows what happens in a failover situation FailoverTypical Cluster After Failover About Veritas CFS and CVM from SymantecUsing SAM Using Serviceguard ManagerWhat are the Distributed Systems Administration Utilities? Roadmap for Configuring Clusters and PackagesUsr/sbin/sam -w Tasks in Configuring a Serviceguard Cluster Redundancy of Cluster Components Understanding Serviceguard Hardware ConfigurationsRules and Restrictions Redundant Network ComponentsRedundant LANs Redundant Ethernet ConfigurationRestrictions Cross-Subnet ConfigurationsConfiguration Tasks For legacy packages, see Configuring Cross-Subnet FailoverFor More Information Redundant Disk Storage Replacing Failed Network CardsSupported Disk Interfaces About Multipathing Disk Arrays using RAID Levels and Multiple Data PathsData Protection Disk MirroringReplacing Failed I/O Cards Monitoring LVM Disks Through Event Monitoring ServiceMonitoring VxVM and CVM Disks Replacing Failed Disk MechanismsMirrored Disks Connected for High Availability Sample Scsi Disk ConfigurationsCluster with High Availability Disk Array Sample Fibre Channel Disk ConfigurationLarger Clusters Redundant Power SuppliesPoint to Point Connections to Storage Devices Active/Standby ModelEight-Node Cluster with XP or EMC Disk Array Understanding Serviceguard Software Components Serviceguard ArchitectureServiceguard Daemons Cluster Daemon cmcld Configuration Daemon cmclconfdCluster Object Manager Daemon cmomd Cluster Logical Volume Manager Daemon cmlvmdFile Management Daemon cmfileassistd Syslog Log Daemon cmlogdLock LUN Daemon cmdisklockd Service Assistant Daemon cmservicedQuorum Server Daemon qs Network Manager Daemon cmnetdCFS Components Configuring the ClusterHow the Cluster Manager Works Proxy Daemon cmproxydManual Startup of Entire Cluster Heartbeat MessagesCluster Lock Automatic Cluster StartupDynamic Cluster Re-formation Cluster Quorum to Prevent Split-Brain SyndromeLock Requirements Use of a Lock LUN or LVM Lock Disk as the Cluster LockUse of the Quorum Server as the Cluster Lock Single Lock Disk or LUNDual Lock Disk Quorum Server Operation No Cluster LockFailover Packages How the Package Manager WorksPackage Types Non-failover PackagesFailover Packages’ Switching Behavior Deciding When and Where to Run and Halt Failover PackagesBefore Package Switching Automatic Rotating Standby Package Configuration DataRotating Standby Configuration before Failover Failback Policy Configurednode Policy Packages after FailoverAutomatic Failback Configuration After Failover Using the Generic Resources Monitoring Service Using Older Package Configuration FilesUnderstanding Serviceguard Software Components See also Using EMS to Monitor Volume Groups Using the Event Monitoring ServiceUsing the EMS HA Monitors See also Using Generic Resources to Monitor Volume GroupsWhat Makes a Package Run? How Packages RunLegacy Package Time Line Showing Important Events Before the Control Script StartsPackage Time Line Legacy Package During Run Script ExecutionService Startup with cmrunserv While Services are RunningNormal and Abnormal Exits from the Run Script During Halt Script Execution When a Package is Halted with a CommandLegacy Package Time Line for Halt Script Execution Package Control Script Error and Exit Conditions Error Conditions and Package Movement for Failover PackagesNormal and Abnormal Exits from the Halt Script Stationary and Relocatable IP Addresses How the Network Manager WorksTypes of IP Addresses Adding and Deleting Relocatable IP AddressesLoad Sharing Monitoring LAN Interfaces and Detecting Failure Link LevelLocal Switching Cluster Before Local Network Switching Cmmodnet -e interface Where interface is the primary interfaceMonitoring LAN Interfaces and Detecting Failure IP Level Remote SwitchingHow the IP Monitor Works Reasons To Use IP MonitoringFailure and Recovery Detection Times See also Reporting Link-Level and IP-Level Failures Example 1 If Local Switching is ConfiguredReporting Link-Level and IP-Level Failures Constraints and LimitationsExample 2 If There Is No Local Switching Automatic Port AggregationCmmodnet -e lan2 Vlan Configurations What is VLAN?Support for HP-UX Vlan Additional Heartbeat Requirements Volume Managers for Data StorageConfiguration Restrictions Types of Redundant StorageAbout Device File Names Device Special Files Examples of Mirrored StorageWhite papers Physical Disks Within Shared Storage Units Examples of Storage on Disk Arrays Multiple Devices Configured in Volume GroupsMultiple Paths to LUNs Propagation of Disk Groups in VxVM Types of Volume ManagerHP-UX Logical Volume Manager LVM Veritas Volume Manager VxVMFor heartbeat requirements, see Redundant Heartbeat Subnets Veritas Cluster Volume Manager CVMCluster Startup Time with CVM Propagation of Disk Groups with CVMRedundant Heartbeat Subnets Comparison of Volume ManagersPros and Cons of Volume Managers with Serviceguard Example System Reset When a Node FailsWhat Happens when a Node Times Out Responses to FailuresResponses to Hardware Failures Responses to Package and Generic Resources Failures Responses to Package and Service FailuresNetwork Communication Failure Service RestartsPlanning for Expansion Serviceguard Memory RequirementsPlanning and Documenting an HA Cluster General PlanningHardware Planning Sample Cluster ConfigurationNnn.nnn.nnn.nnn SPU InformationNetwork Information LAN InformationScsi Addressing in Cluster Configuration Under Cluster Configuration ParametersDiskinfo Disk I/O InformationHardware Configuration Worksheet Power Supply PlanningCluster Lock Planning Power Supply Configuration WorksheetUsing a Quorum Server Cluster Lock Disk and Re-formation TimeQuorum Server Worksheet LVM Planning Using Generic Resources to Monitor Volume GroupsUsing EMS to Monitor Volume Groups For more information, see Using the EMS HA Monitors CVM and VxVM PlanningLVM Worksheet CVM and VxVM Worksheet Cluster Configuration PlanningWhere cDSFs Reside About Cluster-wide Device Special Files cDSFsPoints To Note LVM Commands and cDSFs About Easy DeploymentLimitations of cDSFs Heartbeat Subnet and Cluster Re-formation Time Advantages of Easy DeploymentLimitations of Easy Deployment Localhost ipv6-localhost ipv6-loopback What Is IPv4-only Mode?What Is IPv6-Only Mode? Rules and Restrictions for IPv6-Only ModeWhat Is Mixed Mode? Recommendations for IPv6-Only ModeIPV6 or ANY Name of the cluster as it will appear in the output Cluster Configuration ParametersRules and Restrictions for Mixed Mode Cluster configuration filePlanning and Documenting an HA Cluster 99 and Specifying a Quorum Server Happens when You Change the Quorum ConfigurationGo/hpux-serviceguard-docs under HP Serviceguard IPv4-Only,IPv6-Only, and Mixed Mode page 106 forHpux-serviceguard-docs under HP Serviceguard IPv6-Only, and Mixed Mode page 106 for importantSee also About Hostname Address Families IPv4-Only Configuration file see Configuring Packages Their Services page 227 and these in turn mustSitepreferred or Cluster Is Running Configuration Planning page 125 must be specifiedCluster Configuration Planning To that LAN, to risk timeout without being serviced You cannot change the heartbeat configuration whileCVM/CFS on HP Serviceguard A.11.20 April Protocols and services. RPC assumes that each networkLock LUN page 189 for more information Also What Happens when You Change the QuorumConfiguration Online page 49 for important information See IPv6 Address TypesWhen You Change the Quorum Configuration Online Cluster is running, see Updating the Cluster Lock DiskFailbackpolicy See About Package Weights page 144 for more Planning and Documenting an HA Cluster IP-Level Failures See also What Happens when a Node Times Out88, Cluster Daemon cmcld page 41, 69, Monitoring LAN Interfaces and DetectingHow Serviceguard will handle the recovery of the primary Default isConfiguration file specifies one of two ways to decide When a network interface card has failedSee Monitoring LAN Interfaces and Detecting Failure IP Planning and Documenting an HA Cluster Access Control Policies also known as Role Based Access Package Configuration PlanningCluster Configuration Next Step Logical Volume and File System PlanningCVM 4.1 and later without CFS CVM 4.1 and later with CFS Using the Volume Monitor About the Volume MonitorOr --log-level Or --helpOr --version Or --log-fileUsr/sbin/cmvolmond -t 10 /dev/vg00/lvol1 VolumepathPlanning for NFS-mounted File Systems Usr/sbin/cmvolmond /dev/vg01/lvol1 /dev/vg01/lvol2Package Configuration Planning Package Failover Behavior Choosing Switching and Failover BehaviorCmmakepkg -i $SGCONF/pkg1/pkg1.conf -m sg/genericresource Parameters for Configuring Generic ResourcesConfiguring a Generic Resource Extended generic resourceCmapplyconf -P $SGCONF/pkg1/pkg1.conf Cmcheckconf -v -P $SGCONF/pkg1/pkg1.confCmsetresource -r sfmdisk -s up Cmviewcl -v -f line -p pkg1 grep genericresourceCmrunpkg pkg1 Cmgetresource -r sfmdiskOnline Reconfiguration of Generic Resources Parameters for Configuring EMS ResourcesAssume that we want to make pkg1 depend on pkg2 About Package DependenciesSimple Dependencies Rules for Simple DependenciesPlanning and Documenting an HA Cluster Dragging Rules for Simple Dependencies Planning and Documenting an HA Cluster Extended Dependencies Rules for Exclusionary Dependencies See Rules for differentnode and anynode DependenciesRules for differentnode and anynode Dependencies What Happens when a Package FailsCmmakepkg 1m manpage About Package WeightsPackage Weights and Node Capacities Configuring Weights and CapacitiesFor pkg2 Weightname packagelimit weightvalueSimple Method Nodename node1 Capacityname packagelimitComprehensive Method Points to Keep in MindDefining Capacities Nodename node2 Clustername cluster23 Nodename node1Defining Default Weights Defining WeightsWeightname a Weightvalue Weightname B Weightvalue Weightname aWeightname B Weightvalue Cmquerycl 1m manpage Rules and GuidelinesAbout External Scripts Pevmonitoringinterval Using Serviceguard Commands in an External Script Cmviewcl -v -f line displays a lasthaltfailed flag Determining Why a Package Has Shut DownAbout Cross-Subnet Failover LasthaltfailedImplications for Application Deployment Configuring a Package to Fail Over across Subnets ExampleConfiguring ipsubnetnode Configuring a Package Next StepsConfiguring nodename Configuring monitoredsubnetaccessPlanning for Changes in Cluster Size Preparing Your Systems Configuring the Cluster Building an HA Cluster ConfigurationInstalling and Updating Serviceguard Where Serviceguard Files Are KeptEtc/cmcluster.conf Creating Cluster-wide Device Special Files cDSFsBefore You Start Creating cDSFs for a Group of NodesCmpreparecl -n node1 -n node2 -n node3 -n node4 Csshsetup -r node2Csshsetup -r -f /etc/cmcluster/sshhosts Cmpreparecl -n nodename -n nodenameRemoving a Node from a cDSF Group Using Easy DeploymentDisplaying the cDSF Configuration Adding a Node to a cDSF GroupUsing Easy Deployment Commands to Configure the Cluster For exampleCmquerycl -N $SGCONF/mynetwork Preparing Your Systems Building an HA Cluster Configuration PVG bus1 /dev/cdisk/disk14 /dev/cdisk/disk15 Configuring Root-Level Access Allowing Root Access to an Unconfigured NodeFormat for entries in cmclnodelist is as follows About identd Ensuring that the Root User on Another Node Is RecognizedConfiguring Name Resolution Official hostname, as defined by hosts 4, for exampleAny of the aliases. Examples Safeguarding against Loss of Name Resolution Services For NIS, enter two lines Ensuring Consistency of Kernel ConfigurationEnabling the Network Time Protocol Tuning Network and Kernel ParametersMake the new disk a boot disk Creating Mirrors of Root Logical VolumesBacking Up Cluster Lock Disk Information Choosing Cluster Lock DisksSetting Up a Lock LUN This will create three device files, for example Creating a Disk Partition on an HP Integrity SystemUsr/sbin/idisk -w -p -f partition.txt /dev/rdsk/c1t4d0 Usr/sbin/idisk -w -p -f partition.txt /dev/rdisk/disk12Defining the Lock LUN Excluding Devices from ProbingCreating a Storage Infrastructure with LVM Setting Up and Running the Quorum ServerUsing the EMS Disk Monitor Using the Generic Resources Disk MonitorCreating Volume Groups Using Mirrored Individual Data DisksLvchange -t 60 /dev/vg01/lvol1 Creating Logical VolumesSetting Logical Volume Timeouts Creating File SystemsDistributing the Volume Group Distributing Volume Groups to Other NodesVerify the configuration Deactivating the Volume GroupDeactivate the volume group on ftsys10 Still on ftsys9, copy the map file to ftsys10Create a directory to mount the disk Converting Disks from LVM to VxVM Making Physical Volume Group Files ConsistentCreating Additional Volume Groups Creating a Storage Infrastructure with VxVMInitializing Disks for VxVM Initializing Disks Previously Used by LVMCreating Disk Groups Re-Importing Disk Groups Deporting Disk GroupsCmquerycl -v -C $SGCONF/clust1.conf -n ftsys9 -n ftsys10 Configuring the ClusterClearimport at System Reboot Time Here is an example of the command enter it all one lineSpecifying the Address Family for the Heartbeat Cmquerycl OptionsSpeeding up the Process Specifying the Address Family for the Cluster HostnamesFull Network Probing Specifying a Lock DiskSpecifying the Cluster Lock Generating a Network Template FileSee also Choosing Cluster Lock Disks Specifying a Lock LUNCmquerycl -v -n ftsys9 -n ftsys10 Vgchange -c y /dev/vglockWill produce the output such as the following Specifying a Quorum ServerObtaining Cross-Subnet Information Cmquerycl -q QSHost QSAddr -n ftsys9 -n ftsys10 -CConfiguring the Cluster Identifying Heartbeat Subnets Specifying Maximum Number of Configured PackagesModifying the Membertimeout Parameter Controlling Access to the ClusterAccess Roles How Access Roles WorkSetting up Access-Control Policies Levels of AccessUserrole must be one of these three values Monitor Fulladmin PackageadminUsername john Userhost bit Role ConflictsUsername root Adding Volume Groups Verifying the Cluster ConfigurationPackage versus Cluster Roles Distributing the Binary Configuration File Storing Volume Group and Cluster Lock Configuration Data Modular CFS packages v/s Legacy CFS packagesDifferences between Legacy CFS and Modular CFS Operational commands for Legacy CFS and Modular CFS Delete a mount point, check point, or snapshot in a package Cfscluster config -t 900 -s Preparing the Cluster and the System Multi-node PackageCfscluster status Cfsdgadm display Creating the Disk GroupsCreating the Disk Group Cluster Packages Cfsdgadm add logdata all=swVxprint logfiles Creating VolumesUse the vxprint command to verify Cfsdgadm showpackage logdataCreate a package configuration file For instructions on creating modular CFS packages, seeCmmakepkg -m sg/cfsall /etc/cmcluster/cfspkg1.ascii Apply the package configuration file Cmcheckconf -P /etc/cmcluster/cfspkg1.asciiCmapplyconf -P /etc/cmcluster/cfspkg1.ascii Cfsconcurrentmountunmountoperations CmviewclBdf CvmconcurrentdgoperationsCurrent primary, a primary migration is triggered to Cmmakepkg -m sg/cfsall /etc/cmcluster/ckpt1.asciiPackage. For more information, see the manpage See the mountvxfs 1m manpageCreate a package configuration file for the snapshot image Vxassist -g cvmdg3 make vol1 100m vxvol -g cvmdg3 startallCmmakepkg -m sg/cfsall snap1.ascii Mountvxfs 1m manpage Mount pointsSnapshotmountoptions Information about the mount options, seeOnline reconfiguration of modular CFS package parameters Cmcheckconf -P cfspkg1.ascii Cmviewcl -v -f line -p cfspkg1Apply the configuration Cmapplyconf -P cfspkg1.asciiVerify the output Legacy Style of Packaging Modular Style of Packaging Managing Disk Groups and Mount Points Using Legacy Packages Cfsmount /tmp/checklogfiles Creating Checkpoint and Snapshot Packages for CFSFsckptadm -n create check2 /tmp/logdata/logfiles Associate it with the cluster and mount itCfsmount /local/snap1 cmviewcl It is persistentVxassist -g dg1 make vol1 100m vxvol -g dg1 startall Associate it with the clusterYou need to do the tasks described in the following sections Initializing Disks for CVM Initializing the Veritas Volume ManagerPreparing the Cluster for Use with CVM Identifying the Master NodeMirror Detachment Policies with CVM Adding Disk Groups to the Package ConfigurationUsr/lib/vxvm/bin/vxdisksetup -i c4t3d4 Vxdg -s init logdata c0t3d2Managing the Running Cluster Using Dsau during ConfigurationChecking Cluster Operation with Serviceguard Manager Checking Cluster Operation with Serviceguard CommandsSetting up Autostart Features Preventing Automatic Activation of LVM Volume GroupsHere is an example of the /etc/rc.config.d/cmcluster file Changing the System MessageManaging a Single-Node Cluster Change the cmclconfd entry in /etc/inetd.conf to Deleting the Cluster ConfigurationDisabling identd Single-Node OperationBuilding an HA Cluster Configuration Configuring Packages and Their Services Types of Package Failover, Multi-Node, System Multi-Node Choosing Package ModulesFailoverpolicy Failbackpolicy Ipsubnet Ipaddress Cmmakepkg -m sg/all $SGCONF/sg-all Differences between Failover and Multi-Node PackagesPackage Modules and Parameters Base Package ModulesOptional Package Modules Base ModulesOptional Modules Locallanfailoverallowed Externalscript Package Parameter ExplanationsCmmakepkg $SGCONF/sg-all Nodefailfastenabled NodenameAutorun Haltscripttimeout RunscripttimeoutLoglevel SuccessorhalttimeoutScriptlogfile OperationsequenceDependencyname PriorityFor more information, see About Package Dependencies DependencyconditionSpecifies where the dependencycondition must be met Weightname, weightvalueDependencylocation Clusterinterconnectsubnet MonitoredsubnetaccessLocallanfailoverallowed MonitoredsubnetNew for A.11.18 for both modular and legacy packages IpsubnetIpsubnet Ipaddress Ipaddress ServicenameSee the package configuration file for more examples IpsubnetnodeServicehalttimeout ServicecmdServicerestart ServicefailfastenabledDefines when the status of a generic resource is evaluated GenericresourceevaluationtypeGenericresourceupcriteria Resourcestart ResourcenameName of a resource to be monitored ResourcepollingintervalCannot lock /etc/lvmconf//lvmlock still trying EnablethreadedvgchangeResourceupvalue ConcurrentvgchangeoperationsVgchangecmd CvmactivationcmdVxvolcmd Vxvmdgretry KillprocessesaccessingrawdevicesCvmdg VxvmdgFsmountretrycount Fsfsckopt -s Fstype vxfsConcurrentfsckoperations ConcurrentmountandumountoperationsFstype FsnameFsserver FsdirectoryPev FsmountoptFsumountopt FsfsckoptAdditional Parameters Used Only by Legacy Packages UsernameUserhost UserroleMkdir $SGCONF/pkg1 Generating the Package Configuration FileBefore You Start Cmmakepkg ExamplesNext Step Editing the Configuration FileSee About Package Dependencies page 137 for more information Packagetype. Enter failover, multinode, or systemmultinodeEditing the Configuration File Vg vg01 Vg vg02 Verifying and Applying the Package Configuration Adding the Package to the Cluster How Control Scripts Manage VxVM Disk Groups# vxdg -tfC import dg01 Cmviewcl -r A.11.16 Cluster and Package MaintenanceReviewing Cluster and Package Status Viewing DependenciesNode Status and State Viewing CFS Multi-Node InformationTypes of Cluster and Package States Cluster StatusReviewing Cluster and Package Status Down UnknownExamples of Cluster and Package States Failover and Failback PoliciesNormal Running Status CFS Package Status Quorum Server StatusStatus After Halting a Package If we use the following command Status After Moving the Package to Another NodeThen run cmviewcl -v, we’ll see Status After Halting a Node Status After Auto Run is EnabledOutput of the cmviewcl command is now as follows After we halt ftsys10 with the following commandThis output can be seen on both ftsys9 and ftsys10 Viewing Information about Unowned PackagesViewing Information about System Multi-Node Packages Checking Status of the Cluster File System CFS Status of the Packages in a Cluster File SystemCmviewcl -v -p SG-CFS-pkg Ftsys9 Sw sw Status of CFS Modular Disk Group and Mount Point PackagesCmviewcl -v -p mpdg1 Status of Legacy CVM Disk Group PackagesCfsmntadm display -v /tmp/logdata/logfiles Checking the Cluster Configuration and ComponentsFtsys10 Status of Legacy CFS Mount Point PackagesEtc/nsswitch.conf Etc/services Checking Cluster ComponentsUser-created files if you specify them Cmapplyconf 1m Verifying Cluster ComponentsRun cmcheckconf -C See the cron 1m manpage for more information Setting up Periodic Cluster VerificationManaging the Cluster and Nodes LimitationsCmruncl -v -n ftsys9 -n ftsys10 Starting the Cluster When all Nodes are DownAdding Previously Configured Nodes to a Running Cluster Using Serviceguard Commands to Start the ClusterCmhaltnode -f -v ftsys9 Removing Nodes from Participation in a Running ClusterHalting the Entire Cluster Cmrunnode -v ftsys8Automatically Restarting the Cluster What You Can DoRules and Restrictions Managing the Cluster and Nodes Additional Points To Note Halting a Node and Detaching its Packages Halting a Detached PackageHalting the Cluster and Detaching its Packages Managing Packages and Services Starting a PackageCmrunnode node1 Halting a Package that Has Dependencies Using Serviceguard Commands to Start a PackageHalting a Package Starting a Package that Has DependenciesMoving a Failover Package Changing Package Switching BehaviorUsing Serviceguard Commands to Halt a Package Changing Package Switching with Serviceguard CommandsMaintaining a Package Maintenance Mode See Performing Maintenance Using Maintenance ModeCmmodpkg -d -n lptest3 pkg1 Cluster and Package Maintenance Procedure Performing Maintenance Using Maintenance ModeCmrunpkg -m sg/packageip pkg1 Excluding Modules in Partial-Startup Maintenance ModeTypes of Changes to the Cluster Configuration Reconfiguring a ClusterCmrunpkg -e sg/service pkg1 Cmrunpkg -m sg/services -e sg/packageip pkg1Previewing the Effect of Cluster Changes Change to the Cluster ConfigurationCmmodpkg -e -t pkg1 Using Preview mode for Commands and in Serviceguard ManagerMode see Maintaining a Package Maintenance Mode What You Can PreviewUsing cmeval Cmeval -v newstate.inYou would see output something like this Updating the Cluster Lock LUN Configuration Online Updating the Cluster Lock ConfigurationReconfiguring a Halted Cluster Updating the Cluster Lock Disk Configuration OnlineCmgetconf -c cluster1 temp.ascii Reconfiguring a Running ClusterCmapplyconf -C clconfig.ascii Adding Nodes to the Cluster While the Cluster is RunningWhat You Can Do Cmquerycl -C clconfig.ascii -c cluster1 -n ftsys8 -n ftsys9What You Must Keep in Mind Example Adding a Heartbeat LAN Cmquerycl -c cluster1 -C clconfig.asciiRemoving a LAN or Vlan Interface from a Node Cmgetconf clconfig.asciiChanging the LVM Configuration while the Cluster is Running Changing the VxVM or CVM Storage ConfigurationSee also Replacing LAN or Fibre Channel Cards Configuring a Legacy Package Creating the Legacy Package ConfigurationCmgetconf -c clustername clconfig.ascii Configuring a Package in Stages Editing the Package Configuration FileMkdir /etc/cmcluster/pkg1 Cluster and Package Maintenance Cmmakepkg -s /etc/cmcluster/pkg1/pkg1.sh Creating the Package Control ScriptCustomizing the Package Control Script Support for Additional Products Adding Serviceguard Commands in Customer Defined FunctionsCmcheckconf -v -P /etc/cmcluster/pkg1/pkg1.conf Verifying the Package ConfigurationDistributing the Configuration Copying Package Control Scripts with HP-UX commandsConfiguring nodename Configuring Cross-Subnet FailoverIP0 = SUBNET0 IP1 = SUBNET1 Reconfiguring a PackageConfiguring monitoredsubnetaccess Creating Subnet-Specific Package Control ScriptsReconfiguring a Package on a Running Cluster Migrating a Legacy Package to a Modular PackageCmgetconf -p pkg1 pkg1.conf Adding a Package to a Running Cluster Reconfiguring a Package on a Halted ClusterUnmount the shared file system cfsumount mount point Deleting a Package from a Running ClusterCmhaltpkg mypkg Cmdeleteconf -p mypkg Cmapplyconf -v -P app1.confResetting the Service Restart Counter Allowable Package States During ReconfigurationCmmodpkg -R -s myservice pkg1 Types of Changes to Packages Change servicerestart modular packageLocallanfailoverallowed Change vxvolcmd Cfsmountoptions Changes that Will Trigger Warnings Responding to Cluster EventsDisabling Serviceguard Removing Serviceguard from a SystemSingle-Node Operation Testing the Package Manager Troubleshooting Your ClusterTesting Cluster Operation Start the Cluster using Serviceguard ManagerTesting the Cluster Manager Testing the Network ManagerMonitoring Hardware Hardware Monitors and Persistence Requests Using System Fault Management ServiceUsing Event Monitoring Service Using EMS Event Monitoring Service Hardware MonitorsReplacing Disks Using HP Isee HP Instant Support Enterprise EditionReplacing a Faulty Array Mechanism Replacing a Faulty Mechanism in an HA EnclosureReplacing a Lock LUN Replacing a Lock DiskReplacing Scsi Host Bus Adapters Online Hardware Maintenance with In-line Scsi TerminatorCmdisklock reset /dev/dsk/c0t1d1 Replacing I/O CardsOffline Replacement Online ReplacementReplacing LAN or Fibre Channel Cards After Replacing the Card Replacing a Failed Quorum Server SystemReviewing the System Log File Troubleshooting ApproachesUsing cmquerycl and cmcheckconf Using cmviewcl Reviewing Package IP AddressesCmreadlog /var/opt/cmom/cmomd.log Reviewing Object Manager Log FilesSample System Log Entries Following is an example of a successful package startingReviewing the System Multi-node Package Files Reviewing Serviceguard Manager Log FilesReviewing Configuration Files Using the cmcheckconf CommandServiceguard Command Hangs Solving ProblemsUsing the cmviewconf Command Reviewing the LAN ConfigurationNetworking and Security Configuration Errors Cluster Re-formations Caused by Temporary ConditionsNslookup ftsys9 Package Control Script Hangs or Failures System Administration ErrorsFuser -kulogical-volume umount logical-volume Llt, gab Vxfen W cvm Cfs Problems with Cluster File System CFSForce Import and Deport After Node Failure Problems with VxVM Disk GroupsPackage Movement Errors Node and Network FailuresAccess denied to quorum server Troubleshooting the Quorum ServerAuthorization File Problems Timeout ProblemsMessages Enterprise Cluster Master Toolkit Automating Application Operation Designing Highly Available Cluster ApplicationsControlling the Speed of Application Failover Insulate Users from OutagesDefine Application Startup and Shutdown Minimize Data Loss Use Raw VolumesReplicate Non-Data File Systems Evaluate the Use of JFSBalance Checkpoint Frequency with Performance Use Restartable TransactionsUse Checkpoints Design for Multiple ServersDesigning Applications to Run on Multiple Systems Design for Replicated Data SitesAvoid Node-Specific Information Allow Multiple Instances on Same System Avoid Using SPU IDs or MAC AddressesAssign Unique Names to Applications Obtain Enough IP AddressesUse uname2 With Care Bind to a Fixed PortBind to Relocatable IP Addresses Call bind before connect Give Each Application its Own Volume GroupUse Multiple Destinations for SNA Applications Avoid File LockingEtc/rc.config.d/nddconf as follows Usr/sbin/route add net default 128.17.17.1 1 sourceHelp menu for ndd -h ipstrongesmodel Restoring Client Connections Usr/sbin/route delete net default 128.17.17.1 1 sourceHandling Application Failures Create Applications to be Failure TolerantBe Able to Monitor Applications Do Not Change the Data Layout Between Releases Reducing Time Needed for Application Upgrades and PatchesProvide for Rolling Upgrades Minimizing Planned DowntimeDocumenting Maintenance Operations Providing Online Application ReconfigurationIntegrating HA Applications with Serviceguard Checklist for Integrating HA ApplicationsDefining Baseline Application Behavior on a Single System Integrating HA Applications in Multiple Systems Move it back Testing the ClusterSoftware Upgrades Special Considerations for Upgrade to Serviceguard A.11.20Special Considerations for Upgrade to Serviceguard A.11.19 Rolling Upgrade Using DRD Types of UpgradeHow To Tell when the Cluster Re-formation Is Complete Rolling UpgradeNon-Rolling Upgrade Using DRD Guidelines for Rolling UpgradeRestrictions for DRD Upgrades Non-Rolling UpgradeLimitations of Rolling Upgrades Performing a Rolling UpgradeRunning the Rolling Upgrade Keeping Kernels ConsistentMigrating cmclnodelist entries from A.11.15 or earlier Running the Rolling Upgrade Using DRD Performing a Rolling Upgrade Using DRDExample of a Rolling Upgrade StepHalt the first node, as follows Running Cluster with Packages Moved to Node Repeat the process on node 2. Halt the node, as follows Node 1 Rejoining the ClusterPerforming a Non-Rolling Upgrade Guidelines for Non-Rolling UpgradePerforming a Non-Rolling Upgrade Using DRD Limitations of Non-Rolling Upgrades using DRDSteps for a Non-Rolling Upgrade Using DRD Checklist for Migration Guidelines for Migrating a Cluster with Cold InstallPower Supply Worksheet Blank Planning WorksheetsWorksheet for Hardware Planning Quorum Server Worksheet LVM Volume Group and Physical Volume WorksheetVxVM Disk Group and Disk Worksheet Cluster Configuration WorksheetPackage Configuration Worksheet Package Configuration Worksheet Migrating Volume Groups Migrating from LVM to VxVM Data StorageLoading VxVM Mntdg0202, respectively Customizing Packages for VxVMRemoving LVM Volume Groups Customizing Packages for CVMRestart the package Migrating from Legacy CFS Packages to Modular CFS Packages IPv6 Network Support IPv6 Address TypesTextual Representation of IPv6 Addresses IPv4 Compatible IPv6 Addresses IPv6 Address PrefixUnicast Addresses IPv4 and IPv6 CompatibilityMulticast Addresses Aggregatable Global Unicast AddressesLink-Local Addresses Site-Local AddressesNetwork Configuration Restrictions Ndd -set /dev/ip6 ip6nddadsolicitcountn Example ConfigurationsLocal Primary/Standby LAN Patterns Ndd -get /dev/ip6 ip6nddadsolicitcountExample Configurations 384 IPv6 Network Support About the Online Help System Using Serviceguard ManagerBefore Using HP Serviceguard Manager Setting Up Accessing Serviceguard ManagerOpt/hpsmh/bin/hpsmh autostart Launching Serviceguard ManagerAccessing Serviceguard Manager Scenario 1 Single cluster managementSystem Management Homepage with Serviceguard Manager Expand HP Serviceguard, and click on a Serviceguard cluster SignFrom the left-hand panel, expand Cluster by Type Maximum and Minimum Values for Parameters MembertimeoutMonitoring Script for Generic Resources Sample scriptsLaunching Monitoring Scripts Launching Monitoring Scripts Template of a Monitoring Script I L I T Y N C T I O N S Monitoring Script for Generic Resources Template of a Monitoring Script Migrating EMS Resources to Generic Resources Identify the equivalent SFM style resource monitor Start the packageAPA Index399 Cvmactivationcmd Firstclusterlockpv LAN INONLYORINOUT, 69 Inout Pollingtarget defined Qsaddr Servicename Vxvmdg
Related manuals
Manual 32 pages 5.87 Kb