Veritas Storage Foundation™ Cluster File System Installation Guide Linux - Sfcfs - Install - 51sp1 - Lin
Veritas Storage Foundation™ Cluster File System Installation Guide Linux - Sfcfs - Install - 51sp1 - Lin
Linux
Legal Notice
Copyright 2010 Symantec Corporation. All rights reserved. Symantec, the Symantec logo, Veritas, Veritas Storage Foundation, CommandCentral, NetBackup, Enterprise Vault, and LiveUpdate are trademarks or registered trademarks of Symantec corporation or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. No part of this document may be reproduced in any form by any means without prior written authorization of Symantec Corporation and its licensors, if any. THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. SYMANTEC CORPORATION SHALL NOT BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING, PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE. The Licensed Software and Documentation are deemed to be commercial computer software as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19 "Commercial Computer Software - Restricted Rights" and DFARS 227.7202, "Rights in Commercial Computer Software or Commercial Computer Software Documentation", as applicable, and any successor regulations. Any use, modification, reproduction release, performance, display or disclosure of the Licensed Software and Documentation by the U.S. Government shall be solely in accordance with the terms of this Agreement.
Technical Support
Symantec Technical Support maintains support centers globally. Technical Supports primary role is to respond to specific queries about product features and functionality. The Technical Support group also creates content for our online Knowledge Base. The Technical Support group works collaboratively with the other functional areas within Symantec to answer your questions in a timely fashion. For example, the Technical Support group works with Product Engineering and Symantec Security Response to provide alerting services and virus definition updates. Symantecs support offerings include the following:
A range of support options that give you the flexibility to select the right amount of service for any size organization Telephone and/or Web-based support that provides rapid response and up-to-the-minute information Upgrade assurance that delivers software upgrades Global support purchased on a regional business hours or 24 hours a day, 7 days a week basis Premium service offerings that include Account Management Services
For information about Symantecs support offerings, you can visit our Web site at the following URL: www.symantec.com/business/support/index.jsp All support services will be delivered in accordance with your support agreement and the then-current enterprise technical support policy.
Hardware information Available memory, disk space, and NIC information Operating system Version and patch level Network topology Router, gateway, and IP address information Problem description:
Error messages and log files Troubleshooting that was performed before contacting Symantec Recent software configuration changes and network changes
Customer service
Customer service information is available at the following URL: www.symantec.com/business/support/ Customer Service is available to assist with non-technical questions, such as the following types of issues:
Questions regarding product licensing or serialization Product registration updates, such as address or name changes General product information (features, language availability, local dealers) Latest information about product updates and upgrades Information about upgrade assurance and support contracts Information about the Symantec Buying Programs Advice about Symantec's technical support options Nontechnical presales questions Issues that are related to CD-ROMs or manuals
Documentation
Product guides are available on the media in PDF format. Make sure that you are using the current version of the documentation. The document version appears on page 2 of each guide. The latest product documentation is available on the Symantec Web site. https://sort.symantec.com/documents Your feedback on product documentation is important to us. Send suggestions for improvements and reports on errors or omissions. Include the title and document version (located on the second page), and chapter and section titles of the text on which you are reporting. Send feedback to: [email protected]
Contents
Section 1
Chapter 1
Chapter 2
Contents
Chapter 3
Chapter 4
Section 2
Chapter 5
Chapter 6
Installing Storage Foundation Cluster File System using the web-based installer .................................... 67
About the Web-based installer ........................................................ 67 Features not supported with Web-based installer ............................... 68 Before using the Veritas Web-based installer ..................................... 68
Contents
Starting the Veritas Web-based installer .......................................... Obtaining a security exception on Mozilla Firefox .............................. Performing a pre-installation check with the Veritas Web-based installer ............................................................................... Installing SFCFS with the Web-based installer ...................................
69 69 70 70
Chapter 7
Section 3
Chapter 8
10
Contents
Chapter 9
Chapter 10
Contents
11
Configuring server-based I/O fencing using the installsfcfs .......... Setting up non-SCSI3 server-based I/O fencing using installsfcfs .......................................................................... Setting up server-based I/O fencing manually .................................. Preparing the CP servers manually for use by the SFCFS cluster .......................................................................... Configuring server-based fencing on the SFCFS cluster manually ...................................................................... Configuring Coordination Point agent to monitor coordination points ........................................................................... Verifying server-based I/O fencing configuration ....................... Setting up non-SCSI3 fencing in virtual environments manually ......... Sample /etc/vxfenmode file for non-SCSI3 fencing ..................... Enabling or disabling the preferred fencing policy ............................
163 172 172 173 177 181 183 184 186 188
Section 4
Chapter 11
Chapter 12
12
Contents
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Section 5
Chapter 17
Contents
13
Synchronizing time on Cluster File Systems .................................... Configuring VCS for Storage Foundation Cluster File System .............. main.cf file .......................................................................... Storage Foundation Cluster File System HA Only ....................... Veritas Cluster Server application failover services .................... Configuring the cluster UUID when creating a cluster manually ...................................................................... About the cluster UUID ............................................................... About the LLT and GAB configuration files ..................................... Verifying the LLT, GAB, and VCS configuration files ......................... Verifying LLT, GAB, and cluster operation ...................................... Verifying LLT ...................................................................... Verifying GAB ...................................................................... Verifying the cluster ............................................................. Verifying the cluster nodes ....................................................
251 252 252 253 254 254 254 254 257 258 258 260 262 263
Section 6
Chapter 18
Chapter 19
Removing a node from Storage Foundation Cluster File System clusters .................................................... 295
About removing a node from a cluster ............................................ Removing a node from a cluster .................................................... Modifying the VCS configuration files on existing nodes .................... Editing the /etc/llthosts file .................................................... Editing the /etc/gabtab file ..................................................... Modifying the VCS configuration to remove the node .................. 295 296 297 297 298 298
14
Contents
Removing the node configuration from the CP server ........................ Removing security credentials from the leaving node ....................... Updating the Storage Foundation for Databases (SFDB) repository after removing a node ........................................................... Sample configuration file for removing a node from the cluster ..........
Section 7
Chapter 20
Chapter 21
Contents
15
Verifying replication status .................................................... Configuring VCS to replicate the database volume using VVR ............. About modifying the VCS configuration for replication ............... Modifying the VCS Configuration on the Primary Site ................. Modifying the VCS Configuration on the Secondary Site .............. Using VCS commands on SFCFS global clusters ............................... Using VVR commands on SFCFS global clusters ............................... About migration and takeover of the primary site role ................. Migrating the role of primary site to the secondary site ............... Migrating the role of new primary site back to the original primary site .................................................................. Taking over the primary role by the remote cluster ..................... VCS agents to manage wide-area failover ..................................
331 331 331 333 337 341 341 342 342 343 344 348
Section 8
Chapter 22
Section 9
Appendix A
16
Contents
Appendix B
Response files
.................................................................... 379 379 380 380 381 382 382 383 385 394 395
About response files .................................................................... Installing SFCFS using response files ............................................. Configuring SFCFS using response files .......................................... Upgrading SFCFS using response files ............................................ Uninstalling SFCFS using response files ......................................... Syntax in the response file ........................................................... Response file variables to install, upgrade, or uninstall Storage Foundation Cluster File System ............................................... Response file variables to configure Storage Foundation Cluster File System ............................................................................... Sample response file for SFCFS install ............................................ Sample response file for SFCFS configure .......................................
Appendix C
Appendix D
Configuring the secure shell or the remote shell for communications ..........................................................
About configuring secure shell or remote shell communication modes before installing products ...................................................... Configuring and enabling ssh ....................................................... Restarting the ssh session ............................................................ Enabling rsh for Linux .................................................................
Appendix E
Contents
17
Veritas Storage Foundation obsolete and reorganized installation RPMs ................................................................................. 419
Appendix F
Appendix G
18
Contents
Unmount failures ................................................................. Mount failures ..................................................................... Command failures ................................................................ Performance issues ............................................................... High availability issues ..........................................................
Appendix H
Appendix I
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing ............................................ 469
Configuration diagrams for setting up server-based I/O fencing .......... Two unique client clusters served by 3 CP servers ....................... Client cluster served by highly available CPS and 2 SCSI-3 disks ............................................................................ Two node campus cluster served by remote CP server and 2 SCSI-3 disks .................................................................. Multiple client clusters served by highly available CP server and 2 SCSI-3 disks ................................................................ 469 469 470 472 474
Appendix J
Contents
19
The set-addr command in the /etc/llttab file .............................. Selecting UDP ports .............................................................. Sample configuration: direct-attached links .............................. Sample configuration: links crossing IP routers .........................
Appendix K
20
Contents
Section
Chapter 1. About Storage Foundation Cluster File System Chapter 2. Before you install Chapter 3. System requirements Chapter 4. Licensing Veritas products
22
Chapter
Veritas Storage Foundation Cluster File System suites About I/O fencing About Veritas graphical user interfaces
24
Table 1-1
The nodes that must retain access to the shared storage The nodes that must be ejected from the cluster
This decision prevents possible data corruption. The installer installs the I/O fencing driver, VRTSvxfen, when you install Storage Foundation Cluster File System. To protect data on shared disks, you must configure I/O fencing after you install and configure Storage Foundation Cluster File System. I/O fencing technology uses coordination points for arbitration in the event of a network partition. You can configure I/O fencing to use one or both of the following components as coordination points:
Coordinator disk I/O fencing that uses coordinator disks is referred to as disk-based I/O fencing. Disk-based I/O fencing ensures data integrity in a single cluster.
About Storage Foundation Cluster File System About Veritas graphical user interfaces
25
I/O fencing that uses at least one CP server system is referred to as server-based I/O fencing. Server-based I/O fencing ensures data integrity in multiple clusters. In virtualized environments that do not support SCSI-3 PR, Storage Foundation Cluster File System supports non-SCSI3 server-based I/O fencing. See About I/O fencing for Storage Foundation Cluster File System in virtual machines that do not support SCSI-3 PR on page 91.
Note: Symantec recommends that you use I/O fencing to protect your cluster against split-brain situations. See the Veritas Storage Foundation Cluster File System Administrator's Guide.
26
About Storage Foundation Cluster File System About Veritas graphical user interfaces
Veritas Operations Manager provides a centralized management console for Veritas Storage Foundation and High Availability products. You can use Veritas Operations Manager to monitor, visualize, and manage storage resources and generate reports. Veritas Operations Manager is not available on the Storage Foundation and High Availability Solutions release. You can download Veritas Operations Manager at no charge at http://go.symantec.com/vom. Refer to the Veritas Operations Manager documentation for installation, upgrade, and configuration instructions.
Chapter
About planning for SFCFS installation About installation and configuration methods Assessing system preparedness Downloading the Veritas Storage Foundation Cluster File System software Setting environment variables Optimizing LLT media speed settings on private NICs Guidelines for setting the media speed of the LLT interconnects Verifying network interfaces for persistent names About configuring ssh or rsh using the Veritas installer Setting up shared storage Prerequisites for Veritas Storage Foundation Cluster File System Hardware overview and requirements for Veritas Storage Foundation Cluster File System
28
This installation guide is designed for system administrators who already have a knowledge of basic UNIX system and network administration. Basic knowledge includes commands such as tar, mkdir, and simple shell scripting. Also required is basic familiarity with the specific platform and operating system where SFCFS will be installed. Follow the preinstallation instructions if you are installing one of the Veritas Storage Foundation Cluster File System products by Symantec. The following Veritas Storage Foundation Cluster File System products by Symantec are installed with these instructions:
Veritas Storage Foundation Cluster File System Veritas Storage Foundation Cluster File System High Availability (HA)
Several component products are bundled with each of these SFCFS products. See Veritas Storage Foundation Cluster File System suites on page 23.
29
Common product installer script: installer The common product installer script provides a menu that simplifies the selection of installation and configuration options. Use this method to install other products, such as the Symantec Product Authentication Service (AT), along with SFCFS.
Product-specific installation script: installsfcfs The product-specific installation script provides command-line interface options. Installing and configuring with the installsfcfs script is identical to specifying SFCFS from the installer script. Use this method to install or configure only SFCFS.
The response file automates installation and configuration by using system and configuration information stored in a specified file instead of prompting for information. You can use the script-based installers with the response file to install silently on one or more systems. See About response files on page 379.
Web-based installer
The Web-based installer provides an interface to manage the installation and configuration from a remote site using a standard Web browser. ./webinstaller See About the Web-based installer on page 67.
30
Manual installation uses the Linux commands to install SFCFS. To retrieve a list of all RPMs and patches required for all products in the correct installation order, enter: # installer -allpkgs Use the Linux commands to install SFCFS. Then use a manual or an interactive method with installsfcfs or installer script to configure the SFCFS stack.
31
Prechecking your systems using the installer Performs a pre-installation check on the specified systems. The Veritas product installer reports whether the specified systems meet the minimum requirements for installing Veritas Storage Foundation Cluster File System 5.1 SP1. See Prechecking your systems using the Veritas installer on page 31.
Recommended swap space for installation Recommended memory sizes on target systems for Veritas programs for best performance Required operating system versions
1 2
From the Web-based installer, select the Perform a Pre-Installation Check from the Task pull-down menu. In the script-based installer, from root on the system where you want to perform the check, start the installer.
# ./installer
32
Before you install Downloading the Veritas Storage Foundation Cluster File System software
Review the output and make the changes that the installer recommends.
Verify that you have enough space on your filesystem to store the downloaded software. The estimated space for download, gunzip, and tar extract is 1 GB. If you plan to install the software on the same system, make sure that you also have enough space for the installed software. See Disk space requirements on page 51.
To see the space available, you can use the df command with the name of the local file system where you intend to download the software.
# df -k filesystem
Caution: When you select a location to download files, do not select a directory that contains Veritas products from a previous release or maintenance pack. Make sure that different versions exist in different directories.
Download the software, specifying the file system with sufficient space for the file.
33
If you are using a shell such as csh or tcsh, enter the following:
% setenv MANPATH $(MANPATH):/opt/VRTS/man
On a Red Hat system, also include the 1m manual page section in the list defined by your MANSECT environment variable.
If you are using a shell such as csh or tcsh, enter the following:
% setenv MANSECT $(MANSECT):1m
If you use the man(1) command to access manual pages, set LC_ALL=C in your shell to ensure that they display correctly.
34
Before you install Guidelines for setting the media speed of the LLT interconnects
switches or the hubs that are used for the LLT interconnections must match that of the interface cards. Incorrect settings can cause poor network performance or even network failure. If you use different media speed for the private NICs, Symantec recommends that you configure the NICs with lesser speed as low-priority links to enhance LLT performance.
Symantec recommends that you manually set the same media speed setting on each Ethernet card on each node. If you use different media speed for the private NICs, Symantec recommends that you configure the NICs with lesser speed as low-priority links to enhance LLT performance. If you have hubs or switches for LLT interconnects, then set the hub or switch port to the same setting as used on the cards on each node. If you use directly connected Ethernet links (using crossover cables), Symantec recommends that you set the media speed to the highest value common to both cards, typically 1000_Full_Duplex.
Details for setting the media speeds for specific devices are outside of the scope of this manual. Consult the devices documentation for more information.
Make sure that the network interface names are persistent. If the network interface names are not persistent, then manually configure persistent interfaces. For RHEL, SLES, and OEL, refer to the OS documentation for information on configuring persistent interfaces.
Before you install About configuring ssh or rsh using the Veritas installer
35
When the root broker is outside of the cluster that you plan to configure. When you add new nodes to an existing cluster. When the nodes are in a sub-cluster during a phased upgrade. When you perform installer sessions using a response file.
See About configuring secure shell or remote shell communication modes before installing products on page 407.
36
See also the Veritas Storage Foundation Cluster File System Administrator's Guide for a description of I/O fencing.
1 2 3 4 5
Connect the disk to the first cluster system. Power on the disk. Connect a terminator to the other port of the disk. Boot the system. The disk is detected while the system boots. Press CTRL+A to bring up the SCSI BIOS settings for that disk. Set the following:
Set Host adapter SCSI ID = 7, or to an appropriate value for your configuration. Set Host Adapter BIOS in Advanced Configuration Options to Disabled.
Format the shared disk and create required partitions on it. Perform the following:
Identify your shared disk name. If you have two internal SCSI hard disks, your shared disk is /dev/sdc. Identify whether the shared disk is sdc, sdb, and so on. Type the following command:
# fdisk /dev/shareddiskname
Create disk groups and volumes using Volume Manager utilities. To apply a file system on the volumes, type:
# mkfs -t fs-type /dev/vx/dsk/disk-group/volume
37
Where the name of the disk group is dg, the name of the volume is vol01, and the file system type is vxfs.
7 8 9
Power off the disk. Remove the terminator from the disk and connect the disk to the other cluster system. Power on the disk.
10 Boot the second system. The system can now detect the disk. 11 Press Ctrl+A to bring up the SCSI BIOS settings for the disk.
Set the following:
Set Host adapter SCSI ID = 6, or to an appropriate value for your configuration. Note that the SCSI ID should be different from the one configured on the first cluster system. Set Host Adapter BIOS in Advanced Configuration Options to Disabled.
12 Verify that you can view the shared disk using the fdisk command.
1 2
Connect the Fibre Channel disk to a cluster system. Boot the system and change the settings of the Fibre Channel. Perform the following tasks for all QLogic adapters in the system:
Press Alt+Q to bring up the QLogic adapter settings menu. Choose Configuration Settings. Click Enter. Choose Advanced Adapter Settings. Click Enter. Set the Enable Target Reset option to Yes (the default value). Save the configuration. Reboot the system.
3 4
Verify that the system detects the Fibre Channel disks properly. Create volumes. Format the shared disk and create required partitions on it and perform the following:
38
Identify your shared disk name. If you have two internal SCSI hard disks, your shared disk is /dev/sdc. Identify whether the shared disk is sdc, sdb, and so on. Type the following command:
# fdisk /dev/shareddiskname
Create disk groups and volumes using Volume Manager utilities. To apply a file system on the volumes, type:
# mkfs -t fs-type /dev/vx/dsk/disk-group/volume
Where the name of the disk group is dg, the name of the volume is vol01, and the file system type is vxfs.
5 6 7 8 9
Repeat step 2 and step See 3 on page 37. for all nodes in the clusters that require connections with Fibre Channel. Power off this cluster system. Connect the same disks to the next cluster system. Turn on the power for the second system. Verify that the second system can see the disk names correctlythe disk names should be the same. See Verifying that the nodes have access to the same disk on page 152.
Before you install Prerequisites for Veritas Storage Foundation Cluster File System
39
The cluster name, beginning with a letter (a-z, A-Z). A unique ID from 0-65535 for the cluster. Within the public subnet, a new cluster using a duplicate cluster ID can cause existing clusters to fail. The host names of the cluster nodes. The device names of the network interface cards (NICs) used for the private networks among nodes. Establishing communication between nodes is required to install Veritas software from a remote system, or to install and configure a cluster. The node from which the installation utility is run must have permissions to run rsh (remote shell) or ssh (secure shell) utilities as root on all cluster nodes or remote systems. Symantec recommends configuring the cluster with I/O fencing enabled. I/O fencing requires shared devices to support SCSI-3 Persistent Reservations (PR). Enabling I/O fencing prevents data corruption caused by a split brain scenario. The Veritas Storage Foundation Cluster File System is supported without I/O fencing enabled. However, without I/O fencing enabled, split brain scenarios can result in data corruption.
Hardware overview and requirements for Veritas Storage Foundation Cluster File System
VxFS cluster functionality runs optimally on a Fibre Channel fabric. Fibre Channel technology provides the fastest, most reliable, and highest bandwidth connectivity currently available. By employing Fibre Channel technology, SFCFS can be used in conjunction with the latest Veritas Storage Area Network (SAN) applications to provide a complete data storage and retrieval solution. Figure 2-1 shows the configuration of a cluster file system on a Fibre Channel fabric with a disk array.
40
Before you install Hardware overview and requirements for Veritas Storage Foundation Cluster File System
Figure 2-1
Shared storage
Shared storage can be one or more shared disks or a disk array connected either directly to the nodes of the cluster or through a Fibre Channel Switch. Nodes can also have non-shared or local devices on a local I/O channel. It is advisable to have /, /usr, /var and other system partitions on local devices.
Before you install Hardware overview and requirements for Veritas Storage Foundation Cluster File System
41
Cluster platforms
There are several hardware platforms that can function as nodes in a Storage Foundation Cluster File System (SFCFS) cluster. See the Veritas Storage Foundation Cluster File System Release Notes. Note: For a cluster to work correctly, all nodes must have the same time. If you are not running the Network Time Protocol (NTP) daemon, make sure the time on all the systems comprising your cluster is synchronized.
42
Before you install Hardware overview and requirements for Veritas Storage Foundation Cluster File System
Chapter
System requirements
This chapter includes the following topics:
Release notes Hardware compatibility list (HCL) I/O fencing requirements Supported Linux operating systems Memory requirements CPU requirements Node requirements Database requirements Mandatory patch required for Oracle Bug 4130116 VxVM licenses Cross-Platform Data Sharing licensing Disk space requirements Number of nodes supported
Release notes
The Release Notes for each Veritas product contains last minute news and important details for each product, including updates to system requirements and supported software. Review the Release Notes for the latest information before you start installing the product. The product documentation is available on the Web at the following location:
44
http://www.symantec.com/business/support/overview.jsp?pid=15107
Coordinator disks See Coordinator disk requirements for I/O fencing on page 44. CP servers See CP server requirements on page 45.
If you have installed Storage Foundation Cluster File System in a virtual environment that is not SCSI-3 PR compliant, review the requirements to configure non-SCSI3 server-based fencing. See Non-SCSI3 I/O fencing requirements on page 48.
For disk-based I/O fencing, you must have three coordinator disks. The coordinator disks can be raw devices, DMP devices, or iSCSI devices. Each of the coordinator disks must use a physically separate disk or LUN. Symantec recommends using the smallest possible LUNs for coordinator disks. Each of the coordinator disks should exist on a different disk array, if possible. The coordinator disks must support SCSI-3 persistent reservations. Symantec recommends using hardware-based mirroring for coordinator disks.
45
Coordinator disks must not be used to store data or must not be included in disk groups that store user data. Coordinator disks cannot be the special devices that array vendors use. For example, you cannot use EMC gatekeeper devices as coordinator disks.
CP server requirements
Storage Foundation Cluster File System 5.1SP1 clusters (application clusters) support CP servers which are hosted on the following VCS and SFHA versions:
VCS 5.1 or 5.1SP1 single-node cluster CP server requires LLT and GAB to be configured on the single-node VCS cluster that hosts CP server. This requirement also applies to any single-node application cluster that uses server-based fencing. SFHA 5.1 or 5.1SP1 cluster
Warning: Before you upgrade CP server nodes to use VCS or SFHA 5.1SP1, you must upgrade all the application clusters that use this CP server to version 5.1SP1. Application clusters at version 5.1 cannot communicate with CP server that runs VCS or SFHA 5.1 SP1. Make sure that you meet the basic hardware requirements for the VCS/SFHA cluster to host the CP server. See the Veritas Cluster Server Installation Guide or the Veritas Storage Foundation High Availability Installation Guide. Note: While Symantec recommends at least three coordination points for fencing, a single CP server as coordination point is a supported server-based fencing configuration. Such single CP server fencing configuration requires that the coordination point be a highly available CP server that is hosted on an SFHA cluster. Make sure you meet the following additional CP server requirements which are covered in this section before you install and configure CP server:
Hardware requirements Operating system requirements Networking requirements (and recommendations) Security requirements
46
Table 3-1 lists additional requirements for hosting the CP server. Table 3-1 CP server hardware requirements Description
To host the CP server on a VCS cluster or SFHA cluster, each host requires the following file system space: 550 MB in the /opt directory (additionally, the language pack requires another 15 MB) 300 MB in /usr
Hardware required
Disk space
20 MB in /var
Storage
When CP server is hosted on an SFHA cluster, there must be shared storage between the CP servers. Each CP server requires at least 512 MB. A secure TCP/IP connection is required to connect the CP servers to the Storage Foundation Cluster File System clusters (application clusters).
Table 3-2 displays the CP server supported operating systems and versions. An application cluster can use a CP server that runs any of the following supported operating systems. Table 3-2 CP server CP server supported operating systems and versions Operating system and version
CP server hosted on a VCS CP server supports any of the following operating systems: single-node cluster or on an AIX 5.3 and 6.1 SFHA cluster HP-UX 11i v3
Linux: RHEL 5
SLES 10 SLES 11
Solaris 9 and 10
Review other details such as supported operating system levels and architecture for the supported operating systems. See the Veritas Cluster Server Installation Guide or the Veritas Storage Foundation High Availability Installation Guide.
47
Symantec recommends that network access from the application clusters to the CP servers should be made highly-available and redundant. The network connections require either a secure LAN or VPN. The CP server uses the TCP/IP protocol to connect to and communicate with the application clusters by these network paths. The CP server listens for messages from the application clusters using TCP port 14250. This is the default port that can be changed during a CP server configuration. The CP server supports either Internet Protocol version 4 or version 6 (IPv4 or IPv6 addresses) when communicating with the application clusters. If the CP server is configured to use an IPv6 virtual IP address, then the application clusters should also be on the IPv6 network where the CP server is being hosted. When placing the CP servers within a specific network configuration, you must take into consideration the number of hops from the different application cluster nodes to the CP servers. As a best practice, Symantec recommends that the number of hops from the different application cluster nodes to the CP servers should be equal. This ensures that if an event occurs that results in an I/O fencing scenario, there is no bias in the race due to the number of hops between the nodes.
For secure communications between the SFCFS cluster and CP server, consider the following requirements and suggestions:
In a secure communication environment, all CP servers that are used by the application cluster must be configured with security enabled. A configuration where the application cluster uses some CP servers running with security enabled and other CP servers running with security disabled is not supported. The CP server and application clusters should also use the same root broker. If the same root broker is not being used, then trust can be established between the cluster nodes and CP server for the secure communication. Trust can be established by the installer when configuring fencing. For non-secure communication between CP server and application clusters, there is no need to configure Symantec Product Authentication Service. In non-secure mode, authorization is still provided by CP server for the application cluster users. The authorization that is performed only ensures that authorized users can perform appropriate actions as per their user privileges on the CP server.
For information about establishing secure communications between the application cluster and CP server, see the Veritas Storage Foundation Cluster File System Administrator's Guide.
48
VMware Server ESX 3.5 and 4.0 on AMD Opteron or Intel Xeon EM64T (x86_64) Guest operating system:
Red Hat Enterprise Linux 5 (RHEL5) with Update 3 (2.6.18-194.el5 kernel) or later SUSE Linux Enterprise Server 10 (SLES10) with SP3 (2.6.16.60-0.54.5 kernel) or later SUSE Linux Enterprise Server 11 (SLES11) with SP1 (2.6.32.12-0.7 kernel) or later
Make sure that you also meet the following requirements to configure non-SCSI3 fencing in the virtual environments that do not support SCSI-3 PR:
Storage Foundation Cluster File System must be configured with Cluster attribute UseFence set to SCSI3 All coordination points must be CP servers
Red Hat Enterprise Linux 5 (RHEL 5) with Update 3 (2.6.18-128.el5 kernel) or later on AMD Opteron or Intel Xeon EM64T (x86_64) SUSE Linux Enterprise Server 10 (SLES 10) with SP2 (2.6.16.60-0.21 kernel) or SP3 on AMD Opteron or Intel Xeon EM64T (x86_64) SUSE Linux Enterprise Server 11 (SLES 11) (2.6.27.19-5-default kernel) or SUSE Linux Enterprise Server 11 (SLES 11) with SP1 on AMD Opteron or Intel Xeon EM64T (x86_64) Oracle Enterprise Linux 5 (OEL 5) with Update 3 or later (Red Hat compatible kernel mode only)
Note: 64-bit operating systems are only supported. If your system is running an older version of either Red Hat Enterprise Linux, SUSE Linux Enterprise Server, or Oracle Enterprise Linux, you must upgrade it
49
before attempting to install the Veritas software. Consult the Red Hat, SUSE, or Oracle documentation for more information on upgrading or reinstalling your system. Symantec supports only Oracle, Red Hat, and SUSE distributed kernel binaries. Symantec products operate on subsequent kernel and patch releases provided the operating systems maintain kernel ABI (application binary interface) compatibility. Information about the latest supported Red Hat errata and updates and SUSE service packs is available in the following TechNote. Read this TechNote before you install Symantec products. http://entsupport.symantec.com/docs/335001
Memory requirements
2 GB of memory is required for Veritas Storage Foundation Cluster File System.
CPU requirements
A minimum of 2 CPUs is required for Veritas Storage Foundation Cluster File System.
Node requirements
All nodes in a Cluster File System must have the same operating system version and update level.
Database requirements
The following TechNote identifies the most current information on supported database and operating system combinations: http://entsupport.symantec.com/docs/331625 Note: SFCFS does not support running SFDB tools with DB2 and Sybase.
50
VxVM licenses
The following table shows the levels of licensing in Veritas Volume Manager and the features supported at each level. Table 3-3 describes the levels of licensing in Veritas Volume Manager and supported features. Table 3-3 Levels of licensing in Veritas Volume Manager and supported features Description of Supported Features
Concatenation, spanning, rootability, volume resizing, multiple disk groups, co-existence with native volume manager, striping, mirroring, DRL logging for mirrors, striping plus mirroring, mirroring plus striping, RAID-5, RAID-5 logging, Smartsync, hot sparing, hot-relocation, online data migration, online relayout, volume snapshots, volume sets, Intelligent Storage Provisioning, FastResync with Instant Snapshots, Storage Expert, Device Discovery Layer (DDL), Dynamic Multipathing (DMP), and Veritas Enterprise Administrator (VEA). Features that augment the Full VxVM license such as clustering functionality (cluster-shareable disk groups and shared volumes) and Veritas Volume Replicator.
VxVM License
Full
Add-on Licenses
Note: You need a Full VxVM license to make effective use of add-on licenses to VxVM. To see the license features that are enabled in VxVM
51
52
Chapter
About Veritas product licensing Setting or changing the product level for keyless licensing Installing Veritas product license keys
Install a license key for the product and features that you want to install. When you purchase a Symantec product, you receive a License Key certificate. The certificate specifies the product keys and the number of product licenses purchased. Continue to install without a license key. The installer prompts for the product modes and options that you want to install, and then sets the required product level.
54
Licensing Veritas products Setting or changing the product level for keyless licensing
Within 60 days of choosing this option, you must install a valid license key corresponding to the license level entitled or continue with keyless licensing by managing the server or cluster with a management server. If you do not comply with the above terms, continuing to use the Veritas product is a violation of your end user license agreement, and results in warning messages. For more information about keyless licensing, see the following URL: http://go.symantec.com/sfhakeyless If you upgrade to this release from a prior release of the Veritas software, the product installer does not change the license keys that are already installed. The existing license keys may not activate new features in this release. If you upgrade with the product installer, or if you install or upgrade with a method other than the product installer, you must do one of the following to license the products:
Run the vxkeyless command to set the product level for the products you have purchased. This option also requires that you manage the server or cluster with a management server. See Setting or changing the product level for keyless licensing on page 54. See the vxkeyless(1m) manual page. Use the vxlicinst command to install a valid product license key for the products you have purchased. See Installing Veritas product license keys on page 56. See the vxlicinst(1m) manual page.
You can also use the above options to change the product levels to another level that you are authorized to use. For example, you can add the replication option to the installed product. You must ensure that you have the appropriate license for the product level and options in use. Note: In order to change from one product group to another, you may need to perform additional steps.
Licensing Veritas products Setting or changing the product level for keyless licensing
55
http://go.symantec.com/vom When you set the product license level for the first time, you enable keyless licensing for that system. If you install with the product installer and select the keyless option, you are prompted to select the product and feature level that you want to license. After you install, you can change product license levels at any time to reflect the products and functionality that you want to license. When you set a product level, you agree that you have the license for that functionality. To set or change the product level
where prod_levels is a comma-separated list of keywords. If you want to remove keyless licensing and enter a key, you must clear the keyless licenses. Use the NONE keyword to clear all keys from the system. Warning: Clearing the keys disables the Veritas products until you install a new key or set a new product level. To clear the product license level
For more details on using the vxkeyless utility, see the vxkeyless(1m) manual page.
56
Even though other products are included on the enclosed software discs, you can only use the Symantec software products for which you have purchased a license To install a new license
Run the following commands. In a cluster environment, run the commands on each node in the cluster:
# cd /opt/VRTS/bin # ./vxlicinst -k xxxx-xxxx-xxxx-xxxx-xxxx-xxx
Section
Chapter 5. Installing Storage Foundation Cluster File System using the common product installer Chapter 6. Installing Storage Foundation Cluster File System using the web-based installer Chapter 7. Installing Storage Foundation Cluster File System, other methods
58
Chapter
Installing Storage Foundation Cluster File System using the common product installer
This chapter includes the following topics:
Installation preparation overview Mounting the product disc About the Veritas installer Installing Storage Foundation Cluster File System using the product installer
60
Installing Storage Foundation Cluster File System using the common product installer Mounting the product disc
Download the software, or insert the product See Downloading the Veritas Storage DVD. Foundation Cluster File System software on page 32. See Mounting the product disc on page 60. Set environment variables. See Setting environment variables on page 33.
Configure the secure shell (ssh) on all nodes. See About configuring secure shell or remote shell communication modes before installing products on page 407. Verify that hardware, software, and operating system requirements are met. See Supported Linux operating systems on page 48. See Release notes on page 43. Check that sufficient disk space is available. See Disk space requirements on page 51. Use the installer to install the products. See About the Veritas installer on page 61.
Log in as superuser on a system where you want to install SFCFS. The system from which you install SFCFS need not be part of the cluster. The systems must be in the same subnet.
Insert the product disc with the SFCFS software into a drive that is connected to the system. The disc is automatically mounted.
Installing Storage Foundation Cluster File System using the common product installer About the Veritas installer
61
Where dist is rhel5, sles10, or sles11, and arch is x86_64 for RHEL and SLES.
Use b (back) to return to a previous section of the installation procedure. The back feature of the installation scripts is context-sensitive, so it returns to the beginning of a grouped section of questions. Use Controlc to stop and exit the program if an installation procedure hangs. After a short delay, the script exits. Use q to quit the installer. Use ? to display help information. Use the Enter button to accept a default response.
Additional options are available for the installer. See Installation script options on page 372.
Installing Storage Foundation Cluster File System using the product installer
The product installer is the recommended method to license and install Storage Foundation Cluster File System or Storage Foundation Cluster File System HA. The following sample procedure is based on the installation of a Veritas Storage Foundation Cluster File System HA cluster with two nodes: "host1" and "host2" If you are installing on standalone systems only, some steps are unnecessary, and these are indicated. Default responses are enclosed by parentheses. Press Return to accept defaults.
62
Installing Storage Foundation Cluster File System using the common product installer Installing Storage Foundation Cluster File System using the product installer
Note: If you have obtained a Veritas product from an electronic download site, the single product download files do not contain the installer installation script, so you must use the product installation script to install the product. For example, if you download Veritas Cluster File System, use the installsfcfs script instead of the installer script. To install Storage Foundation Cluster File System products
To install on multiple systems, set up the systems so that commands between systems execute without prompting for passwords or confirmations. See About configuring secure shell or remote shell communication modes before installing products on page 407.
2 3
Load and mount the software disc. Move to the top-level directory on the disc.
# cd /dvd_mount
From this directory, type the following command to install on the local system. Also use this command to install on remote systems provided that the secure shell (ssh) or remote shell (rsh) utilities are configured:
# ./installer
5 6
Enter I to install and press Return. From the Installation menu, choose the I option for Install and enter the number for Storage Foundation Cluster File System or Storage Foundation Cluster File System HA. Press Return. Do not select the "Storage Foundation Cluster File System for Oracle RAC" option unless you have the correct license and setup. The example installation assumes you have selected SFCFS HA.
At the prompt, specify whether you accept the terms of the End User License Agreement (EULA).
Do you agree with the terms of the End User License Agreement as specified in the storage_foundation_cluster_file_system/EULA/lang/EULA_CFS_Ux_5.1SP1.pdf file present on the media? [y,n,q,?] y
Installing Storage Foundation Cluster File System using the common product installer Installing Storage Foundation Cluster File System using the product installer
63
Minimal RPMs: installs only the basic functionality for the selected product. Recommended RPMs: installs the full feature set without optional RPMs. All RPMs: installs all available RPMs.
Each option displays the disk space that is required for installation. Select which option you want to install and press Return.
You are prompted to enter the system names (in the following example, "host1" and "host2") on which the software is to be installed. Enter the system name or names and then press Return.
Enter the system names separated by spaces:[q?] (host1 host2)
10 During the initial system check, the installer verifies that communication
between systems has been set up. If the installer hangs or asks for a login password, stop the installer and set up ssh or rsh. Then run the installer again. See About configuring secure shell or remote shell communication modes before installing products on page 407.
11 After the system checks complete, the installer displays a list of the RPMs
that will be installed. Press Enter to continue with the installation.
64
Installing Storage Foundation Cluster File System using the common product installer Installing Storage Foundation Cluster File System using the product installer
If you have a valid license key, select 1 and enter the license key at the prompt. Skip to step 17. To install using keyless licensing, select 2. You are prompted for the product modes and the options that you want to install and license. Note: The keyless license option enables you to install without entering a key. However, you must still have a valid license to install and use Veritas products. Keyless licensing requires that you manage the systems with a Management Server.Refer to the following URL for details: http://go.symantec.com/vom
Installing Storage Foundation Cluster File System using the common product installer Installing Storage Foundation Cluster File System using the product installer
65
16 At the prompt, specify whether you want to send your installation information
to Symantec.
Would you like to send the information about this installation to Symantec to help improve installation in the future? [y,n,q,?] (y) n
If you select y to configure now, respond to the prompts to configure the cluster.
66
Installing Storage Foundation Cluster File System using the common product installer Installing Storage Foundation Cluster File System using the product installer
Chapter
Installing Storage Foundation Cluster File System using the web-based installer
This chapter includes the following topics:
About the Web-based installer Features not supported with Web-based installer Before using the Veritas Web-based installer Starting the Veritas Web-based installer Obtaining a security exception on Mozilla Firefox Performing a pre-installation check with the Veritas Web-based installer Installing SFCFS with the Web-based installer
68
Installing Storage Foundation Cluster File System using the web-based installer Features not supported with Web-based installer
When the webinstaller script starts the xprtlwid process, the script displays a URL. Use this URL to access the Web-based installer from Internet Explorer or FireFox. The Web installer creates log files whenever the Web installer is operating. While the installation processes are operating, the log files are located in a session-based directory under the /var/tmp directory. After the install process completes, the log files are located in the /opt/VRTS/install/logs directory. It is recommended that you keep the files for auditing, debugging, and for future use. The location of the Veritas XPortal Server configuration file is /var/opt/webinstaller/xprtlwid.conf. See Before using the Veritas Web-based installer on page 68. See Starting the Veritas Web-based installer on page 69.
Configuring server-based I/O fencing Configuring non-SCSI3 I/O fencing in virtual environments where SCSI3 is not supported
The systems where you plan to install Must be a supported the Veritas products. platform for Veritas Storage Foundation Cluster File System 5.1 SP1. The server where you start the installation. The installation media is accessible from the installation server. Must use the same operating system as the target systems and must be at one of the supported operating system update levels.
Installation server
Installing Storage Foundation Cluster File System using the web-based installer Starting the Veritas Web-based installer
69
Requirements
Must have a Web browser. Supported browsers: Internet Explorer 6, and later. Firefox 3.x, and later.
Administrative system
Start the Veritas XPortal Server process xprtlwid, on the installation server:
# ./webinstaller start
The webinstaller script displays a URL. Note this URL. Note: If you do not see the URL, run the command again.
2 3 4
On the administrative server, start the Web browser. Navigate to the URL that the script displayed. The browser may display the following message:
Secure Connection Failed
When prompted, enter root and root's password of the installation server.
1 2
Click Or you can add an exception link. Click Add Exception button.
70
Installing Storage Foundation Cluster File System using the web-based installer Performing a pre-installation check with the Veritas Web-based installer
3 4 5 6
Click Get Certificate button. Uncheck Permanently Store this exception checkbox (recommended). Click Confirm Security Exception button. Enter root in User Name field and root password of the web server in the Password field.
Start the Web-based installer. See Starting the Veritas Web-based installer on page 69.
2 3 4 5 6
On the Select a task and a product page, select Perform a Pre-installation Check from the Task drop-down list. Select the product from the Product drop-down list, and click Next. Indicate the systems on which to perform the precheck. Enter one or more system names, separated by spaces. Click Validate. The installer performs the precheck and displays the results. If the validation completes successfully, the installer prompts you to begin the installation. Click Yes to install on the selected system. Click No to install later. Click Finish. The installer prompts you for another task.
1 2 3
Perform preliminary steps. See Performing a pre-installation check with the Veritas Web-based installer on page 70. Select Install a Product from the Task drop-down list. Select Veritas Storage Foundation Cluster File System from the Product drop-down list, and click Next.
Installing Storage Foundation Cluster File System using the web-based installer Installing SFCFS with the Web-based installer
71
4 5 6 7
On the License agreement page, read the End User License Agreement (EULA). To continue, select Yes, I agree and click Next. Choose minimal, recommended, or all RPMs. Click Next. Indicate the systems where you want to install. Separate multiple system names with spaces. Click Validate. If you have not yet configured a communication mode among systems, you have the option to let the installer configure ssh or rsh. If you choose to allow this configuration, select the communication mode and provide the superuser passwords for the systems. After the validation completes successfully, click Next to install SFCFS or SFCFSHA on the selected system. After the installation completes, you must choose your licensing method. On the license page, select one of the following tabs:
8 9
Keyless licensing Note: The keyless license option enables you to install without entering a key. However, in order to ensure compliance you must manage the systems with a management server. For more information, go to the following website: http://go.symantec.com/sfhakeyless Complete the following information:
Click Register.
Enter license key If you have a valid license key, select this tab. Enter the license key for each system. Click Register.
72
Installing Storage Foundation Cluster File System using the web-based installer Installing SFCFS with the Web-based installer
10 The installer prompts you to configure the cluster. Select Yes to continue
with configuring the product. If you select NO, you can exit the installer. You must configure the product before you can use SFCFS. After the installation completes, the installer displays the location of the log and summary files. If required, view the files to confirm the installation status.
11 Select the checkbox to specify whether you want to send your installation
information to Symantec.
Would you like to send the information about this installation to Symantec to help improve installation in the future?
Click Finish.
Chapter
Generate the Kickstart configuration files and the installproduct and uninstallproduct scripts. The configuration files have the extension .ks. Do one of the following:
To generate scripts and configuration files for all products, including Veritas Storage Foundation (SF), Storage Foundation Cluster File System (SFCFS), Storage Foundation for Oracle RAC (SFRAC), and Storage Foundation Cluster File System for Oracle RAC (SFCFSRAC), enter the following command:
# ./installer -kickstart /kickstart_files/
74
Installing Storage Foundation Cluster File System, other methods Installing SFCFS using Kickstart
The system lists the scripts and files as they are generated.
To only generate scripts and configuration files for SFCFS, enter the following command:
# ./installsfcfs -kickstart /kickstart_files/
Setup an NFS exported location which the Kickstart client can access. For example, if /nfs_mount_kickstart is the directory which has been NFS exported, the NFS exported location may look similar to the following:
# cat /etc/exports /nfs_mount_kickstart * (rw,sync,no_root_squash)
4 5
Copy the entire directory of RPMs and scripts from the CD/DVD to the NFS location. Copy the required SFCFS installproduct and uninstallproduct scripts you generated in step 2 to the following NFS directory.
# cp /kickstart_files/installsfcfs /nfs_mount_kickstart # cp /kickstart_files/uninstallsfcfs /nfs_mount_kickstart
Verify the contents of the directory. They should look similar to the following:
# ls /nfs_mount_kickstart/ rpms scripts installsfcfs uninstallsfcfs
In the SFCFS Kickstart configuration file, modify the BUILDSRC variable to point to the actual NFS location. The variable has the following format:
BUILDSRC="hostname_or_ip:/nfs_mount_kickstart"
Append the entire modified contents of the Kickstart configuration file to the operating system ks.cfg file.
Installing Storage Foundation Cluster File System, other methods Installing SFCFS using Kickstart
75
11 Verify that all the product RPMs have been installed. Enter the following
command:
# rpm -qa | grep -i vrts
If you do not find any installation issues or errors, configure the product stack. Enter the following command:
# /opt/VRTS/install/installsfcfs -configure node1 node2
12 Verify that all the configured llt links and gab ports have started. Enter the
following:
# gabconfig -a GAB Port Memberships =============================================================== Port a gen b66f01 membership 01 Port b gen b66f03 membership 01 Port d gen b66f07 membership 01 Port f gen b66f0d membership 01 Port h gen b66f05 membership 01 Port v gen b66f09 membership 01 Port u gen b66f08 membership 01 Port w gen b66f0b membership 01
76
Installing Storage Foundation Cluster File System, other methods Sample Kickstart configuration file
Probed Y Y
AutoDisabled N N
Note that the cvm service group comes online when the SFCFSHA stack is configured.
14 Verify that the ODM RPM is installed and determine which mode it is running
in. For example, in the case of the SFCFSHA stack, the ODM cluster status is shown as enabled exclusive.
15 If you configured the node in a secured mode, verify the VxSS service group
status. For example:
# hastatus -summary -- Group B B VxSS VxSS System swlx13 swlx14 Probed Y Y AutoDisabled N N State ONLINE ONLINE
Installing Storage Foundation Cluster File System, other methods Sample Kickstart configuration file
77
# # # # # # # # #
Notice: * Modify the BUILDSRC below according to your real environment * The location specified with BUILDSRC should be NFS accessible to the Kickstart Server * Copy the whole directories of rpms and scripts from installation media to the BUILDSRC * Put generated install<product> scripts into the BUILDSRC
BUILDSRC="<hostname_or_ip>:/path/to/rpms_and_scripts" # # Notice: # * You do not have to change the following scripts. # # define path variables ROOT=/mnt/sysimage BUILDDIR="${ROOT}/build" RPMDIR="${BUILDDIR}/rpms" SCRIPTDIR="${BUILDDIR}/scripts" CPIDIR="${ROOT}/opt/VRTS/install" CPIMODDIR="${ROOT}/opt/VRTSperl/lib/site_perl/UXRT51" # define log path KSLOG="${ROOT}/var/tmp/kickstart.log" echo "==== Executing kickstart post section: ====" >> ${KSLOG} mkdir -p ${BUILDDIR} mount -t nfs -o vers=3 ${BUILDSRC} ${BUILDDIR} >> ${KSLOG} 2>&1 # install rpms one by one for RPM in VRTSvlic VRTSperl VRTSspt VRTSvxvm VRTSaslapm VRTSob VRTSlvmconv VRTSsfmh VRTSvxfs VRTSfssdk VRTSatClient VRTSatServer VRTSlltob VRTSgab VRTSvxfen VRTSamf VRTSvcs VRTScps VRTSvcsag VRTSvcsdr VRTSvcsea VRTSdbed VRTSglm VRTScavf VRTSgms VRTSodm do echo "Installing package -- $RPM" >> ${KSLOG} rpm -U -v --root ${ROOT} ${RPMDIR}/${RPM}-* >> ${KSLOG} 2>&1 done
78
Installing Storage Foundation Cluster File System, other methods Sample Kickstart configuration file
# copy cpi perl modules mkdir -p ${CPIMODDIR} for MODULE in EDR CPIC CPIP do if [ -d "${SCRIPTDIR}/${MODULE}" ] then cp -rp ${SCRIPTDIR}/${MODULE} ${CPIMODDIR} echo "Perl modules from ${SCRIPTDIR}/${MODULE} are copied to ${CPIMODDIR}" \ >> ${KSLOG} else echo "Required perl modules ${SCRIPTDIR}/${MODULE} not found" >> ${KSLOG} fi done # copy cpi message catalogs if [ -d "${SCRIPTDIR}/messages" ] then cp -rp "${SCRIPTDIR}/messages" ${CPIMODDIR} echo "Messages from ${SCRIPTDIR}/messages are copied to ${CPIMODDIR}" \ >> ${KSLOG} fi if [ -d "${SCRIPTDIR}/bin" ] then cp -rp "${SCRIPTDIR}/bin" ${CPIMODDIR} echo "Commands from ${SCRIPTDIR}/bin are copied to ${CPIMODDIR}" >> ${KSLOG} fi # copy cpi installer scripts mkdir -p ${CPIDIR} touch "${CPIDIR}/.cpi5" for FILE in $(find ${BUILDDIR} -maxdepth 1 -name '*install*') do cp -p ${FILE} ${CPIDIR} echo "Copy ${FILE} to ${CPIDIR}" >> ${KSLOG} done umount ${BUILDDIR} echo "==== Completed kickstart file ====" >> ${KSLOG} exit 0
Section
Chapter 8. Preparing to configure SFCFS Chapter 9. Configuring Veritas Storage Foundation Cluster File System Chapter 10. Configuring SFCFS for data integrity
80
Chapter
Preparing to configure the clusters in secure mode About configuring SFCFS clusters for data integrity About I/O fencing for Storage Foundation Cluster File System in virtual machines that do not support SCSI-3 PR About I/O fencing components About I/O fencing configuration files About planning to configure I/O fencing Setting up the CP server
A system in your enterprise that serves as root broker (RB). You can either use an external system as root broker, or use one of the cluster nodes as root broker.
82
To use an external root broker, identify an existing root broker system in your enterprise or install and configure root broker on a stable system. See Installing the root broker for the security infrastructure on page 85.
To use one of the cluster nodes as root broker, the installer does not require you to do any preparatory tasks. When you configure the cluster in secure mode using the script-based installer, choose the automatic mode and choose one of the nodes for the installer to configure as root broker. Symantec recommends that you configure a single root broker system for your entire enterprise. If you use different root broker systems, then you must establish trust between the root brokers. For example, if the management server and the cluster use different root brokers, then you must establish trust.
For external root broker, an authentication broker (AB) account for each node in the cluster is set up on the root broker system. See Creating authentication broker accounts on root broker system on page 86. The system clocks of the external root broker and authentication brokers must be in sync.
Semi-automatic mode
Figure 8-1 depicts the flow of configuring Storage Foundation Cluster File System cluster in secure mode.
83
Figure 8-1
Workflow to configure Storage Foundation Cluster File System cluster in secure mode
One of the cluster nodes
External system
Choose automatic mode at the installer prompt to configure the cluster in secure mode
Choose the node that the installer must configure as root broker
Semiautomatic mode
Manual mode
On the root broker system, create authentication broker identities for each node
Automatic mode
On the root broker system, create authentication broker identities for each node No
No
Does the root broker allow you to login without password Automatic mode Yes
On the root broker system, create encrypted file (BLOB) for each node
Copy root_hash file from the root broker system to the installation system
No action required
84
Table 8-1 lists the preparatory tasks in the order which the AT and VCS administrators must perform. These preparatory tasks apply only when you use an external root broker system for the cluster. Table 8-1 Preparatory tasks to configure a cluster in secure mode (with an external root broker) Who performs this task
Tasks
Decide one of the following configuration modes to set up a cluster in VCS administrator secure mode:
Install the root broker on a stable system in the enterprise. See Installing the root broker for the security infrastructure on page 85. To use the semi-automatic mode or the manual mode, on the root broker system, create authentication broker accounts for each node in the cluster. See Creating authentication broker accounts on root broker system on page 86. The AT administrator requires the following information from the VCS administrator:
AT administrator
Node names that are designated to serve as authentication brokers Password for each authentication broker AT administrator
To use the semi-automatic mode, create the encrypted files (BLOB files) for each node and provide the files to the VCS administrator. See Creating encrypted files for the security infrastructure on page 87. The AT administrator requires the following additional information from the VCS administrator:
Administrator password for each authentication broker Typically, the password is the same for all nodes.
To use the manual mode, provide the root_hash file AT administrator (/opt/VRTSat/bin/root_hash) from the root broker system to the VCS administrator.
85
Table 8-1
Preparatory tasks to configure a cluster in secure mode (with an external root broker) (continued) Who performs this task
Tasks
Copy the files that are required to configure a cluster in secure mode VCS administrator to the system from where you plan to install and configure Storage Foundation Cluster File System. See Preparing the installation system for the security infrastructure on page 89.
2 3 4 5
From the Task Menu, choose I for "Install a Product." From the displayed list of products to install, choose: Symantec Product Authentication Service (AT). Enter 2 to install the recommended packages. Enter the name of the system where you want to install the Root Broker.
Enter the operating_system system names separated by space [q,?]: venus
86
The installer lists the RPMs that the program is about to install on the system. Press Enter to continue.
7 8 9
Review the output as the installer installs the root broker on the system. After the installation, configure the root broker. Select a mode to configure the root broker from the three choices that the installer presents:
1)Root+AB Mode 2)Root Mode 3)AB Mode Enter the mode in which you would like AT to be configured? [1-3,q] 2 All AT processes that are currently running must be stopped Do you want to stop AT processes now? [y,n,q,?] (y)
10 Press Enter to continue and review the output as the installer starts the
Authentication Service.
Determine the root broker domain name. Enter the following command on the root broker system:
venus> # vssat showalltrustedcreds
For example, the domain name resembles "Domain Name: [email protected]" in the output.
For each node in the cluster, verify whether an account exists on the root broker system. For example, to verify that an account exists for node galaxy:
venus> # vssat showprpl --pdrtype root \ --domain [email protected] --prplname galaxy
87
If the output displays the principal account on root broker for the authentication broker on the node, then delete the existing principal accounts. For example:
venus> # vssat deleteprpl --pdrtype root \ --domain [email protected] \ --prplname galaxy --silent
If the output displays the following error, then the account for the given authentication broker is not created on this root broker:
"Failed To Get Attributes For Principal"
Proceed to step 3.
Create a principal account for each authentication broker in the cluster. For example:
venus> # vssat addprpl --pdrtype root --domain \ [email protected] --prplname galaxy \ --password password --prpltype service
You must use this password that you create in the input file for the encrypted file.
Make a note of the following root broker information. This information is required for the input file for the encrypted file:
hash The value of the root hash string, which consists of 40 characters. Execute the following command to find this value: venus> # vssat showbrokerhash
88
root_domain
The value for the domain name of the root broker system. Execute the following command to find this value: venus> # vssat showalltrustedcreds
Make a note of the following authentication broker information for each node. This information is required for the input file for the encrypted file:
identity The value for the authentication broker identity, which you provided to create authentication broker principal on the root broker system. This is the value for the --prplname option of the addprpl command. See Creating authentication broker accounts on root broker system on page 86. password The value for the authentication broker password, which you provided to create authentication broker principal on the root broker system. This is the value for the --password option of the addprpl command. See Creating authentication broker accounts on root broker system on page 86.
For each node in the cluster, create the input file for the encrypted file. The installer presents the format of the input file for the encrypted file when you proceed to configure the Authentication Service using encrypted file. For example, the input file for authentication broker on galaxy resembles:
[setuptrust] broker=venus.symantecexample.com hash=758a33dbd6fae751630058ace3dedb54e562fe98 securitylevel=high [configab] identity=galaxy password=password [email protected] root_broker=venus.symantecexample.com:2821
89
start_broker=false enable_pbx=false
Back up these input files that you created for the authentication broker on each node in the cluster. Note that for security purposes, the command to create the output file for the encrypted file deletes the input file.
For each node in the cluster, create the output file for the encrypted file from the root broker system using the following command:
RootBroker> # vssat createpkg \ --in /path/to/blob/input/file.txt \ --out /path/to/encrypted/blob/file.txt \ --host_ctx AB-hostname
For example:
venus> # vssat createpkg --in /tmp/galaxy.blob.in \ --out /tmp/galaxy.blob.out --host_ctx galaxy
Note that this command creates an encrypted file even if you provide wrong password for "password=" entry. But such an encrypted file with wrong password fails to install on authentication broker node.
After you complete creating the output files for the encrypted file, you must copy these encrypted BLOB files for each node in the cluster.
Depending on the configuration mode you decided to use, do one of the following:
Automatic mode Do the following: Gather the root broker system name from the AT administrator. During SFCFS configuration, choose the configuration option 1 when the installsfcfs prompts.
90
Preparing to configure SFCFS About configuring SFCFS clusters for data integrity
Semi-automatic mode
Do the following: Copy the encrypted files (BLOB files) to the system from where you plan to install VCS. Note the path of these files that you copied to the installation system. During SFCFS configuration, choose the configuration option 2 when the installsfcfs prompts.
Manual mode
Do the following: Copy the root_hash file that you fetched to the system from where you plan to install VCS. Note the path of the root hash file that you copied to the installation system. Gather the root broker information such as name, fully qualified domain name, domain, and port from the AT administrator. Note the principal name and password information for each authentication broker that you provided to the AT administrator to create the authentication broker accounts. During SFCFS configuration, choose the configuration option 3 when the installsfcfs prompts.
Broken set of private networks If a system in a two-node cluster fails, the system stops sending heartbeats over the private interconnects. The remaining node then takes corrective action. The failure of the private interconnects, instead of the actual nodes, presents identical symptoms and causes each node to determine its peer has departed. This situation typically results in data corruption because both nodes try to take control of data storage in an uncoordinated manner. System that appears to have a system-hang If a system is so busy that it appears to stop responding, the other nodes could declare it as dead. This declaration may also occur for the nodes that use the hardware that supports a "break" and "resume" function. When a node drops
Preparing to configure SFCFS About I/O fencing for Storage Foundation Cluster File System in virtual machines that do not support SCSI-3 PR
91
to PROM level with a break and subsequently resumes operations, the other nodes may declare the system dead. They can declare it dead even if the system later returns and begins write operations. I/O fencing is a feature that prevents data corruption in the event of a communication breakdown in a cluster. SFCFS uses I/O fencing to remove the risk that is associated with split-brain. I/O fencing allows write access for members of the active cluster. It blocks access to storage from non-members so that even a node that is alive is unable to cause damage. After you install and configure SFCFS, you must configure I/O fencing in SFCFS to ensure data integrity. See About planning to configure I/O fencing on page 96.
About I/O fencing for Storage Foundation Cluster File System in virtual machines that do not support SCSI-3 PR
In a traditional I/O fencing implementation, where the coordination points are coordination point servers (CP servers) or coordinator disks, Veritas Clustered Volume Manager and Veritas I/O fencing modules provide SCSI-3 persistent reservation (SCSI-3 PR) based protection on the data disks. This SCSI-3 PR protection ensures that the I/O operations from the losing node cannot reach a disk that the surviving sub-cluster has already taken over. See the Veritas Cluster Server Administrator's Guide for more information on how I/O fencing works. In virtualized environments that do not support SCSI-3 PR, Storage Foundation Cluster File System attempts to provide reasonable safety for the data disks. Storage Foundation Cluster File System requires you to configure non-SCSI3 server-based I/O fencing in such environments. Non-SCSI3 fencing uses CP servers as coordination points with some additional configuration changes to support I/O fencing in such environments. See Setting up non-SCSI3 server-based I/O fencing using installsfcfs on page 172. See Setting up non-SCSI3 fencing in virtual environments manually on page 184.
92
Data disksStore shared data See About data disks on page 92. Coordination pointsAct as a global lock during membership changes See About coordination points on page 92.
Coordinator disks Disks that act as coordination points are called coordinator disks. Coordinator disks are three standard disks or LUNs set aside for I/O fencing during cluster reconfiguration. Coordinator disks do not serve any other storage purpose in the SFCFS configuration. You can configure coordinator disks to use Veritas Volume Manager Dynamic Multi-pathing (DMP) feature. Dynamic Multi-pathing (DMP) allows coordinator disks to take advantage of the path failover and the dynamic adding and removal capabilities of DMP. So, you can configure I/O fencing to use either DMP devices or the underlying raw character devices. I/O fencing uses SCSI-3 disk policy that is either raw or dmp based on the disk device that you use. The disk policy is dmp by default. See the Veritas Volume Manager Administrators Guide.
93
Coordination point servers The coordination point server (CP server) is a software solution which runs on a remote system or cluster. CP server provides arbitration functionality by allowing the SFCFS cluster nodes to perform the following tasks:
Self-register to become a member of an active SFCFS cluster (registered with CP server) with access to the data drives Check which other nodes are registered as members of this activeSFCFS cluster Self-unregister from this active SFCFS cluster
Forcefully unregister other nodes (preempt) as members of this active SFCFS cluster In short, the CP server functions as another arbitration mechanism that integrates within the existing I/O fencing module. Note: With the CP server, the fencing arbitration logic still remains on the SFCFS cluster. Multiple SFCFS clusters running different operating systems can simultaneously access the CP server. TCP/IP based communication is used between the CP server and the SFCFS clusters.
Enable system-based preferred fencing policy to give preference to high capacity systems. Enable group-based preferred fencing policy to give preference to service groups for high priority applications. Disable preferred fencing policy to use the default node count-based race policy.
See the Veritas Storage Foundation Cluster File System Administrator's Guide for more details.
94
/etc/sysconfig/vxfen This file stores the start and stop environment variables for I/O fencing: VXFEN_STARTDefines the startup behavior for the I/O fencing module after a system reboot. Valid values include: 1Indicates that I/O fencing is enabled to start up. 0Indicates that I/O fencing is disabled to start up. VXFEN_STOPDefines the shutdown behavior for the I/O fencing module during a system shutdown. Valid values include: 1Indicates that I/O fencing is enabled to shut down. 0Indicates that I/O fencing is disabled to shut down.
The installer sets the value of these variables to 1 at the end of Storage Foundation Cluster File System configuration. /etc/vxfendg This file includes the coordinator disk group information. This file is not applicable for server-based fencing.
95
Description
This file contains the following parameters:
customizedFor server-based fencing disabledTo run the I/O fencing driver but not do any fencing operations.
vxfen_mechanism This parameter is applicable only for server-based fencing. Set the value as cps. scsi3_disk_policy dmpConfigure the vxfen module to use DMP devices The disk policy is dmp by default. If you use iSCSI devices, you must set the disk policy as dmp. rawConfigure the vxfen module to use the underlying raw character devices
Note: You must use the same SCSI-3 disk policy on all the nodes.
security This parameter is applicable only for server-based fencing. 1Indicates that Symantec Product Authentication Service is used for CP server communications. This setting is the default. 0Indicates that communication with the CP server is in non-secure mode.
Note: The CP server and the Storage Foundation Cluster File System clusters must have
the same security setting. List of coordination points This list is required only for server-based fencing configuration. Coordination points in a server-based fencing can include coordinator disks, CP servers, or a mix of both. If you use coordinator disks, you must create a coordinator disk group with the coordinator disk names. Refer to the sample file /etc/vxfen.d/vxfenmode_cps for more information on how to specify the coordination points. single_cp This parameter is applicable only for server-based fencing which uses a single highly available CP server as its coordination point.
96
Description
When I/O fencing starts, the vxfen startup script creates this /etc/vxfentab file on each node. The startup script uses the contents of the /etc/vxfendg and /etc/vxfenmode files. Any time a system is rebooted, the fencing driver reinitializes the vxfentab file with the current list of all the coordinator points.
Note: The /etc/vxfentab file is a generated file; do not modify this file.
For disk-based I/O fencing, the /etc/vxfentab file on each node contains a list of all paths to each coordinator disk. An example of the /etc/vxfentab file in a disk-based fencing configuration on one node resembles as follows:
For server-based fencing, the /etc/vxfentab file also includes the security settings information. For server-based fencing with single CP server, the /etc/vxfentab file also includes the single_cp settings information.
97
Warning: For server-based fencing configurations that use a single coordination point (CP server), the coordination point becomes a single point of failure. In such configurations, the arbitration facility is not available during a failover of the CP server in the SFHA cluster. So, if a network partition occurs on any application cluster during the CP server failover, the application cluster is brought down. If you have installed Storage Foundation Cluster File System in a virtual environment that is not SCSI-3 PR compliant, you can configure non-SCSI3 server-based fencing. See Figure 8-3 on page 99. Figure 8-2 illustrates a high-level flowchart to configure I/O fencing for the Storage Foundation Cluster File System cluster.
98
Figure 8-2
Three disks
Preparatory tasks
vxdiskadm or vxdisksetup utilities
Preparatory tasks
Identify an existing CP server
Install and configure VCS or SFHA on CP server systems Establish TCP/IP connection between CP server and SFCFS cluster
Configuration tasks
Use one of the following methods
If SFCFS cluster is configured in secure mode, configure CP server in secure mode If the CP server is clustered, set up shared storage for the CP server Run the configure_cps utility and follow the prompts (or) Manually configure CP server
For the disks that will serve as coordination points
Edit the response file you created and use them with installsfcfs responsefile command
or
Initialize disks as VxVM disks and Check disks for I/O fencing compliance
Choose to configure disk-based fencing when you configure SFCFS using the Web-based installer
Configuration tasks
Use one of the following methods
Edit the values in the response file you created and use them with installsfcfs -responsefile command
or
Figure 8-3 illustrates a high-level flowchart to configure non-SCSI3 server-based I/O fencing for the Storage Foundation Cluster File System cluster in virtual environments that do not support SCSI-3 PR.
99
Figure 8-3
SFCFS in nonSCSI3 compliant virtual environment ? Configure server-based fencing (customized mode) with CP servers Preparatory tasks
Identify existing CP servers
Install and configure VCS or SFHA on CP server systems Establish TCP/IP connection between CP server and SFCFS cluster If SFCFS cluster is configured in secure mode, configure CP server in secure mode If the CP server is clustered, set up shared storage for the CP server Run the configure_cps utility and follow the prompts (or) Manually configure CP server
Configuration tasks
Use one of the following methods
Run the installsfcfs -fencing, choose option 1, enter n to confirm that storage is not SCSI3compliant, and follow the prompts
or
Edit the values in the response file you created and use them with installsfcfs -responsefile command
or
After you perform the preparatory tasks, you can use any of the following methods to configure I/O fencing:
100
See Setting up disk-based I/O fencing using installsfcfs on page 147. See Setting up server-based I/O fencing using installsfcfs on page 160. See Setting up non-SCSI3 server-based I/O fencing using installsfcfs on page 172.
See Configuring Storage Foundation Cluster File System using the Web-based installer on page 138.
101
Figure 8-4
Fiber channel
Client Cluster
LLT links
Node 1 Node 2
Application Storage
Multiple application clusters use three CP servers as their coordination points. See Figure 8-5 on page 102. Multiple application clusters use a single CP server and multiple pairs of coordinator disks (two) as their coordination points. See Figure 8-6 on page 103. Multiple application clusters use a single CP server as their coordination point This single coordination point fencing configuration must use a highly available CP server that is configured on an SFHA cluster as its coordination point. See Figure 8-7 on page 103. Warning: In a single CP server fencing configuration, arbitration facility is not available during a failover of the CP server in the SFHA cluster. So, if a network partition occurs on any application cluster during the CP server failover, the application cluster is brought down.
102
Although the recommended CP server configurations use three coordination points, you can use more than three (must be an odd number) coordination points for I/O fencing. In a configuration where multiple application clusters share a common set of CP server coordination points, the application cluster as well as the CP server use a Universally Unique Identifier (UUID) to uniquely identify an application cluster. Figure 8-5 displays a configuration using three CP servers that are connected to multiple application clusters. Figure 8-5 Three CP servers connecting to multiple application clusters
TCP/IP TCP/IP
Public network
application clusters
(clusters which run VCS, SFHA, SFCFS, SVS, or SF Oracle RAC to provide high availability for applications)
Figure 8-6 displays a configuration using a single CP server that is connected to multiple application clusters with each application cluster also using two coordinator disks.
103
Figure 8-6
Single CP server with two coordinator disks for each application cluster
CP server hosted on a single-node VCS cluster
(can also be hosted on an SFHA cluster)
TCP/IP TCP/IP
Public network
Fibre channel coordinator disks coordinator disks Fibre channel Public network TCP/IP
application clusters
(clusters which run VCS, SFHA, SFCFS, SVS, or SF Oracle RAC to provide high availability for applications)
Figure 8-7 displays a configuration using a single CP server that is connected to multiple application clusters. Figure 8-7 Single CP server connecting to multiple application clusters
CP server hosted on an SFHA cluster
TCP/IP TCP/IP
Public network
application clusters
(clusters which run VCS, SFHA, SFCFS, SVS, or SF Oracle RAC to provide high availability for applications)
See Configuration diagrams for setting up server-based I/O fencing on page 469.
104
Configure the CP server cluster in secure mode Set up shared storage for the CP server database Configure the CP server
Decide whether you want to host the CP server on a single-node VCS cluster, or on an SFHA cluster. Symantec recommends hosting the CP server on an SFHA cluster.
If you host the CP server on an SFHA cluster, review the following information. Make sure you make the decisions and meet these prerequisites when you set up the CP server:
You must configure fencing in enabled mode during the SFHA configuration. You must set up shared storage for the CP server database during your CP server setup.
105
Decide whether you want to configure server-based fencing for the SFCFS cluster (application cluster) with a single CP server as coordination point or with at least three coordination points. Symantec recommends using at least three coordination points.
Decide whether you want to configure the CP server cluster in secure mode using the Symantec Product Authentication Service (AT). Symantec recommends configuring the CP server cluster in secure mode. Setting up AT secures the communication between the CP server and its clients (SFCFS clusters). It also secures the HAD communication on the CP server cluster, and makes the authentication broker highly available.
Set up the hardware and network for your CP server. See CP server requirements on page 45.
Name for the CP server The CP server name should not contain any special characters. Port number for the CP server Allocate a TCP/IP port for use by the CP server. Valid port range is between 49152 and 65535. The default port number is 14250. Virtual IP address, network interface, netmask, and networkhosts for the CP server
Depending on whether your CP server uses a single system or multiple systems, perform the following tasks:
106
Install and configure VCS to create a single-node VCS cluster. Meet the following requirements for CP server:
During installation, make sure to select all RPMs for installation. The VRTScps RPM is installed only if you select to install all RPMs. During configuration, make sure to configure LLT and GAB. During configuration, set up the cluster in secure mode if you want secure communication between the CP server and the SFCFS cluster (application cluster).
See the Veritas Cluster Server Installation Guide for instructions on installing and configuring VCS. Proceed to configure the CP server. See Configuring the CP server using the configuration utility on page 108. See Configuring the CP server manually on page 116. CP server setup uses multiple systems Install and configure SFHA to create an SFHA cluster. This makes the CP server highly available. Meet the following requirements for CP server: During installation, make sure to select all RPMs for installation. The VRTScps RPM is installed only if you select to install all RPMs. During configuration, set up the cluster in secure mode if you want secure communication between the CP server and the SFCFS cluster (application cluster). See Preparing to configure the clusters in secure mode on page 81. During configuration, configure disk-based fencing (scsi3 mode).
See the Veritas Storage Foundation and High Availability Installation Guide for instructions on installing and configuring SFHA. Proceed to set up shared storage for the CP server database.
107
Run the installer as follows to configure the CP server cluster in secure mode:
# installsfcfs -security
Create a disk group containing the disks. You require two disks to create a mirrored volume. For example:
# vxdg init cps_dg disk1 disk2
Import the disk group if it's not already imported. For example:
# vxdg import cps_dg
108
Create a file system over the volume. The CP server configuration utility only supports vxfs file system type. If you use an alternate file system, then you must configure CP server manually. Depending on the operating system that your CP server runs, enter the following command:
AIX HP-UX Linux Solaris # mkfs -V vxfs /dev/vx/rdsk/cps_dg/cps_volume
1 2
Verify that the VRTScps RPM is installed on the node. Run the CP server configuration script on the node where you want to configure the CP server:
# /opt/VRTScps/bin/configure_cps.pl
109
Enter 1 at the prompt to configure CP server on a single-node VCS cluster. The configuration utility then runs the following preconfiguration checks:
Checks to see if a single-node VCS cluster is running with the supported platform. The CP server requires VCS to be installed and configured before its configuration. Checks to see if the CP server is already configured on the system. If the CP server is already configured, then the configuration utility informs the user and requests that the user unconfigure the CP server before trying to configure it.
Enter a valid virtual IP address on which the CP server process should depend on.
Enter a valid Virtual IP address on which the CP Server process should depend on: 10.209.83.85
Enter the CP server port number or press Enter to accept the default value (14250).
Enter a port number in range [49152, 65535], or press <enter> for default port (14250):
110
Choose whether the communication between the CP server and the SFCFS clusters has to be made secure. If you have not configured the CP server cluster in secure mode, enter n at the prompt. Warning: If the CP server cluster is not configured in secure mode, and if you enter y, then the script immediately exits. You must configure the CP server cluster in secure mode and rerun the CP server configuration script.
Veritas recommends secure communication between the CP server and application clusters. Enabling security requires Symantec Product Authentication Service to be installed and configured on the cluster. Do you want to enable Security for the communications? (y/n) (Default:y) :
Enter the absolute path of the CP server database or press Enter to accept the default value (/etc/VRTScps/db).
CP Server uses an internal database to store the client information. Note: As the CP Server is being configured on a single node VCS, the database can reside on local file system. Enter absolute path of the database (Default:/etc/VRTScps/db):
111
10 The configuration utility proceeds with the configuration process, and creates
a vxcps.conf configuration file.
Successfully generated the /etc/vxcps.conf configuration file. Successfully created directory /etc/VRTScps/db. Configuring CP Server Service Group (CPSSG) for this cluster ---------------------------------------------NOTE: Please ensure that the supplied network interface is a public NIC
11 Enter a valid network interface for the virtual IP address for the CP server
process.
Enter a valid network interface for virtual IP 10.209.83.85 on mycps1.symantecexample.com: eth0
112
# hagrp -state CPSSG #Group CPSSG Attribute State System mycps1.symantecexample.com Value |ONLINE|
It also generates the configuration file for CP server (/etc/vxcps.conf). The configuration utility adds the vxcpserv process and other resources to the VCS configuration in the CP server service group (CPSSG). For information about the CPSSG, refer to the Veritas Storage Foundation Cluster File System Administrator's Guide. In addition, the main.cf samples contain details about the vxcpserv resource and its dependencies. To configure the CP server on an SFHA cluster
1 2 3
Verify that the VRTScps RPM is installed on each node. Make sure that you have configured passwordless ssh or rsh on the CP server cluster nodes. Run the CP server configuration script on the node where you want to configure the CP server:
# /opt/VRTScps/bin/configure_cps.pl [-n]
The CP server configuration utility uses ssh by default to communicate between systems. Use the -n option for rsh communication.
Enter 2 at the prompt to configure CP server on an SFHA cluster. The configuration utility then runs the following preconfiguration checks:
113
The CP server requires SFHA to be installed and configured before its configuration.
Checks to see if the CP server is already configured on the system. If the CP server is already configured, then the configuration utility informs the user and requests that the user unconfigure the CP server before trying to configure it.
Enter a valid virtual IP address on which the CP server process should depend on.
Enter a valid Virtual IP address on which the CP Server process should depend on: 10.209.83.85
Enter the CP server port number or press Enter to accept the default value (14250).
Enter a port number in range [49152, 65535], or press <enter> for default port (14250):
Choose whether the communication between the CP server and the SFCFS clusters has to be made secure. If you have not configured the CP server cluster in secure mode, enter n at the prompt. Warning: If the CP server cluster is not configured in secure mode, and if you enter y, then the script immediately exits. You must configure the CP server cluster in secure mode and rerun the CP server configuration script.
Veritas recommends secure communication between the CP server and application clusters. Enabling security requires Symantec Product Authentication Service to be installed and configured on the cluster. Do you want to enable Security for the communications? (y/n) (Default:y) :
114
Enter the absolute path of the CP server database or press Enter to accept the default value (/etc/VRTScps/db).
CP Server uses an internal database to store the client information. Note: As the CP Server is being configured on SFHA cluster, the database should reside on shared storage with vxfs file system. Please refer to documentation for information on setting up of shared storage for CP server database. Enter absolute path of the database (Default:/etc/VRTScps/db):
11 The configuration utility proceeds with the configuration process, and creates
a vxcps.conf configuration file on each node. The following output is for one node:
Successfully generated the /etc/vxcps.conf configuration file. Successfully created directory /etc/VRTScps/db. Creating mount point /etc/VRTScps/db on mycps1.symantecexample.com. Copying configuration file /etc/vxcps.conf to mycps1.symantecexample.com Configuring CP Server Service Group (CPSSG) for this cluster ----------------------------------------------
115
12 Confirm whether you use the same NIC name for the virtual IP on all the
systems in the cluster.
Is the name of NIC for virtual IP 10.209.83.85 same on all the systems? [y/n] : y NOTE: Please ensure that the supplied network interface is a public NIC
13 Enter a valid network interface for the virtual IP address for the CP server
process.
Enter a valid interface for virtual IP 10.209.83.85 on all the systems : eth0
16 Enter the name of the disk group for the CP server database.
Enter the name of diskgroup for cps database : cps_dg
17 Enter the name of the volume that is created on the above disk group.
Enter the name of volume created on diskgroup cps_dg : cps_volume
116
# hagrp -state CPSSG #Group CPSSG CPSSG Attribute State State System mycps1.symantecexample.com mycps2.symantecexample.com Value |ONLINE| |OFFLINE|
It also generates the configuration file for CP server (/etc/vxcps.conf). The configuration utility adds the vxcpserv process and other resources to the VCS configuration in the CP server service group (CPSSG). For information about the CPSSG, refer to the Veritas Storage Foundation Cluster File System Administrator's Guide. In addition, the main.cf samples contain details about the vxcpserv resource and its dependencies.
Stop VCS on each node in the CP server cluster using the following command:
# hastop -local
Edit the main.cf file to add the CPSSG service group on any node. Use the CPSSG service group in the main.cf as an example: Customize the resources under the CPSSG service group as per your configuration.
117
Create the /etc/vxcps.conf file using the sample configuration file provided at /etc/vxcps/vxcps.conf.sample. Based on whether you have configured the CP server cluster in secure mode or not, do the following:
For a CP server cluster which is configured in secure mode, edit the /etc/vxcps.conf file to set security=1. For a CP server cluster which is not configured in secure mode, edit the /etc/vxcps.conf file to set security=0.
Symantec recommends enabling security for communication between CP server and the application clusters.
Verify that the following configuration files are updated with the information you provided during the CP server configuration process:
118
Run the cpsadm command to check if the vxcpserv process is listening on the configured Virtual IP.
# cpsadm -s cp_server -a ping_cps
where cp_server is the virtual IP address or the virtual hostname of the CP server.
Chapter
Configuring Veritas Storage Foundation Cluster File System using the script-based installer Configuring Storage Foundation Cluster File System using the Web-based installer Configuring Veritas Storage Foundation Cluster File System manually Configuring the SFDB repository database after installation
Configuring Veritas Storage Foundation Cluster File System using the script-based installer
Overview of tasks to configure Storage Foundation Cluster File System using the script-based installer
Overview of tasks to configure Storage Foundation Cluster File System using the script-based installer lists the tasks that are involved in configuring Storage Foundation Cluster File System using the script-based installer.
120
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
Table 9-1
Tasks to configure Storage Foundation Cluster File System using the script-based installer Reference
See Starting the software configuration on page 120. See Specifying systems for configuration on page 121.
Task
Start the software configuration
Specify the systems where you want to configure Storage Foundation Cluster File System Configure the basic cluster
See Configuring the cluster name and ID on page 122. See Configuring private heartbeat links on page 122.
Configure virtual IP address of the cluster (optional) Configure the cluster in secure mode (optional) Add VCS users (required if you did not configure the cluster in secure mode)
See Configuring the virtual IP of the cluster on page 125. See Configuring the cluster in secure mode on page 127. See Adding VCS users on page 130.
Configure SMTP email notification (optional) See Configuring SMTP email notification on page 130. Configure SNMP email notification (optional) See Configuring SNMP trap notification on page 132. Complete the software configuration See Completing the VCS configuration on page 135.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
121
To configure Storage Foundation Cluster File System using the product installer
1 2
Confirm that you are logged in as the superuser and that you have mounted the product disc. Start the installer.
# ./installer
The installer starts the product installation program with a copyright message and specifies the directory where the logs are created.
3 4
From the opening Selection Menu, choose: C for "Configure an Installed Product." From the displayed list of products to configure, choose the corresponding number for:
To configure Storage Foundation Cluster File System using the installsfcfs program
1 2
Confirm that you are logged in as the superuser. Start the installsfcfs program.
# /opt/VRTS/install/installsfcfs -configure
The installer begins with a copyright message and specifies the directory where the logs are created.
Enter the names of the systems where you want to configure Storage Foundation Cluster File System.
Enter the operating_system system names separated by spaces: [q,?] (galaxy) galaxy nebula
Review the output as the installer verifies the systems you specify. The installer does the following tasks:
Checks that the local node running the installer can communicate with remote nodes If the installer finds ssh binaries, it confirms that ssh can operate without requests for passwords or passphrases.
122
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
Makes sure that the systems are running with the supported operating system Checks whether Storage Foundation Cluster File System is installed Exits if Veritas Storage Foundation Cluster File System 5.1 SP1 is not installed
Review the installer output about the I/O fencing configuration and confirm whether you want to configure fencing in enabled mode.
Do you want to configure I/O Fencing in enabled mode? [y,n,q,?] (y)
1 2
Review the configuration instructions that the installer presents. Enter the unique cluster name and cluster ID.
Enter the unique cluster name: [q,?] clus1 Enter a unique Cluster ID number between 0-65535: [b,q,?] 7
Choose one of the following options at the installer prompt based on whether you want to configure LLT over Ethernet or UDP.
Option 1: LLT over Ethernet (answer installer questions) Enter the heartbeat link details at the installer prompt to configure LLT over Ethernet. Skip to step 2.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
123
Option 2: LLT over UDP (answer installer questions) Make sure that each NIC you want to use as heartbeat link has an IP address configured. Enter the heartbeat link details at the installer prompt to configure LLT over UDP. If you had not already configured IP addresses to the NICs, the installer provides you an option to detect the IP address for a given NIC. Skip to step 3. Option 3: LLT over Ethernet (allow installer to detect) Allow the installer to automatically detect the heartbeat link details to configure LLT over Ethernet. The installer tries to detect all connected links between all systems. Make sure that you activated the NICs for the installer to be able to detect and automatically configure the heartbeat links. Skip to step 5.
If you chose option 1, enter the network interface card details for the private heartbeat links. The installer discovers and lists the network interface cards. You can use either the standard interfaces or the aggregated interfaces (bonded NICs). You must not enter the network interface card that is used for the public network (typically eth0.)
Enter the NIC for the first private heartbeat link on galaxy: [b,q,?] eth1 eth1 has an IP address configured on it. It could be a public NIC on galaxy. Are you sure you want to use eth1 for the first private heartbeat link? [y,n,q,b,?] (n) y Would you like to configure a second private heartbeat link? [y,n,q,b,?] (y) Enter the NIC for the second private heartbeat link on galaxy: [b,q,?] eth2 eth2 has an IP address configured on it. It could be a public NIC on galaxy. Are you sure you want to use eth2 for the second private heartbeat link? [y,n,q,b,?] (n) y Would you like to configure a third private heartbeat link? [y,n,q,b,?](n) Do you want to configure an additional low priority heartbeat link? [y,n,q,b,?] (n)
124
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
If you chose option 2, enter the NIC details for the private heartbeat links. This step uses examples such as private_NIC1 or private_NIC2 to refer to the available names of the NICs.
Enter the NIC for the first private heartbeat NIC on galaxy: [b,q,?] private_NIC1 Do you want to use address 192.168.0.1 for the first private heartbeat link on galaxy: [y,n,q,b,?] (y) Enter the UDP port for the first private heartbeat link on galaxy: [b,q,?] (50000) ? Would you like to configure a second private heartbeat link? [y,n,q,b,?] (y) Enter the NIC for the second private heartbeat NIC on galaxy: [b,q,?] private_NIC2 Do you want to use address 192.168.1.1 for the second private heartbeat link on galaxy: [y,n,q,b,?] (y) Enter the UDP port for the second private heartbeat link on galaxy: [b,q,?] (50001) ? Do you want to configure an additional low priority heartbeat link? [y,n,q,b,?] (n) y Enter the NIC for the low priority heartbeat link on galaxy: [b,q,?] (private_NIC0) Do you want to use address 192.168.3.1 for the low priority heartbeat link on galaxy: [y,n,q,b,?] (y) Enter the UDP port for the low priority heartbeat link on galaxy: [b,q,?] (50004)
Choose whether to use the same NIC details to configure private heartbeat links on other systems.
Are you using the same NICs for private heartbeat links on all systems? [y,n,q,b,?] (y)
If you want to use the NIC details that you entered for galaxy, make sure the same NICs are available on each system. Then, enter y at the prompt. For LLT over UDP, if you want to use the same NICs on other systems, you still must enter unique IP addresses on each NIC for other systems. If the NIC device names are different on some of the systems, enter n. Provide the NIC details for each system as the program prompts.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
125
If you chose option 3, the installer detects NICs on each system and network links, and sets link priority. If the installer fails to detect heartbeat links or fails to find any high-priority links, then choose option 1 or option 2 to manually configure the heartbeat links. See step 2 for option 1, or step 3 for option 2.
1 2 3
Review the required information to configure the virtual IP of the cluster. To configure virtual IP, enter y at the prompt. Confirm whether you want to use the discovered public NIC on the first system. Do one of the following:
If the discovered NIC is the one to use, press Enter. If you want to use a different NIC, type the name of a NIC to use and press Enter.
Active NIC devices discovered on galaxy: eth0 Enter the NIC for Virtual IP of the Cluster to use on galaxy: [b,q,?](eth0)
Confirm whether you want to use the same public NIC on all nodes. Do one of the following:
If all nodes use the same public NIC, enter y. If unique NICs are used, enter n and enter a NIC for each node.
126
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
Enter the virtual IP address for the cluster. You can enter either an IPv4 address or an IPv6 address.
For IPv4:
Enter the virtual IP address. Enter the Virtual IP address for the Cluster: [b,q,?] 192.168.1.16
Confirm the default netmask or enter another one: Enter the netmask for IP 192.168.1.16: [b,q,?] (255.255.240.0)
Verify and confirm the Cluster Virtual IP information. Cluster Virtual IP verification: NIC: eth0 IP: 192.168.1.16 Netmask: 255.255.240.0 Is this information correct? [y,n,q] (y)
For IPv6
Enter the virtual IP address. Enter the Virtual IP address for the Cluster: [b,q,?] 2001:454e:205a:110:203:baff:feee:10
Enter the prefix for the virtual IPv6 address you provided. For example: Enter the Prefix for IP 2001:454e:205a:110:203:baff:feee:10: [b,q,?] 64
Verify and confirm the Cluster Virtual IP information. Cluster Virtual IP verification: NIC: eth0 IP: 2001:454e:205a:110:203:baff:feee:10 Prefix: 64 Is this information correct? [y,n,q] (y)
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
127
Choose whether to configure Storage Foundation Cluster File System to use Symantec Product Authentication Service.
Would you like to configure VCS to use Symantec Security Services? [y,n,q] (n) y
If you want to configure the cluster in secure mode, make sure you meet the prerequisites and enter y. If you do not want to configure the cluster in secure mode, enter n. You must add VCS users when the configuration program prompts. See Adding VCS users on page 130.
Select one of the options to enable security. Before you choose any of the options, make sure that all the nodes in the cluster can successfully ping the root broker system.
Select the Security option you would like to perform [1-3,b,q,?] (1) Security 1) 2) 3) b) Menu Configure security completely automatically Provide AB credentials using BLOBs Provide AB credentials without using BLOBs Back to previous menu
Review the following configuration modes. Based on the configuration that you want to use, enter one of the following values:
128
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
Based on the root broker you want to use, do one of the following: To use an external root broker: Enter the name of the root broker system when prompted. Requires remote access to the root broker. Make sure that all the nodes in the cluster can successfully ping the root broker system. Review the output as the installer verifies communication with the root broker system, checks vxatd process and version, and checks security domain. To configure one of the nodes as root broker: Press Enter at the following installer prompt:
If you already have an external RB(Root Broker) installed and configured, enter the RB name, or press Enter to skip: [b]
Choose the node that the installer must configure as root and authentication broker. The installer configures the other nodes as authentication brokers. At the installer prompt, you can choose the first node in the cluster to configure as RAB, or you can enter n to configure another node as RAB. For example: Do you want to configure <galaxy> as RAB, and other nodes as AB? [y,n,q,b] (y) n Enter the node name which you want to configure as RAB: nebula
Enter the path of the encrypted file (BLOB file) for each node when prompted.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
129
Enter the following Root Broker information as the installer prompts you:
Enter root broker name: [b] east.symantecexample.com Enter root broker FQDN: [b] (symantecexample.com) symantecexample.com Enter the root broker domain name for the Authentication Broker's identity: [b] [email protected] Enter root broker port: [b] 2821 Enter path to the locally accessible root hash [b] (/var/tmp/installvcs-200910221810ROA/root_hash) /var/tmp/installvcs-200910221810ROA/root_hash
Enter the following Authentication Broker information as the installer prompts you for each node: Enter Authentication broker's identity on galaxy [b] (galaxy.symantecexample.com) galaxy.symantecexample.com Enter the password for the Authentication broker's identity on galaxy: Enter Authentication broker's identity on nebula [b] (nebula.symantecexample.com) nebula.symantecexample.com Enter the password for the Authentication broker's identity on nebula:
After you provide the required information to configure the cluster in secure mode, the program prompts you to configure SMTP email notification. Note that the installer does not prompt you to add VCS users if you configured the cluster in secure mode. However, you must add VCS users later. See the Veritas Cluster Server Administrator's Guide for more information.
130
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
1 2
Review the required information to add VCS users. Reset the password for the Admin user, if necessary.
Do you want to set the username and/or password for the Admin user (default username = 'admin', password='password')? [y,n,q] (n) y Enter the user name: [b,q,?] (admin) Enter the password: Enter again:
Review the summary of the newly added users and confirm the information.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
131
1 2
Review the required information to configure the SMTP email notification. Specify whether you want to configure the SMTP notification.
Do you want to configure SMTP notification? [y,n,q,?] (n) y
If you do not want to configure the SMTP notification, you can skip to the next configuration option. See Configuring SNMP trap notification on page 132.
If you want to add another SMTP recipient, enter y and provide the required information at the prompt.
Would you like to add another SMTP recipient? [y,n,q,b] (n) y Enter the full email address of the SMTP recipient
132
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
(example: [email protected]): [b,q,?] [email protected] Enter the minimum severity of events for which mail should be sent to [email protected] [I=Information, W=Warning, E=Error, S=SevereError]: [b,q,?] E
1 2
Review the required information to configure the SNMP notification feature of VCS. Specify whether you want to configure the SNMP notification.
Do you want to configure SNMP notification? [y,n,q,?] (n) y
Provide information to configure SNMP trap notification. Provide the following information:
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
133
Active NIC devices discovered on galaxy: eth0 Enter the NIC for the VCS Notifier to use on galaxy: [b,q,?] (eth0) Is eth0 to be the public NIC used by all systems? [y,n,q,b,?] (y)
If you want to add another SNMP console, enter y and provide the required information at the prompt.
Would you like to add another SNMP console? [y,n,q,b] (n) y Enter the SNMP console system name: [b,q,?] jupiter Enter the minimum severity of events for which SNMP traps should be sent to jupiter [I=Information, W=Warning, E=Error, S=SevereError]: [b,q,?] S
134
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
1 2
Review the required information to configure the global cluster option. Specify whether you want to configure the global cluster option.
Do you want to configure the Global Cluster Option? [y,n,q] (n) y
If you skip this option, the installer proceeds to configure VCS based on the configuration details you provided.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
135
Provide information to configure this cluster as global cluster. The installer prompts you for a NIC, a virtual IP address, and value for the netmask. If you had entered virtual IP address details, the installer discovers the values you entered. You can use the same virtual IP address for global cluster configuration or enter different values. You can also enter an IPv6 address as a virtual IP address.
Verify and confirm the configuration of the global cluster. For example:
For IPv4: Global Cluster Option configuration verification: NIC: eth0 IP: 192.168.1.16 Netmask: 255.255.240.0 Is this information correct? [y,n,q] (y)
For IPv6
Global Cluster Option configuration verification: NIC: eth0 IP: 2001:454e:205a:110:203:baff:feee:10 Prefix: 64 Is this information correct? [y,n,q] (y)
Depending on the security mode you chose to set up Authentication Service, the installer does one of the following:
136
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
Executes the encrypted file to create security principal on each node in the cluster
Creates the VxSS service group Creates the Authentication Server credentials on each node in the cluster Creates the Web credentials for Storage Foundation Cluster File System users Sets up trust with the root broker
Review the output as the installer stops various processes and performs the configuration. The installer then restarts Storage Foundation Cluster File System and its related processes. Enter y at the prompt to send the installation information to Symantec.
Would you like to send the information about this installation to Symantec to help improve installation in the future? [y,n,q,?] (y) y
After the installer configures Storage Foundation Cluster File System successfully, note the location of summary, log, and response files that installer creates. The files provide the useful information that can assist you with the configuration and can also assist future configurations.
summary file log file response file Describes the cluster and its configured resources. Details the entire configuration. Contains the configuration information that can be used to perform secure or unattended installations on other systems. See Configuring SFCFS using response files on page 380.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System using the script-based installer
137
PERSISTENT_NAME is not set for all the NICs. You need to set them manually before the next reboot.
Set the PERSISTENT_NAME for all the NICs. Warning: If the installer finds the network interface name to be different from the name in the configuration file, then the installer exits.
The license key The type of license The product for which it applies Its expiration date, if any. Demo keys have expiration dates. Permanent keys and site keys do not have expiration dates.
138
Configuring Veritas Storage Foundation Cluster File System Configuring Storage Foundation Cluster File System using the Web-based installer
See Replacing a Storage Foundation Cluster File System demo license with a permanent license on page 138. To update product licenses
Replacing a Storage Foundation Cluster File System demo license with a permanent license
When a Storage Foundation Cluster File System demo key license expires, you can replace it with a permanent license using the vxlicinst(1) program. To replace a demo key
1 2
Make sure you have permissions to log in as root on each of the nodes in the cluster. Shut down Storage Foundation Cluster File System on all nodes in the cluster:
# hastop -all -force
Enter the permanent license key using the following command on each node:
# vxlicinst -k XXXX-XXXX-XXXX-XXXX-XXXX-XXX
Make sure demo licenses are replaced on all cluster nodes before starting Storage Foundation Cluster File System.
# vxlicrep
Configuring Storage Foundation Cluster File System using the Web-based installer
Before you begin to configure Storage Foundation Cluster File System using the Web-based installer, review the configuration requirements.
Configuring Veritas Storage Foundation Cluster File System Configuring Storage Foundation Cluster File System using the Web-based installer
139
By default, the communication between the systems is selected as SSH. If SSH is used for communication between systems, the SSH commands execute without prompting for passwords or confirmations. Note: If you want to configure server-based I/O fencing, you must either use the script-based installer or manually configure. You can click Quit to quit the Web-installer at any time during the configuration process. To configure Storage Foundation Cluster File System on a cluster
Start the Web-based installer. See Starting the Veritas Web-based installer on page 69.
On the Select a task and a product page, select the task and the product as follows:
Task Product Configure a Product Storage Foundation for Cluster File System or Storage Foundation for Cluster File System/HA
Click Next.
On the Select Systems page, enter the system names where you want to configure Storage Foundation Cluster File System, and click Validate. Example: galaxy nebula The installer performs the initial system verification. It checks for the system communication. It also checks for release compatibility, installed product version, platform version, and performs product prechecks. Click Next after the installer completes the system verification successfully.
In the Confirmation dialog box that appears, choose whether or not to configure I/O fencing. To configure disk-based I/O fencing, click Yes. If you want to configure server-based I/O fencing, or if you decide to configure I/O fencing later, click No. You can either use the installsfcfs -fencing command or manually configure.
140
Configuring Veritas Storage Foundation Cluster File System Configuring Storage Foundation Cluster File System using the Web-based installer
On the Set Cluster Name/ID page, specify the following information for the cluster.
Cluster Name Cluster ID LLT Type Enter a unique cluster name. Enter a unique cluster ID. Select an LLT type from the list. You can choose to configure LLT over UDP or over Ethernet. If you choose Auto detect over Ethernet, the installer auto-detects the LLT links over Ethernet. Verify the links and click Yes in the Confirmation dialog box. Skip to step To configure Storage Foundation Cluster File System on a cluster. If you click No, you must manually enter the details to configure LLT over Ethernet. Number of Heartbeats Choose the number of heartbeat links you want to configure. Low Priority Heartbeat Select the check box if you want to configure a low priority NIC link. The installer configures one heartbeat link as low priority link. Unique Heartbeat NICs For LLT over Ethernet, select the check box if you do not per system want to use the same NIC details to configure private heartbeat links on other systems. For LLT over UDP, this check box is selected by default.
Click Next.
On the Set Cluster Heartbeat page, select the heartbeat link details for the LLT type you chose on the Set Cluster Name/ID page.
For LLT over Ethernet: Do the following: If you are using the same NICs on all the systems, select the NIC for each private heartbeat link. If you had selected Unique Heartbeat NICs per system on the Set Cluster Name/ID page, provide the NIC details for each system.
Select the NIC, Port, and IP address for each private heartbeat link. You must provide these details for each system.
Click Next.
Configuring Veritas Storage Foundation Cluster File System Configuring Storage Foundation Cluster File System using the Web-based installer
141
In the Confirmation dialog box that appears, choose whether or not to configure the cluster in secure mode using Symantec Product Authentication Service (AT). To configure the cluster in secure mode, click Yes. If you want to perform this task later, click No. You can use the installsfcfs -security command. Go to step To configure Storage Foundation Cluster File System on a cluster.
On the Security Options page, choose an option to enable security and specify the required information.
Do not configure security services Choose this option if you do not want to enable security. The installer takes you to the next page to configure optional features of Storage Foundation Cluster File System. Choose this option to use an external root broker. Enter the name of the root broker that is already configured for your enterprise environment, and click Validate. The installer configures the cluster in secure mode. Select the system that you want to configure as RAB node. The installer configures the cluster in secure mode.
Click Next.
On the Optional Configuration page, decide the optional VCS features that you want to configure. Click the corresponding tab to specify the details for each option:
Virtual IP
If each system uses a separate NIC, select the Configure NICs for every system separately check box. Select the interface on which you want to configure the virtual IP. Enter a virtual IP address and value for the netmask. You can use an IPv4 or an IPv6 address. VCS Users
Reset the password for the Admin user, if necessary. Click Add to add a new user. Specify the user name, password, and user privileges for this user.
142
Configuring Veritas Storage Foundation Cluster File System Configuring Storage Foundation Cluster File System using the Web-based installer
SMTP
Select the Configure SMTP check box. If each system uses a separate NIC, select the Configure NICs for every system separately check box. If all the systems use the same NIC, select the NIC for the VCS Notifier to be used on all systems. If not, select the NIC to be used by each system. In the SMTP Server box, enter the domain-based hostname of the SMTP server. Example: smtp.yourcompany.com In the Recipient box, enter the full email address of the SMTP recipient. Example: [email protected]. In the Event list box, select the minimum security level of messages to be sent to each recipient. Click Add to add more SMTP recipients, if necessary. Select the Configure SNMP check box. If each system uses a separate NIC, select the Configure NICs for every system separately check box. If all the systems use the same NIC, select the NIC for the VCS Notifier to be used on all systems. If not, select the NIC to be used by each system. In the SNMP Port box, enter the SNMP trap daemon port: (162). In the Console System Name box, enter the SNMP console system name. In the Event list box, select the minimum security level of messages to be sent to each console. Click Add to add more SNMP consoles, if necessary.
SNMP
GCO
If you installed a valid HA/DR license, you can now enter the wide-area heartbeat link details for the global cluster that you would set up later. See the Veritas Storage Foundation Cluster File System Installation Guide for instructions to set up SFCFS global clusters.
If each system uses a separate NIC, select the Configure NICs for every system separately check box. Select a NIC.
Enter a virtual IP address and value for the netmask. You can use an IPv4 or an IPv6 address.
Click Next.
10 On the Stop Processes page, click Next after the installer stops all the
processes successfully.
Configuring Veritas Storage Foundation Cluster File System Configuring Storage Foundation Cluster File System using the Web-based installer
143
11 On the Start Processes page, click Next after the installer performs the
configuration based on the details you provided and starts all the processes successfully. If you did not choose to configure I/O fencing in step To configure Storage Foundation Cluster File System on a cluster, then skip to step To configure Storage Foundation Cluster File System on a cluster. Go to step To configure Storage Foundation Cluster File System on a cluster to configure fencing.
Select the Create a new disk group option or select one of the disk groups from the list. If you selected one of the disk groups that is listed, choose the fencing mechanism for the disk group. Go to step To configure Storage Foundation Cluster File System on a cluster. If you selected the Create a new disk group option, make sure you have SCSI-3 PR enabled disks, and click Yes in the confirmation dialog box. Click Next. Go to step To configure Storage Foundation Cluster File System on a cluster.
144
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System manually
15 Select the checkbox to specify whether you want to send your installation
information to Symantec. Click Finish. The installer prompts you for another task.
The Veritas-specific commands are described in the Veritas File System guides and online manual pages. See the Veritas File System Administrators Guide.
Configuring Veritas Storage Foundation Cluster File System Configuring Veritas Storage Foundation Cluster File System manually
145
Do not use the insmod command to load the vxfs module as insmod does not examine the module configuration file /etc/modprobe.conf. To determine if the modules successfully loaded, use the lsmod command as shown here:
# lsmod | grep vxportal vxportal vxfs # lsmod | grep fdd fdd vxfs # lsmod | grep vxfs vxfs 3427960 0 [fdd vxportal] 67212 3427960 0 0 (unused) [fdd vxportal] 2952 3427960 0 0 fdd vxportal
The first field in the output is the module name. You can unload the modules by entering:
# rmmod fdd # rmmod vxportal # rmmod vxfs
The rmmod command fails if there are any mounted VxFS file systems. To determine if any VxFS file systems are mounted, enter:
# df -T | grep vxfs
146
Configuring Veritas Storage Foundation Cluster File System Configuring the SFDB repository database after installation
Chapter
10
Setting up disk-based I/O fencing using installsfcfs Setting up disk-based I/O fencing manually Setting up server-based I/O fencing using installsfcfs Setting up non-SCSI3 server-based I/O fencing using installsfcfs Setting up server-based I/O fencing manually Setting up non-SCSI3 fencing in virtual environments manually Enabling or disabling the preferred fencing policy
148
Configuring SFCFS for data integrity Setting up disk-based I/O fencing using installsfcfs
List the new external disks or the LUNs as recognized by the operating system. On each node, enter:
# fdisk -l
To initialize the disks as VxVM disks, use one of the following methods:
Use the interactive vxdiskadm utility to initialize the disks as VxVM disks. For more information see the Veritas Volume Manager Administrators Guide. Use the vxdisksetup command to initialize a disk as a VxVM disk.
vxdisksetup -i device_name
Repeat this command for each disk you intend to use as a coordinator disk.
Configuring SFCFS for data integrity Setting up disk-based I/O fencing using installsfcfs
149
The installsfcfs starts with a copyright message and verifies the cluster information. Note the location of log files which you can access in the event of any problem with the configuration process.
Confirm that you want to proceed with the I/O fencing configuration at the prompt. The program checks that the local node running the script can communicate with remote nodes and checks whether Storage Foundation Cluster File System 5.1 SP1 is configured properly.
Review the I/O fencing configuration options that the program presents. Type 2 to configure disk-based I/O fencing.
Select the fencing mechanism to be configured in this Application Cluster [1-3,b,q] 2
Review the output as the configuration program checks whether VxVM is already started and is running.
If the check fails, configure and enable VxVM before you repeat this procedure. If the check passes, then the program prompts you for the coordinator disk group information.
Choose whether to use an existing disk group or create a new disk group to configure as the coordinator disk group. The program lists the available disk group names and provides an option to create a new disk group. Perform one of the following:
To use an existing disk group, enter the number corresponding to the disk group at the prompt. The program verifies whether the disk group you chose has an odd number of disks and that the disk group has a minimum of three disks. To create a new disk group, perform the following steps:
Enter the number corresponding to the Create a new disk group option. The program lists the available disks that are in the CDS disk format in the cluster and asks you to choose an odd number of disks with at least three disks to be used as coordinator disks.
150
Configuring SFCFS for data integrity Setting up disk-based I/O fencing using installsfcfs
Symantec recommends that you use three disks as coordination points for disk-based I/O fencing.
Enter the numbers corresponding to the disks that you want to use as coordinator disks. Enter the disk group name.
Verify that the coordinator disks you chose meet the I/O fencing requirements. You must verify that the disks are SCSI-3 PR compatible using the vxfentsthdw utility and then return to this configuration program. See Checking shared disks for I/O fencing on page 151.
7 8
After you confirm the requirements, the program creates the coordinator disk group with the information you provided. Enter the I/O fencing disk policy that you chose to use. For example:
Enter fencing mechanism name (raw/dmp): [b,q,?] raw
Populates the /etc/vxfendg file with this disk group information Populates the /etc/vxfenmode file on each cluster node with the I/O fencing mode information and with the SCSI-3 disk policy information
Verify and confirm the I/O fencing configuration information that the installer summarizes.
Stops VCS and I/O fencing on each node. Configures disk-based I/O fencing and starts the I/O fencing process. Updates the VCS configuration file main.cf if necessary. Copies the /etc/vxfenmode file to a date and time suffixed file /etc/vxfenmode-date-time. This backup file is useful if any future fencing configuration fails. Starts VCS on each node to make sure that the Storage Foundation Cluster File System is cleanly configured to use the I/O fencing feature.
11 Review the output as the configuration program displays the location of the
log files, the summary files, and the response files.
Configuring SFCFS for data integrity Setting up disk-based I/O fencing using installsfcfs
151
Verifying the Array Support Library (ASL) See Verifying Array Support Library (ASL) on page 151. Verifying that nodes have access to the same disk See Verifying that the nodes have access to the same disk on page 152. Testing the shared disks for SCSI-3 See Testing the disks using vxfentsthdw utility on page 153.
152
Configuring SFCFS for data integrity Setting up disk-based I/O fencing using installsfcfs
If the Array Support Library (ASL) for the array that you add is not installed, obtain and install it on each node before proceeding. The ASL for the supported storage device that you add is available from the disk array vendor or Symantec technical support.
Verify that the ASL for the disk array is installed on each of the nodes. Run the following command on each node and examine the output to verify the installation of ASL. The following output is a sample:
# vxddladm listsupport all
LIBNAME VID PID ============================================================= libvxhitachi.so HITACHI DF350, DF400, DF400F, DF500, DF500F libvxxp1281024.so HP All libvxxp12k.so HP All libvxddns2a.so DDN S2A 9550, S2A 9900, S2A 9700 libvxpurple.so SUN T300 libvxxiotechE5k.so XIOTECH ISE1400 libvxcopan.so COPANSYS 8814, 8818 libvxibmds8k.so IBM 2107
Scan all disk drives and their attributes, update the VxVM device list, and reconfigure DMP with the new devices. Type:
# vxdisk scandisks
See the Veritas Volume Manager documentation for details on how to add and configure disks.
Configuring SFCFS for data integrity Setting up disk-based I/O fencing using installsfcfs
153
1 2
Verify the connection of the shared storage for data to two of the nodes on which you installed SFCFS. Ensure that both nodes are connected to the same disk during the testing. Use the vxfenadm command to verify the disk serial number.
vxfenadm -i diskpath
Refer to the vxfenadm (1M) manual page. For example, an EMC disk is accessible by the /dev/sdx path on node A and the /dev/sdy path on node B. From node A, enter:
vxfenadm -i /dev/sdx SCSI ID=>Host: 2 Channel: 0 Id: 0 Lun: E Vendor id : EMC Product id : SYMMETRIX Revision : 5567 Serial Number : 42031000a
The same serial number information should appear when you enter the equivalent command on node B using the /dev/sdy path. On a disk from another manufacturer, Hitachi Data Systems, the output is different and may resemble:
# vxfenadm -i /dev/sdz SCSI ID=>Host: 2 Channel: 0 Id: 0 Lun: E Vendor id Product id Revision Serial Number : : : : HITACHI OPEN-3 0117 0401EB6F0002
154
Configuring SFCFS for data integrity Setting up disk-based I/O fencing using installsfcfs
If the failure is due to a bad disk, remove and replace it. The vxfentsthdw utility indicates a disk can be used for I/O fencing with a message resembling:
The disk /dev/sdx is ready to be configured for I/O Fencing on node galaxy
For more information on how to replace coordinator disks, refer to the Veritas Storage Foundation Cluster File System Administrator's Guide. To test the disks using vxfentsthdw utility
1 2
Make sure system-to-system communication functions properly. From one node, start the utility. Run the utility with the -n option if you use rsh for communication.
# vxfentsthdw [-n]
The script warns that the tests overwrite data on the disks. After you review the overview and the warning, confirm to continue the process and enter the node names. Warning: The tests overwrite and destroy data on the disks unless you use the -r option.
******** WARNING!!!!!!!! ******** THIS UTILITY WILL DESTROY THE DATA ON THE DISK!! Do you still want to continue : [y/n] (default: n) y Enter the first node of the cluster: galaxy Enter the second node of the cluster: nebula
Configuring SFCFS for data integrity Setting up disk-based I/O fencing manually
155
Enter the names of the disks that you want to check. Each node may know the same disk by a different name.
Enter the disk name to be checked for SCSI-3 PGR on node galaxy in the format: for dmp: /dev/vx/rdmp/sdx for raw: /dev/sdx Make sure it's the same disk as seen by nodes galaxy and nebula /dev/sdr Enter the disk name to be checked for SCSI-3 PGR on node nebula in the format: for dmp: /dev/vx/rdmp/sdx for raw: /dev/sdx Make sure it's the same disk as seen by nodes galaxy and nebula /dev/sdr
If the serial numbers of the disks are not identical. then the test terminates.
5 6
Review the output as the utility performs the checks and report its activities. If a disk is ready for I/O fencing on each node, the utility reports success for each node. For example, the utility displays the following message for the node galaxy.
The disk is now ready to be configured for I/O Fencing on node galaxy ALL tests on the disk /dev/sdx have PASSED The disk is now ready to be configured for I/O Fencing on node galaxy
Run the vxfentsthdw utility for each disk you intend to verify.
156
Configuring SFCFS for data integrity Setting up disk-based I/O fencing manually
Identifying disks to use as coordinator disks Checking shared disks for I/O fencing Setting up coordinator disk groups Creating I/O fencing configuration files
Modifying Storage Foundation See Modifying VCS configuration to use I/O fencing Cluster File System on page 158. configuration to use I/O fencing Configuring Coordination Point See Configuring Coordination Point agent to monitor agent to monitor coordination coordination points on page 181. points Verifying I/O fencing configuration See Verifying I/O fencing configuration on page 160.
List the disks on each node. For example, execute the following commands to list the disks:
# vxdisk -o alldgs list
Pick three SCSI-3 PR compliant shared disks as coordinator disks. See Checking shared disks for I/O fencing on page 151.
Configuring SFCFS for data integrity Setting up disk-based I/O fencing manually
157
On any node, create the disk group by specifying the device names:
# vxdg init vxfencoorddg sdx sdy sdz
Set the coordinator attribute value as "on" for the coordinator disk group.
# vxdg -g vxfencoorddg set coordinator=on
Import the disk group with the -t option to avoid automatically importing it when the nodes restart:
# vxdg -t import vxfencoorddg
Deport the disk group. Deporting the disk group prevents the coordinator disks from serving other purposes:
# vxdg deport vxfencoorddg
Create the I/O fencing configuration file /etc/vxfendg Update the I/O fencing configuration file /etc/vxfenmode
158
Configuring SFCFS for data integrity Setting up disk-based I/O fencing manually
Do not use spaces between the quotes in the "vxfencoorddg" text. This command creates the /etc/vxfendg file, which includes the name of the coordinator disk group.
On all cluster nodes depending on the SCSI-3 mechanism, type one of the following selections:
To check the updated /etc/vxfenmode configuration, enter the following command on one of the nodes. For example:
# more /etc/vxfenmode
Edit the following file on each node in the cluster to change the values of the VXFEN_START and the VXFEN_STOP environment variables to 1: /etc/sysconfig/vxfen
Configuring SFCFS for data integrity Setting up disk-based I/O fencing manually
159
If the I/O fencing driver vxfen is already running, stop the I/O fencing driver.
# /etc/init.d/vxfen stop
On one node, use vi or another text editor to edit the main.cf file. To modify the list of cluster attributes, add the UseFence attribute and assign its value as SCSI3.
cluster clus1( UserNames = { admin = "cDRpdxPmHpzS." } Administrators = { admin } HacliUserLevel = COMMANDROOT CounterInterval = 5 UseFence = SCSI3 )
Regardless of whether the fencing configuration is disk-based or server-based, the value of the cluster-level attribute UseFence is set to SCSI3.
6 7
Save and close the file. Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:
# hacf -verify /etc/VRTSvcs/conf/config
Using rcp or another utility, copy the VCS configuration file from a node (for example, galaxy) to the remaining cluster nodes. For example, on each remaining node, enter:
# rcp galaxy:/etc/VRTSvcs/conf/config/main.cf \ /etc/VRTSvcs/conf/config
Start the I/O fencing driver and VCS. Perform the following steps on each node:
Start the I/O fencing driver. The vxfen startup script also invokes the vxfenconfig command, which configures the vxfen driver to start and use the coordination points that are listed in /etc/vxfentab.
# /etc/init.d/vxfen start
160
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
Start VCS.
# /opt/VRTS/bin/hastart
Output similar to the following appears if the SCSI3 disk policy is dmp:
I/O Fencing Cluster Information: ================================ Fencing Fencing Fencing Cluster Protocol Version: 201 Mode: SCSI3 SCSI3 Disk Policy: dmp Members:
* 0 (galaxy) 1 (nebula) RFSM State Information: node 0 in state 8 (running) node 1 in state 8 (running)
Verify that the disk-based I/O fencing is using the specified disks.
# vxfenconfig -l
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
161
See Configuring server-based I/O fencing using the installsfcfs on page 163.
Verifying the security configuration on the SFCFS cluster to use CP server coordination point
After configuring security using the installsfcfs -security command, follow the procedure below on each SFCFS cluster node to confirm that security is correctly configured.
162
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
To verify the security configuration on SFCFS cluster to use CP server coordination point
There should be a domain name entry with the following format in the command output:
[email protected]
or
HA_SERVICES@hostname
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
163
There should not be duplicate entries for HA_SERVICES domain. The following is an example of an incorrect configuration:
showdomains Domain(s) Found : 3
*************************************
Proceed to reconfigure security in case duplicate entries appear as shown in the above example.
Combination of CP servers and SCSI-3 compliant coordinator disks CP servers only Symantec also supports server-based fencing with a single highly available CP server that acts as a single coordination point.
164
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
See Recommended CP server configurations on page 101. This section covers the following example procedures:
Mix of CP servers and coordinator disks See To configure server-based fencing for the Storage Foundation Cluster File System cluster (one CP server and two coordinator disks) on page 164. See To configure server-based fencing for the Storage Foundation Cluster File System cluster (single CP server) on page 169.
Single CP server
To configure server-based fencing for the Storage Foundation Cluster File System cluster (one CP server and two coordinator disks)
Depending on the server-based configuration model in your setup, make sure of the following:
CP servers are configured and are reachable from the Storage Foundation Cluster File System cluster. The Storage Foundation Cluster File System cluster is also referred to as the application cluster or the client cluster. See Setting up the CP server on page 104. The coordination disks are verified for SCSI3-PR compliance. See Checking shared disks for I/O fencing on page 151.
The installsfcfs starts with a copyright message and verifies the cluster information. Note the location of log files which you can access in the event of any problem with the configuration process.
Confirm that you want to proceed with the I/O fencing configuration at the prompt. The program checks that the local node running the script can communicate with remote nodes and checks whether Storage Foundation Cluster File System 5.1 SP1 is configured properly.
Review the I/O fencing configuration options that the program presents. Type 1 to configure server-based I/O fencing.
Select the fencing mechanism to be configured in this Application Cluster [1-3,b,q] 1
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
165
Make sure that the storage supports SCSI3-PR, and answer y at the following prompt.
Does your storage environment support SCSI3 PR? [y,n,q] (y)
Provide the following details about the coordination points at the installer prompt:
Enter the total number of coordination points including both servers and disks. This number should be at least 3.
Enter the total number of co-ordination points including both CP servers and disks: [b] (3)
Enter the total number of coordinator disks among the coordination points.
Enter the total number of disks among these: [b] (0) 2
Enter the virtual IP addresses or host names of the virtual IP address for each of the CP servers. The installer assumes these values to be identical as viewed from all the application cluster nodes.
Enter the Virtual IP address/fully qualified host name for the Co-ordination Point Server #1: [b] 10.209.80.197
Enter the I/O fencing disk policy for the coordinator disks.
Enter fencing mechanism for the disk(s) (raw/dmp): [b,q,?] raw
Choose the coordinator disks from the list of available disks that the installer displays. Ensure that the disk you choose is available from all the Storage Foundation Cluster File System (application cluster) nodes.
166
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
The number of times that the installer asks you to choose the disks depends on the information that you provided in step 6. For example, if you had chosen to configure two coordinator disks, the installer asks you to choose the first disk and then the second disk:
Select disk number 1 for co-ordination point 1) sdx 2) sdy 3) sdz Please enter a valid disk which is available from all the cluster nodes for co-ordination point [1-3,q] 1
If you have not already checked the disks for SCSI-3 PR compliance in step 1, check the disks now. The installer displays a message that recommends you to verify the disks in another window and then return to this configuration procedure. Press Enter to continue, and confirm your disk selection at the installer prompt. Enter a disk group name for the coordinator disks or accept the default.
Enter the disk group name for coordinating disk(s): [b] (vxfencoorddg)
Verify and confirm the coordination points information for the fencing configuration. For example:
Total number of coordination points being used: 3 CP Server (Port): 1. 10.209.80.197 (14250) SCSI-3 disks: 1. sdx 2. sdy Disk Group name for the disks in customized fencing: vxfencoorddg Disk mechanism used for customized fencing: raw
The installer initializes the disks and the disk group and deports the disk group on the Storage Foundation Cluster File System (application cluster) node.
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
167
Make sure that the security configuration in the application cluster and the CP server is the same. If CP server is configured for security, ensure that the application cluster also runs in secure mode. If the CP server is configured for security, perform the following steps:
Review the output as the installer verifies if the Storage Foundation Cluster File System (application cluster) nodes have already established trust with an AT root broker. If the Storage Foundation Cluster File System (application cluster) nodes and the CP server use different AT root brokers, enter y at the installer prompt and provide the following information:
Hostname for the authentication broker for any one of the CP servers Port number where the authentication broker for the CP server is listening for establishing trust Hostname for the authentication broker for any one of the Storage Foundation Cluster File System (application cluster) nodes Port number where the authentication broker for the Storage Foundation Cluster File System (application cluster) is listening for establishing trust
After the installer establishes trust between the authentication brokers of the CP servers and the application cluster nodes, press Enter to continue.
168
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
12 Review the output as the installer updates the application cluster information
on each of the CP servers to ensure connectivity between them. The installer then populates the /etc/vxfenmode file with the appropriate details in each of the application cluster nodes.
Updating client cluster information on CP Server 10.210.80.199 Adding the client cluster to the CP Server 10.210.80.199 .................. Done Registering client node galaxy with CP Server 10.210.80.199.............. Done Adding CPClient user for communicating to CP Server 10.210.80.199 ......... Done Adding cluster clus1 to the CPClient user on CP Server 10.210.80.199 ... Done Registering client node nebula with CP Server 10.210.80.199 ............. Done Adding CPClient user for communicating to CP Server 10.210.80.199 ......... Done Adding cluster clus1 to the CPClient user on CP Server 10.210.80.199 ... Done Updating /etc/vxfenmode file on galaxy .................................. Done Updating /etc/vxfenmode file on nebula ......... ........................ Done
14 Review the output as the installer stops and restarts the VCS and the fencing
processes on each application cluster node, and completes the I/O fencing configuration.
15 Note the location of the configuration log files, summary files, and response
files that the installer displays for later use.
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
169
To configure server-based fencing for the Storage Foundation Cluster File System cluster (single CP server)
Make sure that the CP server is configured and is reachable from the Storage Foundation Cluster File System cluster. The Storage Foundation Cluster File System cluster is also referred to as the application cluster or the client cluster. See Setting up the CP server on page 104.
The installsfcfs starts with a copyright message and verifies the cluster information. Note the location of log files which you can access in the event of any problem with the configuration process.
Confirm that you want to proceed with the I/O fencing configuration at the prompt. The program checks that the local node running the script can communicate with remote nodes and checks whether Storage Foundation Cluster File System 5.1 SP1 is configured properly.
Review the I/O fencing configuration options that the program presents. Type 1 to configure server-based I/O fencing.
Select the fencing mechanism to be configured in this Application Cluster [1-3,b,q] 1
Make sure that the storage supports SCSI3-PR, and answer y at the following prompt.
Does your storage environment support SCSI3 PR? [y,n,q] (y)
Read the installer warning carefully before you proceed with the configuration.
Enter the virtual IP address or the host name of the virtual IP address for the CP server. The installer assumes these values to be identical as viewed from all the application cluster nodes.
170
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
Enter the Virtual IP address/fully qualified host name for the Co-ordination Point Server #1: [b] 10.209.80.197
Verify and confirm the coordination points information for the fencing configuration. For example:
Total number of coordination points being used: 1 CP Server (Port): 1. 10.209.80.197 (14250)
If the CP server is configured for security, the installer sets up secure communication between the CP server and the Storage Foundation Cluster File System (application cluster):
Make sure that the security configuration in the application cluster and the CP server is the same. If CP server is configured for security, ensure that the application cluster also runs in secure mode. If the CP server is configured for security, perform the following steps:
Review the output as the installer verifies if the Storage Foundation Cluster File System (application cluster) nodes have already established trust with an AT root broker. If the Storage Foundation Cluster File System (application cluster) nodes and the CP server use different AT root brokers, enter y at the installer prompt and provide the following information:
Hostname for the authentication broker for any one of the CP servers Port number where the authentication broker for the CP server is listening for establishing trust Hostname for the authentication broker for any one of the Storage Foundation Cluster File System (application cluster) nodes
Configuring SFCFS for data integrity Setting up server-based I/O fencing using installsfcfs
171
Port number where the authentication broker for the Storage Foundation Cluster File System (application cluster) is listening for establishing trust
After the installer establishes trust between the authentication brokers of the CP servers and the application cluster nodes, press Enter to continue.
11 Review the output as the installer updates the application cluster information
on each of the CP servers to ensure connectivity between them. The installer then populates the /etc/vxfenmode file with the appropriate details in each of the application cluster nodes. The installer also populates the /etc/vxfenmode file with the entry single_cp=1 for such single CP server fencing configuration.
Updating client cluster information on CP Server 10.210.80.199 Adding the client cluster to the CP Server 10.210.80.199 .................. Done Registering client node galaxy with CP Server 10.210.80.199.............. Done Adding CPClient user for communicating to CP Server 10.210.80.199 ......... Done Adding cluster clus1 to the CPClient user on CP Server 10.210.80.199 ... Done Registering client node nebula with CP Server 10.210.80.199 ............. Done Adding CPClient user for communicating to CP Server 10.210.80.199 ......... Done Adding cluster clus1 to the CPClient user on CP Server 10.210.80.199 ... Done Updating /etc/vxfenmode file on galaxy .................................. Done Updating /etc/vxfenmode file on nebula ......... ........................ Done
172
Configuring SFCFS for data integrity Setting up non-SCSI3 server-based I/O fencing using installsfcfs
13 Review the output as the installer stops and restarts VCS with the fencing
processes on each application cluster node, and completes the I/O fencing configuration.
14 Note the location of the configuration log files, summary files, and response
files that the installer displays for later use.
Preparing the CP servers for See Preparing the CP servers manually for use by the use by the Storage Foundation SFCFS cluster on page 173. Cluster File System cluster Modifying I/O fencing See Configuring server-based fencing on the SFCFS configuration files to configure cluster manually on page 177. server-based I/O fencing
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
173
Modifying Storage Foundation See Modifying VCS configuration to use I/O fencing Cluster File System on page 158. configuration to use I/O fencing Configuring Coordination Point See Configuring Coordination Point agent to monitor agent to monitor coordination coordination points on page 181. points Verifying the server-based I/O See Verifying server-based I/O fencing configuration fencing configuration on page 183.
174
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
Determine the cluster name and uuid on the SFCFS cluster. For example, issue the following commands on one of the SFCFS cluster nodes (galaxy):
# grep cluster /etc/VRTSvcs/conf/config/main.cf cluster clus1 # cat /etc/vx/.uuids/clusuuid {f0735332-1dd1-11b2}
Use the cpsadm command to check whether the SFCFS cluster and nodes are present in the CP server. For example:
# cpsadm -s mycps1.symantecexample.com -a list_nodes ClusName UUID Hostname(Node ID) Registered clus1 {f0735332-1dd1-11b2} galaxy(0) 0 clus1 {f0735332-1dd1-11b2} nebula(1) 0
If the output does not show the cluster and nodes, then add them as described in the next step. For detailed information about the cpsadm command, see the Veritas Storage Foundation Cluster File System Administrator's Guide.
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
175
Add the SFCFS cluster and nodes to each CP server. For example, issue the following command on the CP server (mycps1.symantecexample.com) to add the cluster:
# cpsadm -s mycps1.symantecexample.com -a add_clus\ -c clus1 -u {f0735332-1dd1-11b2}
Issue the following command on the CP server (mycps1.symantecexample.com) to add the first node:
# cpsadm -s mycps1.symantecexample.com -a add_node\ -c clus1 -u {f0735332-1dd1-11b2} -h galaxy -n0 Node 0 (galaxy) successfully added
Issue the following command on the CP server (mycps1.symantecexample.com) to add the second node:
# cpsadm -s mycps1.symantecexample.com -a add_node\ -c clus1 -u {f0735332-1dd1-11b2} -h nebula -n1 Node 1 (nebula) successfully added
If security is to be enabled, check whether the _HA_VCS_ users are created in the CP server. If the output below does not show the users, then add them as described in the next step.
# cpsadm -s mycps1.symantecexample.com -a list_users Username/Domain Type Cluster Name / UUID Role
If security is to be disabled, then add the user name "cpsclient@hostname" to the server instead of the _HA_VCS_ users (for example, cpsclient@galaxy). The CP server can only run in either secure mode or non-secure mode, both connections are not accepted at the same time.
176
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
Add the users to the CP server. First, determine the user@domain to be added on the SFCFS cluster (application cluster). The user for fencing should be of the form _HA_VCS_short-hostname and domain name is that of HA_SERVICES user in the output of command:
# /opt/VRTScps/bin/cpsat listpd -t local
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
177
Authorize the CP server user to administer the SFCFS cluster. You must perform this task for the CP server users corresponding to each node in the SFCFS cluster. For example, issue the following command on the CP server (mycps1.symantecexample.com) for SFCFS cluster clus1 with two nodes galaxy and nebula:
# cpsadm -s mycps1.symantecexample.com -a\ add_clus_to_user -c clus1\ -u {f0735332-1dd1-11b2}\ -e _HA_VCS_galaxy@[email protected]\ -f cps_operator -g vx Cluster successfully added to user _HA_VCS_galaxy@[email protected] privileges. # cpsadm -s mycps1.symantecexample.com -a\ add_clus_to_user -c clus1\ -u {f0735332-1dd1-11b2}\ -e _HA_VCS_nebula@[email protected]\ -f cps_operator -g vx Cluster successfully added to user _HA_VCS_nebula@[email protected] privileges.
Fencing mode Fencing mechanism Fencing disk policy (if applicable to your I/O fencing configuration) Appropriate value for the security configuration CP server or CP servers Coordinator disk group (if applicable to your I/O fencing configuration)
178
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
Note: Whenever coordinator disks are used as coordination points in your I/O fencing configuration, you must create a disk group (vxfendg). You must specify this disk group in the /etc/vxfenmode file. See Setting up coordinator disk groups on page 157. The customized fencing framework also generates the /etc/vxfentab file which has security setting and the coordination points (all the CP servers and disks from disk group specified in /etc/vxfenmode file). To configure server-based fencing on the SFCFS cluster manually
Use a text editor to edit the following file on each node in the cluster:
/etc/sysconfig/vxfen
You must change the values of the VXFEN_START and the VXFEN_STOP environment variables to 1.
Use a text editor to edit the /etc/vxfenmode file values to meet your configuration specifications. If your server-based fencing configuration uses a single highly available CP server as its only coordination point, make sure to add the single_cp=1 entry in the /etc/vxfenmode file. The following sample file output displays what the /etc/vxfenmode file contains: See Sample vxfenmode file output on page 178.
After editing the /etc/vxfenmode file, run the vxfen init script to start fencing. For example:
# /etc/init.d/vxfen start
vxfen_mode determines in what mode VCS I/O Fencing should work. available options: scsi3 - use scsi3 persistent reservation disks customized - use script based customized fencing disabled - run the driver but don't do any actual fencing
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
179
vxfen_mode=customized # vxfen_mechanism determines the mechanism for customized I/O # fencing that should be used. # # available options: # cps - use a coordination point server with optional script # controlled scsi3 disks # vxfen_mechanism=cps # # scsi3_disk_policy determines the way in which I/O Fencing # communicates with the coordination disks. This field is # required only if customized coordinator disks are being used. # # available options: # dmp - use dynamic multipathing # raw - connect to disks using the native interface # scsi3_disk_policy=dmp # security when enabled uses secure communication to the cp server # using VxAT (Veritas Authentication Service) # available options: # 0 - don't use Veritas Authentication Service for cp server # communication # 1 - use Veritas Authentication Service for cp server # communication security=1 # # # # # # # # # # # #
Specify 3 or more odd number of coordination points in this file, one in each row. They can be all-CP servers, all-SCSI-3 compliant coordinator disks, or a combination of CP servers and SCSI-3 compliant coordinator disks. Please ensure that the CP server coordination points are numbered sequentially and in the same order on all the cluster nodes. Coordination Point Server(CPS) is specified as: cps<number>=<Virtual IP/ Virtual hostname of cp server> in square brackets ([]), followed by ":" and CPS port number.
180
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
# # # # # # # # # # # # # # # # # # # # # # # # # # #
Examples: cps1=[192.168.0.23]:14250 cps2=[mycps.company.com]:14250 SCSI-3 compliant coordinator disks are specified as: vxfendg=<coordinator disk group name> Example: vxfendg=vxfencoorddg Examples of different configurations: 1. All CP server coordination points cps1= cps2= cps3= 2. A combination of CP server and a disk group having two SCSI-3 coordinator disks cps1= vxfendg= Note: The disk group specified in this case should have two disks 3. All SCSI-3 coordinator disks vxfendg= Note: The disk group specified in case should have three disks
Table 10-4 defines the vxfenmode parameters that must be edited. Table 10-4 vxfenmode File Parameter
vxfen_mode
vxfen_mechanism
scsi3_disk_policy
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
181
182
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
1 2
Ensure that your SFCFS cluster has been properly installed and configured with fencing enabled. Create a parallel service group vxfen and add a coordpoint resource to the vxfen service group using the following commands:
# # # # # # # # # # haconf -makerw hagrp -add vxfen hagrp -modify vxfen SystemList galaxy 0 nebula 1 hagrp -modify vxfen AutoFailOver 0 hagrp -modify vxfen Parallel 1 hagrp -modify vxfen SourceFile "./main.cf" hares -add coordpoint CoordPoint vxfen hares -modify coordpoint FaultTolerance 1 hares -modify coordpoint Enabled 1 haconf -dump -makero
Configuring SFCFS for data integrity Setting up server-based I/O fencing manually
183
Verify the status of the agent on the SFCFS cluster using the hares commands. For example:
# hares -state coordpoint
Access the engine log to view the agent log. The agent log is written to the engine log. The agent log contains detailed Coordination Point agent monitoring information; including information about whether the Coordination Point agent is able to access all the coordination points, information to check on which coordination points the Coordination Point agent is reporting missing keys, etc. To view all such information in the engine log, change the dbg level for that node using the following commands:
# haconf -makerw # hatype -modify Coordpoint LogDbg 10 # haconf -dump -makero
The agent log can now be viewed at the following location: /var/VRTSvcs/log/engine_A.log See the Veritas Cluster Server Bundled Agents Reference Guide for more information on the agent.
184
Configuring SFCFS for data integrity Setting up non-SCSI3 fencing in virtual environments manually
Verify that the I/O fencing configuration was successful by running the vxfenadm command. For example, run the following command:
# vxfenadm -d
Note: For troubleshooting any server-based I/O fencing configuration issues, refer to the Veritas Storage Foundation Cluster File System Administrator's Guide.
Verify that I/O fencing is using the specified coordination points by running the vxfenconfig command. For example, run the following command:
# vxfenconfig -l
If the output displays single_cp=1, it indicates that the application cluster uses a CP server as the single coordination point for server-based fencing.
Configure I/O fencing in customized mode with only CP servers as coordination points. See Setting up server-based I/O fencing manually on page 172.
Make sure that the Storage Foundation Cluster File System cluster is online and check that the fencing mode is customized.
# vxfenadm -d
Configuring SFCFS for data integrity Setting up non-SCSI3 fencing in virtual environments manually
185
On each node, set the value of the LLT sendhbcap timer parameter value as follows:
Add the following line to the /etc/llttab file so that the changes remain persistent after any reboot:
set-timer senhbcap:3000
For each resource of the type DiskGroup, set the value of the MonitorReservation attribute to 0 and the value of the Reservation attribute to NONE.
# hares -modify <dg_resource> MonitorReservation 0 # hares -modify <dg_resource> Reservation "NONE"
186
Configuring SFCFS for data integrity Setting up non-SCSI3 fencing in virtual environments manually
Make sure that the UseFence attribute in the VCS configuration file main.cf is set to SCSI3. dependent modules
10 To make these VxFEN changes take effect, stop and restart VxFEN and the
On each node, run the following command to stop VCS:
# /etc/init.d/vcs stop
After VCS takes all services offline, run the following command to stop VxFEN:
# /etc/init.d/vxfen stop
On each node, run the following commands to restart VxFEN and VCS:
# /etc/init.d/vxfen start # /etc/init.d/vcs start
Configuring SFCFS for data integrity Setting up non-SCSI3 fencing in virtual environments manually
187
# # # # # # # # # #
scsi3_disk_policy determines the way in which I/O Fencing communicates wi the coordination disks. This field is required only if customized coordinator disks are being used. available options: dmp - use dynamic multipathing raw - connect to disks using the native interface scsi3_disk_policy=dmp
# # Seconds for which the winning sub cluster waits to allow for the losing # subcluster to panic & drain I/Os. Useful in the absence of SCSI3 based # data disk fencing loser_exit_delay=55 # # Seconds for which vxfend process wait for a customized fencing # script to complete. Only used with vxfen_mode=customized vxfen_script_timeout=25 # # security when enabled uses secure communication to the cp server # using VxAT (Veritas Authentication Service) # available options: # 0 - don't use Veritas Authentication Service for cp server # communication # 1 - use Veritas Authentication Service for cp server # communication security=1 # # # # # # # # # #
Specify 3 or more odd number of coordination points in this file, one in each row. They can be all-CP servers, all-SCSI-3 compliant coordinator disks, or a combination of CP servers and SCSI-3 compliant coordinator disks. Please ensure that the CP server coordination points are numbered sequentially and in the same order on all the cluster nodes. Coordination Point Server(CPS) is specified as: cps<number>=<Virtual IP/Virtual hostname of cp server> in square
188
Configuring SFCFS for data integrity Enabling or disabling the preferred fencing policy
# brackets ([]), followed by ":" and CPS port number. # # Examples: # cps1=[192.168.0.23]:14250 # cps2=[mycps.company.com]:14250 # # SCSI-3 compliant coordinator disks are specified as: # # vxfendg=<coordinator disk group name> # Example: # vxfendg=vxfencoorddg # # Examples of different configurations: # 1. All CP server coordination points # cps1= # cps2= # cps3= # # 2. A combination of CP server and a disk group having two SCSI-3 # coordinator disks # cps1= # vxfendg= # Note: The disk group specified in this case should have two disks # # 3. All SCSI-3 coordinator disks # vxfendg= # Note: The disk group specified in case should have three disks # cps1=[mycps1.company.com]:14250 cps2=[mycps2.company.com]:14250 cps3=[mycps3.company.com]:14250 ================================
Configuring SFCFS for data integrity Enabling or disabling the preferred fencing policy
189
Make sure that the cluster is running with I/O fencing set up.
# vxfenadm -d
Make sure that the cluster-level attribute UseFence has the value set to SCSI3.
# haclus -value UseFence
Set the value of the system-level attribute FencingWeight for each node in the cluster. For example, in a two-node cluster, where you want to assign galaxy five times more weight compared to nebula, run the following commands:
# hasys -modify galaxy FencingWeight 50 # hasys -modify nebula FencingWeight 10
Set the value of the group-level attribute Priority for each service group. For example, run the following command:
190
Configuring SFCFS for data integrity Enabling or disabling the preferred fencing policy
Make sure that you assign a parent service group an equal or lower priority than its child service group. In case the parent and the child service groups are hosted in different subclusters, then the subcluster that hosts the child service group gets higher preference.
To view the fencing node weights that are currently set in the fencing driver, run the following command:
# vxfenconfig -a
Make sure that the cluster is running with I/O fencing set up.
# vxfenadm -d
Make sure that the cluster-level attribute UseFence has the value set to SCSI3.
# haclus -value UseFence
To disable preferred fencing and use the default race policy, set the value of the cluster-level attribute PreferredFencingPolicy as Disabled.
# haconf -makerw # haclus -modify PreferredFencingPolicy Disabled # haconf -dump -makero
Section
Chapter 11. Preparing to upgrade Veritas Storage Foundation Cluster File System Chapter 12. Performing a typical SFCFS upgrade using the installer Chapter 13. Performing a phased upgrade Chapter 14. Performing a rolling upgrade Chapter 15. Upgrading Veritas Volume Replicator Chapter 16. Migrating from SFHA to SFCFS or SFCFSHA
192
Chapter
11
About upgrading About the different ways that you can upgrade Supported upgrade paths About using the installer to upgrade when the root disk is encapsulated Preparing to upgrade
About upgrading
You have many types of upgrades available. Before you start to upgrade, review the types of upgrades for the Veritas products. See About the different ways that you can upgrade on page 194. Review the supported upgrade paths that are available for the different methods of upgrading. See Supported upgrade paths on page 195. After you determine the type of upgrade that you want to perform and its upgrade paths, review the steps to prepare for the upgrade.
194
Preparing to upgrade Veritas Storage Foundation Cluster File System About the different ways that you can upgrade
Caution: After you perform an upgrade from 5.1 or 5.1RPx to 5.1 SP1, Symantec recommends that you do not roll-back to 5.1 or 5.1RPx. If you want to upgrade CP server systems that use VCS or SFHA to 5.1 SP1, make sure you upgraded all application clusters to 5.1 SP1. Then, upgrade VCS or SFHA on the CP server systems.
Typical upgradesuses a Veritas provided Script-basedyou can use this to upgrade tool or you can perform the upgrade for the supported upgrade paths manually. Requires some server downtime. Web-basedyou can use this to upgrade for the supported upgrade paths Manualyou can use this to upgrade from the previous release Response fileyou can use this to upgrade from the previous release Rolling upgradeuses a Veritas provided tool or you can perform the upgrade manually. Requires least amount of server downtime. Phased upgradesuses a Veritas provided tool and some manual steps. Requires less server downtime than a regular upgrade. Script-basedyou can use this to upgrade from the previous release Web-basedyou can use this to upgrade from the previous release Script-based with some manual stepsyou can use this to upgrade from the previous release
Native operating system upgradeuses the Operating system specific methods upgrade software that comes with the Operating system upgrades operating system. Note that not all operating systems support native upgrades.
Note: Script- and Web-based upgrades ask for very similar system information for upgrades.
Preparing to upgrade Veritas Storage Foundation Cluster File System Supported upgrade paths
195
RHEL 5 x64 upgrades using the script- or Web-based installer RHAS 2.1, RHEL 3 RHEL 4 RHEL 5
N/A
No Upgrade path N/A exists. Uninstall product, upgrade to RHEL 5 U3 or later, then do full 5.1SP1 install using installer script N/A No Upgrade Path exists. Uninstall product, upgrade to RHEL 5 U3 or later, then do full 5.1SP1 install using installer script
Upgrade to 4.1MP4, then upgrade OS to RHEL5 U3 or later, and then upgrade to 5.1SP1 using the installer script
N/A
No Upgrade Path N/A exists. Uninstall product, upgrade to RHEL 5 U3 or later, then do full 5.1SP1 install using installer script No Upgrade Path exists. Uninstall product, upgrade to RHEL 5 U3 or later, then do full 5.1SP1 install using installer script N/A Upgrade to RHEL5 U3 or later, then upgrade to 5.1SP1 using the installer script
N/A
N/A
196
Preparing to upgrade Veritas Storage Foundation Cluster File System Supported upgrade paths
Table 11-2
RHEL 5 x64 upgrades using the script- or Web-based installer (continued) RHAS 2.1, RHEL 3
N/A
RHEL 4
N/A
RHEL 5
Upgrade to RHEL5 U3 or later, then do full 5.1SP1 install using installer script
SLES 10 x64 upgrades using the script- or Web-based installer SLES 8 SLES 9 SLES 10
N/A
No upgrade path N/A exists. Uninstall product, upgrade to SLES10 SP2/SP3, or SLES11 base/SP1, then do full 5.1SP1 install using installer script N/A
No Upgrade path N/A exists. Uninstall product, upgrade to SLES10 SP2/SP3, or SLES11 base/SP1, then do full 5.1SP1 install using installer script No Upgrade path exists. Uninstall product, upgrade to SLES10 SP2/SP3, or SLES11 base/SP1, then do full 5.1SP1 install using installer script Upgrade to 4.1MP4 RP3 or 4.1MP4 RP5, upgrade to SLES10 SP2 or SP3, then upgrade to 5.1SP1 using installer script
N/A
Preparing to upgrade Veritas Storage Foundation Cluster File System Supported upgrade paths
197
Table 11-3
SLES 10 x64 upgrades using the script- or Web-based installer (continued) SLES 8
N/A
SLES 9
SLES 10
No Upgrade path N/A exists. Uninstall product, upgrade to SLES10 SP2/SP3, or SLES11 base/SP1, then do full 5.1SP1 install using installer script No Upgrade path exists. Uninstall product, upgrade to SLES10 SP2/SP3, or SLES11 base/SP1, then do full 5.1SP1 install using installer script N/A Upgrade to SLES10 SP2/SP3, then upgrade to 5.1SP1 using installer script
N/A
N/A
N/A
N/A
Upgrade to SLES10 SP2/SP3, then do full 5.1SP1 install using installer script
198
Preparing to upgrade Veritas Storage Foundation Cluster File System Supported upgrade paths
SLES 11 x64 upgrades using the script- or Web-based installer SLES 8 SLES 9 SLES 10 SLES 11
No upgrade N/A path exists. Uninstall product, upgrade to SLES11 base or SP1, then do full 5.1SP1 install using installer script N/A
N/A
N/A
4.1 4.1 MP1 4.1 MP2 5.0 5.0 MP1 5.0 MP2
No Upgrade N/A path exists. Uninstall product, upgrade to SLES11 base or SP1, then do full 5.1SP1 install using installer script No Upgrade path exists. Uninstall product, upgrade to SLES11 base or SP1, then do full 5.1SP1 install using installer script
N/A
N/A
No Upgrade N/A path exists. Uninstall product, upgrade to SLES11 base or SP1, then do full 5.1SP1 install using installer script
Preparing to upgrade Veritas Storage Foundation Cluster File System About using the installer to upgrade when the root disk is encapsulated
199
Table 11-4
SLES 11 x64 upgrades using the script- or Web-based installer (continued) SLES 8 SLES 9 SLES 10 SLES 11
N/A
N/A
No Upgrade N/A path exists. Uninstall product, upgrade to SLES11 base or SP1, then do full 5.1SP1 install using installer script No Upgrade Upgrade to 5.1SP1 path exists. using installer Uninstall script product, upgrade to SLES11 base or SP1, then do full 5.1SP1 install using installer script N/A Upgrade to 5.1SP1 using installer script Upgrade to 5.1SP1 using installer script
5.0 MP4
N/A
No Upgrade path exists. Uninstall product, upgrade to SLES11 base or SP1, then do full 5.1SP1 install using installer script N/A
5.0 RU1
N/A
N/A
N/A
N/A
About using the installer to upgrade when the root disk is encapsulated
When you use the installer to upgrade from a previous version of SFCFS and the system where you plan to upgrade has an encapsulated root disk, you may have to unecapsulate it.
200
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
Upgrading using installer when the root disk is encapsulated Ending version
5.1 SP1
Action required
You need to unencapsulate the root disk. The installer exits. You need to unencapsulate the root disk. The installer exits. Do not unencapsulate. The installer runs normally. Reboot after upgrade.
5.1 SP1
5.1 SP1
Preparing to upgrade
Before you upgrade, you need to prepare the systems and storage. Review the following procedures and perform the appropriate tasks.
Review the Veritas Storage Foundation Cluster FIle System Release Notes for any late-breaking information on upgrading your system. Review the Symantec Technical Support website for additional information: http://www.symantec.com/techsupp/ For Solaris 10, make sure that all non-global zones are booted and in the running state before you use the Veritas product installer to upgrade the Storage Foundation products in the global zone. If the non-global zones are not mounted and running at the time of the upgrade, you must upgrade each package in each non-global zone manually. For Live Upgrade, if the alternative root environment also has a zone, you cannot install VRTSodm. You must remove the VRTSodm RPM first then install the Storage Foundation product. After you reboot the alternative root, you can install VRTSodm. Make sure that the administrator who performs the upgrade has root access and a good knowledge of the operating system's administration. Make sure that all users are logged off and that all major user applications are properly shut down.
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
201
Make sure that you have created a valid backup. Ensure that you have enough file system space to upgrade. Identify where you want to copy the RPMs, for example /packages/Veritas when the root file system has enough space or /var/tmp/packages if the /var file system has enough space. Do not put the files under /tmp, which is erased during a system reboot. Do not put the files on a file system that is inaccessible prior to running the upgrade script. You can use a Veritas-supplied disc for the upgrade as long as modifications to the upgrade script are not required. If /usr/local was originally created as a slice, modifications are required. For any startup scripts in /etc/rcS.d, comment out any application commands or processes that are known to hang if their file systems are not present. Make sure that the current operating system supports version 5.1 SP1 of Storage Foundation or Storage Foundation High Availability. If the operating system does not support the Veritas product, plan for a staged upgrade. Schedule sufficient outage time for the upgrade. Depending on the configuration, the outage can take several hours. Any swap partitions not in rootdg must be commented out of /etc/fstab. If possible, swap partitions other than those on the root disk should be commented out of /etc/fstab and not mounted during the upgrade. Active swap partitions that are not in rootdg cause upgrade_start to fail. Make sure the file systems are clean before upgrading. If required, upgrade VxFS disk layouts to a supported version. Some previous layout versions cannot be mounted on VxFS 5.1 SP1. You can upgrade these layout versions online before installing VxFS 5.1 SP1, or upgrade them using vxfsconvert after installing VxFS 5.1 SP1. Upgrade arrays (if required) If replication using VVR is configured, Symantec recommends that the disk group version is at least 110 prior to upgrading.
# vxdg list diskgroup
If replication using VVR is configured, make sure the size of the SRL volume is greater than 110 MB. Refer to the Veritas Volume Replicator Administrator's Guide. If replication using VVR is configured, verify that all the Primary RLINKs are up-to-date on all the hosts.
202
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
Note: Do not continue until the primary RLINKs are up-to-date. If VCS is used to manage VVR replication, follow the preparation steps to upgrade VVR and VCS agents. Schedule sufficient outage time and downtime for the upgrade and any applications that use the Veritas products. To reliably save information on a mirrored disk, shut down the system and physically remove the mirrored disk. Removing the disk in this manner offers a failback point. To upgrade on a remote host, set up RSH or SSH. See About configuring secure shell or remote shell communication modes before installing products on page 407. Determine if the root disk is encapsulated. See Determining if the root disk is encapsulated on page 203.
Creating backups
Save relevant system information before the upgrade. To create backups
1 2 3 4
Log in as superuser. Before the upgrade, ensure that you have made backups of all data that you want to preserve. Back up information in files such as /boot/grub/menu.lst, /etc/grub.conf or /etc/lilo.conf , and /etc/fstab. Copy the fstab file to fstab.orig:
# cp /etc/fstab /etc/fstab.orig
5 6
Run the vxlicrep, vxdisk list, and vxprint -ht commands and record the output. Use this information to reconfigure your system after the upgrade. If you are installing the high availability version of the Veritas Storage Foundation 5.1 SP1 software, follow the guidelines given in the Veritas Cluster Server Installation Guide and Veritas Cluster Server Release Notes for information on preserving your VCS configuration across the installation procedure.
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
203
The root disk is under VxVM control if /dev/vx/dsk/rootdg/rootvol is listed as being mounted as the root (/) file system. If the root disk is encapsulated, follow the appropriate upgrade procedures.
Confirm that your system has enough free disk space to install VVR. Make sure you have root permissions. You must have root permissions to perform the install and upgrade procedures.
See the Getting Started Guide for more information on the documentation.
204
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
does not support changing the configuration with the vradmin command or creating a new RDS. Also, if you specify TCP as the network protocol, the VVR versions on the Primary and Secondary determine whether the checksum is calculated. As shown in Table 11-6, if either the Primary or Secondary are running a version of VVR prior to 5.1 SP1, and you use the TCP protocol, VVR calculates the checksum for every data packet it replicates. If the Primary and Secondary are at VVR 5.1 SP1, VVR does not calculate the checksum. Instead, it relies on the TCP checksum mechanism. Table 11-6 VVR versions and checksum calculations VVR 5.1 SP1 (DG version >= 150)
Secondary Primary
No
Note: When replicating between versions of VVR, avoid using commands associated with new features. The earlier version may not support new features and problems could occur. If you do not need to upgrade all the hosts in the RDS simultaneously, you can use replication between versions after you upgrade one host. You can then upgrade the other hosts in the RDS later at your convenience. Note: If you have a cluster setup, you must upgrade all the nodes in the cluster at the same time.
VVR continues to support replication between IPv4-only nodes with IPv4 as the internet protocol
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
205
VVR supports replication between IPv4-only nodes and IPv4/IPv6 dual-stack nodes with IPv4 as the internet protocol VVR supports replication between IPv6-only nodes and IPv4/IPv6 dual-stack nodes with IPv6 as the internet protocol VVR supports replication between IPv6 only nodes VVR supports replication to one or more IPv6 only nodes and one or more IPv4 only nodes from a IPv4/IPv6 dual-stack node VVR supports replication of a shared disk group only when all the nodes in the cluster that share the disk group are at IPv4 or IPv6
Freezing the service groups and stopping all the applications Preparing for the upgrade when VCS agents are configured
1 2 3
Log in as the superuser. Make sure that /opt/VRTS/bin is in your PATH so that you can execute all the product commands. Before the upgrade, cleanly shut down all applications. In a shared disk group environment:
OFFLINE all application service groups that do not contain RVGShared resources. Do not OFFLINE the ClusterService, cvm and RVGLogowner groups. If the application resources are part of the same service group as an RVGShared resource, then OFFLINE only the application resources.
OFFLINE all application service groups that do not contain RVG resources. Do not OFFLINE the service groups containing RVG resources. If the application resources are part of the same service group as an RVG resource, then OFFLINE only the application resources. In other words,
206
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
ensure that the RVG resource remains ONLINE so that the private disk groups containing these RVG objects do not get deported. Note: You must also stop any remaining applications not managed by VCS.
On any node in the cluster, freeze all service groups except the ClusterService group by typing the following command for each group name displayed in the output from step 5.
# hagrp -freeze group_name -persistent
Note: Write down the list of frozen service groups for future use.
On any node in the cluster, save the configuration file (main.cf) with the groups frozen:
# haconf -dump -makero
Note: Continue only after you have performed steps 3 to step 7 for each cluster.
Display the list of service groups that have RVG resources and the nodes on which each service group is online by typing the following command on any node in the cluster:
# hares -display -type RVG -attribute State Resource VVRGrp ORAGrp Attribute State State System system02 system02 Value ONLINE ONLINE
Note: For the resources that are ONLINE, write down the nodes displayed in the System column of the output.
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
207
Repeat step 8 for each cluster. disk groups are imported. See Determining the nodes on which disk groups are online on page 207.
10 For private disk groups, determine and note down the hosts on which the
11 For shared disk groups, run the following command on any node in the CVM
cluster:
# vxdctl -c mode
On any node in the cluster, list the disk groups in your configuration, and note down the disk group names listed in the output for future use:
# hares -display -type RVG -attribute DiskGroup
Note: Write down the list of the disk groups that are under VCS control.
For each disk group listed in the output in step 1, list its corresponding disk group resource name:
# hares -list DiskGroup=diskgroup Type=DiskGroup
For each disk group resource name listed in the output in step 2, get and note down the node on which the disk group is imported by typing the following command:
# hares -display dg_resname -attribute State
The output displays the disk groups that are under VCS control and nodes on which the disk groups are imported.
208
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
List the disk groups on each of the nodes by typing the following command on each node:
# vxdisk -o alldgs list
The output displays a list of the disk groups that are under VCS control and the disk groups that are not under VCS control. Note: The disk groups that are not locally imported are displayed in parentheses.
If any of the disk groups have not been imported on any node, import them. For disk groups in your VCS configuration, you can import them on any node. For disk groups that are not under VCS control, choose an appropriate node on which to import the disk group. Enter the following command on the appropriate node:
# vxdg -t import diskgroup
If a disk group is already imported, then recover it by typing the following command on the node on which it is imported:
# vxrecover -bs
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
209
When you upgrade Storage Foundation products with the product installer, the installer automatically upgrades the array support. If you upgrade Storage Foundation products with manual steps, you should remove any external ASLs or APMs that were installed previously on your system. The installation of the VRTSvxvm RPM exits with an error if external ASLs or APMs are detected. After you have installed Storage Foundation 5.1 SP1, Symantec provides support for new disk arrays though updates to the VRTSaslapm package. For more information about array support, see the Veritas Volume Manager Administrator's Guide.
210
Preparing to upgrade Veritas Storage Foundation Cluster File System Preparing to upgrade
Chapter
12
Ensuring that the file systems are clean Peforming the upgrade Updating the configuration and confirming startup Upgrading the remaining nodes
212
Performing a typical SFCFS upgrade using the installer Peforming a full upgrade
1 2
Log in as superuser onto any node in the cluster. Take the service group offline on each node of the cluster, which contains VxFS and CFS resources:
# hagrp -offline group -sys system01 # hagrp -offline group -sys system02 # hagrp -offline group -sys system03 # hagrp -offline group -sys system04
where group is the VCS service group that has the CVMVolDg and CFSMount resource. Repeat this step for each SFCFS service group. Note: This unmounts the CFS file systems.
The fsck command in /opt/VRTS/bin accepts either the block or character device (/dev/vx/dsk/dg/vol) or (/dev/vx/rdsk/dg/vol). The operating system version of fsck may limit the device types it accepts. For more information, see the fsck and fsck_vxfs man pages. Repeat this step for each file system.
1 2
Log in as superuser. Insert the appropriate media disc per your distribution and architecture into your systems DVD-ROM drive.
Performing a typical SFCFS upgrade using the installer Peforming a full upgrade
213
If volume management software is running on your system, the software disc automatically mounts as /mnt/cdrom. If volume management software is not available to mount the disc, you must mount it manually, enter:
# mount -o ro /dev/cdrom /mnt/cdrom
Verify there are no VxFS file systems mounted on the nodes being upgraded:
# mount -t vxfs
If any VxFS file systems are mounted, offline the group on each node of the cluster:
# hagrp -offline group -sys system01 # hagrp -offline group -sys system02 # hagrp -offline group -sys system03 # hagrp -offline group -sys system04
where group is the VCS service group that has the CVMVolDg and CFSMount resource. If VxFS are not managed by VCS then unmount them manually:
# umount mount_point
Start the upgrade from any node in the cluster. Enter the following command, and then press y to upgrade the cluster configuration.
# ./installsfcfs -upgrade
At the prompt, specify whether you accept the terms of the End User License Agreement (EULA).
Do you agree with the terms of the End User License Agreement as specified in the EULA.pdf file present on the media? [y,n,q,?] y
214
Performing a typical SFCFS upgrade using the installer Peforming a full upgrade
You are prompted to enter the system names (in the following example, "host1" and "host2") on which the software is to be upgraded. Enter the system name or names and then press Return.
Enter the system names separated by spaces on which to install SFCFS: host1 host2
During the initial system check, the installer verifies that communication between systems has been set up. If the installer hangs or asks for a login password, stop the installer and set up ssh or rsh. Then run the installer again. See About configuring secure shell or remote shell communication modes before installing products on page 407.
10 After the system checks complete, the installer displays a list of the RPMs
that will be upgraded. Press Enter to continue with the upgrade.
12 Press Return to begin removing the previous packages and installing the
new.
13 Press Return again for summary information about logs and reboots.
Do not remove the log files until the Veritas products are working properly on your system. Technical Support will need these log files for debugging purposes.
Performing a typical SFCFS upgrade using the installer Peforming a full upgrade
215
After the configuration is complete, the CVM and SFCFS groups may come up frozen. To find out the frozen CVM and SFCFS groups, enter the following command:
# /opt/VRTS/bin/hastatus -sum
If the groups are frozen, unfreeze CVM and SFCFS groups using the following commands for each group:
216
Performing a typical SFCFS upgrade using the installer Peforming a full upgrade
If VVR is configured, and the CVM and SFCFS groups are offline, bring the groups online in the following order: Bring online the CVM groups on all systems.
# /opt/VRTS/bin/hagrp -online group -sys system01 # /opt/VRTS/bin/hagrp -online group -sys system02
where group is the VCS service group that has the CVMVolDg resource. Bring online the RVGShared groups and the virtual IP on the master node using the following commands:
# hagrp -online RVGShared -sys masterhost # hares -online ip_name masterhost
where group is the VCS service group that has the CFSMount resource. If the SFCFS service groups do not come online then your file system could be dirty.
Upgrade the remaining nodes. Note: If you upgrade to SFCFS 5.1 SP1 and the file systems are dirty, you have to deport the shared disk group and import it as non-shared. After the import, run fsck. fsck should succeed. Then deport the disk group and import it back as shared.
Chapter
13
Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
This section contains procedures for the Veritas Storage Foundation Cluster File System upgrade. Note: If your system is running an older version of either Red Hat Enterprise Linux or SUSE Linux Enterprise Server, you must upgrade it before attempting to install the Veritas Storage Foundation Cluster File System software. Consult the Red Hat or SUSE documentation for more information on upgrading your system.
Moving the service groups to the second subcluster Upgrading the SFCFSHA stack on the first subcluster Preparing the second subcluster Activating the first subcluster
218
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
Upgrading the operating system on the second subcluster Upgrading the second subcluster Finishing the phased upgrade
Before you start the upgrade on the first half of the cluster, back up the VCS configuration files main.cf and types.cf which are in the directory /etc/VRTSvcs/conf/config/.
Split the cluster in half. If the cluster has an odd number of nodes, calculate (n+1)/2, and start the upgrade with the even number of nodes. Split the cluster so that your high priority service groups remain online during the upgrade of the first subcluster.
While you perform the upgrades, do not start any modules. Also, do not add or remove service groups to any of the nodes. Depending on your configuration, you may find that you cannot upgrade multiple nodes at the same time. You may only be able to upgrade one node at a time. For very large clusters, you might have to repeat these steps multiple times to upgrade your cluster. You can perform a phased upgrade when the root disk is encapsulated.
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
219
Switch failover groups from the first half of the cluster to one of the nodes in the second half of the cluster. In this procedure, galaxy is a node in the first half of the cluster and jupiter is a node in the second half of the cluster. Enter the following:
# hagrp -switch failover_group -to jupiter
2 3
On the first half of the cluster, stop all applications that are not configured under VCS. Use native application commands to stop the applications. On the first half of the cluster, unmount the VxFS or CFS file systems that are not managed by VCS.
# mount | grep vxfs
Verify that no processes use the VxFS or CFS mount point. Enter the following:
# fuser -c mount_point
Stop any processes using a VxFS or CFS mount point with the mechanism provided by the application. Unmount the VxFS or CFS file system. Enter the following:
# umount /mount_point
On the first half of the cluster, bring all the VCS service groups offline including CVM group. Enter the following:
# hagrp -offline group_name -sys galaxy
When the CVM group becomes OFFLINE, all the parallel service groups such as the CFS file system will also become OFFLINE on the first half of the cluster nodes.
Verify that the VCS service groups are offline on all the nodes in first half of the cluster. Enter the following:
# hagrp -state group_name
220
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
Freeze the nodes in the first half of the cluster. Enter the following:
# haconf -makerw # hasys -freeze -persistent galaxy # haconf -dump -makero
If IO fencing is enabled, then on each node of the first half of the cluster, change the contents of the /etc/vxfenmode file to configure I/O fencing in disabled mode. Enter the following:
# cp /etc/vxfen.d/vxfenmode_disabled /etc/vxfenmode # cat /etc/vxfenmode [root@swlx08 ~]# cat /etc/vxfenmode # # vxfen_mode determines in what mode VCS I/O Fencing should work. # # available options: # scsi3 - use scsi3 persistent reservation disks # customized - use script based customized fencing # disabled - run the driver but don't do any actual fencing # vxfen_mode=disabled
If the cluster-wide attribute UseFence is set to SCSI3, then reset the value to NONE in the /etc/VRTSvcs/conf/config/main.cf file, in first half of the cluster. Verify that only GAB ports a, b, d and h are open. Enter the following:
# gabconfig -a GAB Port Memberships ======================================================= Port a gen 6b5901 membership 01 Port b gen 6b5904 membership 01 Port d gen 6b5907 membership 01 Port h gen ada40f membership 01
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
221
10 In the first half of the cluster, stop all VxVM and CVM volumes. Enter the
following command for each disk group:
# vxvol -g diskgroup stopall
11 On first half of the cluster, upgrade the operating system on all the nodes, if
applicable. For instructions, see the upgrade paths for the operating system. See Supported Linux operating systems on page 48.
Note: This procedure is based on an "in-place" upgrade path; that is, if the operating system is upgraded, the release will be the same, but only the path level will change. If you are moving from major operating system release to another, you must uninstall the SFCFSHA stack before you upgrade the operating system. After the operating system is upgraded, you must reinstall SFCFSHA. On the first half of the cluster, upgrade SFCFSHA by using the installsfcfs script. For example use the installsfcfs script as shown below:
# ./installsfcfs galaxy
After the upgrade for first half of the cluster is complete, no GAB ports will be shown in gabconfig -a output. To upgrade your operating system, follow the normal procedures for your platform. Note: After the installation completes, you can safely ignore any instructions that the installer displays.
222
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
On the second half of the cluster, stop all applications that are not configured under VCS. Use native application commands to stop the application. [Downtime starts now.] On the second half of the cluster, unmount the VxFS and CFS file systems that are not managed by VCS. Enter the following:
# mount | grep vxfs
Verify that no processes use the VxFS and CFS mount point. Enter the following:
# fuser -c mount_point
Stop any processes using a VxFS and CFS mount point with the mechanism provided by the application. Unmount the VxFS and CFS file system. Enter the following:
# umount /mount_point
On the second half of the cluster, unfreeze all the VCS service groups on all the nodes using the following commands:
# haconf -makerw # hagrp -unfreeze group_name -persistent # haconf -dump -makero
On the second half of the cluster, bring all the VCS service groups offline, including CVM group. Enter the following:
# hagrp -offline group_name -sys jupiter
On the second half of the cluster, verify that the VCS service groups are offline. Enter the following:
# hagrp -state group_name
Stop VCS on the second half of the cluster. Enter the following:
# hastop -local
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
223
On each node of the second half of the cluster, change the contents of the /etc/vxfenmode file to configure I/O fencing in disabled mode.
# cp /etc/vxfen.d/vxfenmode_disabled /etc/vxfenmode # cat /etc/vxfenmode# # vxfen_mode determines in what mode VCS I/O Fencing should work. # # available options: # scsi3 - use scsi3 persistent reservation disks # customized - use script based customized fencing # disabled - run the driver but don't do any actual fencing # vxfen_mode=disabled
8 9
If the cluster-wide attribute UseFence is set to SCSI3, reset the value to NONE in the /etc/VRTSvcs/conf/config/main.cf file, in second half of the cluster. On the second half on cluster, stop the following SFCFSHA modules: VCS, VxFEN, ODM, GAB, and LLT. Enter the following:
# /etc/init.d/vxglm stop # /etc/init.d/vxodm stop # /etc/init.d/vxgms stop # /etc/init.d/vxfen stop # /etc/init.d/gab stop # /etc/init.d/llt stop
224
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
10 On each node in the first half of the cluster, enable fencing. Enter the
following:
# cp /etc/vxfen.d/vxfenmode_scsi3_dmp /etc/vxfenmode # cat /etc/vxfenmode # # vxfen_mode determines in what mode VCS I/O Fencing should work. # # available options: # scsi3 - use scsi3 persistent reservation disks # customized - use script based customized fencing # sybase - use scsi3 disks in kernel but coordinate membership # with Sybase ASE # disabled - run the driver but don't do any actual fencing # vxfen_mode=scsi3 # # scsi3_disk_policy determines the way in which I/O Fencing # communicates with the coordination disks. # # available options: # dmp - use dynamic multipathing # raw - connect to disks using the native interface # scsi3_disk_policy=dmp
11 If the cluster-wide attribute UseFence is set to NONE, reset the value to SCSI3
in the /etc/VRTSvcs/conf/config/main.cf file, in first half of the cluster.
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
225
When the first half of the cluster nodes come up, no GAB ports are OPEN. The following command does not show any GAB ports:
# /sbin/gabconfig -a GAB Port Memberships ===============================================================
Force gab to form a cluster after the upgraded nodes are rebooted in first half of the cluster.
# /sbin/gabconfig -xc
GAB ports a, b, d and h appear in gabconfig -a command output. Note: If port b and h are not up, you need to bring fencing and VCS manually online.
On first half of the cluster, unfreeze all the upgraded nodes. Enter the following:
# haconf -makerw # hasys -unfreeze -persistent node_name # haconf -dump -makero
On the first half of the cluster, bring the VCS service groups online. Enter the following:
# hagrp -online group_name -sys node_name
After you bring the CVM service group ONLINE, all the GAB ports v, w and f come ONLINE and all the CFS mounts service groups also come ONLINE automatically. Only failover service groups need to be brought ONLINE manually.
Manually mount the VxFS and CFS file systems that are not managed by VCS. [Downtime ends now.]
226
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
For SLES10:
# inserv -r vcs # inserv -r gab # inserv -r vxfen # inserv -r llt
On the second half of the cluster, upgrade the operating system, if applicable. For instructions, see the upgrade paths for the operating system. See Supported Linux operating systems on page 48.
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
227
Verify that the cluster UUID on the nodes in the second subcluster is the same as the cluster UUID on the nodes in the first subcluster. Run the following command to display the cluster UUID:
# /opt/VRTSvcs/bin/uuidconfig.pl [-rsh] -clus -display nodename
If the cluster UUID differs, manually copy the cluster UUID from a node in the first subcluster to the nodes in the second subcluster. For example:
# /opt/VRTSvcs/bin/uuidconfig.pl [-rsh] -clus -copy -from_sys \ node01 -to_sys node03 node04
On each node in the second half of the cluster, enable fencing. Enter the following:
# cp /etc/vxfen.d/vxfenmode_scsi3_dmp /etc/vxfenmode # cat /etc/vxfenmode # # # # # # # vxfen_mode determines in what mode VCS I/O Fencing should work. available options: scsi3 - use scsi3 persistent reservation disks customized - use script based customized fencing sybase - use scsi3 disks in kernel but coordinate membership with
# disabled - run the driver but don't do any actual fencing # vxfen_mode=scsi3 # # scsi3_disk_policy determines the way in which I/O Fencing communicates # the coordination disks. # # available options: # dmp - use dynamic multipathing # raw - connect to disks using the native interface # scsi3_disk_policy=dmp
228
Performing a phased upgrade Upgrading Storage Foundation Cluster File System and High Availability software from a release prior to 5.1 SP1
When second half of the nodes come up, all the GAB ports a, b, d, h, u, v, w and f are ONLINE. Also all the CFS mounts service groups come online automatically.
Manually mount the VxFS and CFS file systems that are not managed by VCS in the second half of the cluster.
Chapter
14
Performing a rolling upgrade using the installer Performing a rolling upgrade of SFCFS using the Web-based installer
Make sure the product that you want to upgrade supports rolling upgrades. Split your clusters into sub-clusters for the upgrade to keep the service groups available during upgrade.
230
Make sure you logged in as superuser and have the media mounted. VCS must be running before performing the rolling upgrade.
On the first sub-cluster, start the installer for the rolling upgrade with the -upgrade_kernelpkgs option.
./installer -upgrade_kernelpkgs nodeA
2 3
Note that if the boot disk is encapsulated, then you do not need to perform an unencapsulation for upgrades. The installer checks system communications, RPM versions, product versions, and completes prechecks. It then upgrades applicable product kernel RPMs.
4 5 6
The installer loads new kernel modules. The installer starts all the relevant processes and brings all the service groups online. If the boot disk is encapsulated, reboot the first sub-cluster's system. Otherwise go to 7.
Start the installer for the rolling upgrade with the -upgrade_nonkernelpkgs option. Specify all the nodes in the cluster:
./installer -upgrade_nonkernelpkgs nodeA nodeB nodeC...
2 3
The installer checks system communications, RPM versions, product versions, and completes prechecks. It verifies completion of phase 1. The installer upgrades non-kernel RPMs.
Performing a rolling upgrade Performing a rolling upgrade of SFCFS using the Web-based installer
231
The installer checks system communications, RPM versions, product versions, and completes prechecks. It verifies completion of phase 1. The installer loads the new kernel modules. It then starts all relevant processes and brings all the service groups online. Verify the cluster's status:
# hastatus -sum
If you want to upgrade VCS or SFHA 5.1 on the CP server systems to version 5.1 SP1 PR1, make sure you upgraded all application clusters to 5.1 SP1 PR1. Then, upgrade VCS or SFHA on the CP server systems. For instructions to upgrade VCS or SFHA on the CP server systems, see the VCS or SFHA installation guide.
1 2
Perform the required steps to save any data that you wish to preserve. For example, take back-ups of configuration files. Start the Web-based installer. See Starting the Veritas Web-based installer on page 69.
232
Performing a rolling upgrade Performing a rolling upgrade of SFCFS using the Web-based installer
In the Task pull-down menu, select Rolling Upgrade. In the Product pull-down menu, select the product that you want to upgrade using a rolling upgrade. Note that the Upgrade Kernel packages for Rolling Upgrade Phase-1 radio button is selected. Click the Next button to proceed.
In the Systems Names field, enter the sub-cluster's system names. Separate system names with a space. The installer validates systems and stops processes. If it throws an error, address the error and return to the installer.
5 6
The installer removes old software and upgrades the software on the systems that you selected. Review the output and click the Next button when prompted. When the upgrade completes, perform step 3 through step 6 on the second subcluster.
In the Task pull-down menu, make sure that Rolling Upgrade and the product are selected. Note that the Upgrade Non-Kernel packages for Rolling Upgrade Phase-2 radio button is selected. Click the Next button to proceed.
In the Systems Names field, enter the names of all the systems that you want to upgrade. Separate system names with a space. The installer validates systems and stops processes. If it throws an error, address the error and return to the installer.
The installer removes old software and upgrades the software on the systems that you selected. Review the output and click the Next button when prompted.
Chapter
15
234
Note: If you have a cluster setup, you must upgrade all the nodes in the cluster at the same time.
Stop replication to the Secondary host by initiating a Primary pause using the following command:
# vradmin -g diskgroup pauserep local_rvgname
2 3
Upgrade from VVR 4.1 or later to VVR 5.1 SP1 on the Secondary. Resume the replication from the Primary using the following command:
# vradmin -g diskgroup resumerep local_rvgname sec_hostname
Chapter
16
1 2 3
Back up the main.cf file before beginning the upgrade. Confirm that the storage disks are visible on all the nodes in the 5.1 SP1 SFHA cluster. Bring all the failover service groups offline, using the following command:
# hagrp -offline group_name -any
The above command brings the service group offline on the node where the service group is currently online.
236
Migrating from SFHA to SFCFS or SFCFSHA Migrating from SFHA to SFCFS or SFCFS HA 5.1 SP1
Unmount all the VxFS file systems which are not under VCS control. If the local file systems are under VCS control, then VCS unmounts the file systems when the failover service group is brought offline in step 3. On the nodes that have any mounted VxFS local file systems that are not under VCS control:
# umount -t vxfs -a
Stop all the activity on the volumes and deport the local disk groups. If the local disk groups are part of VCS failover service groups, then VCS deports the disk groups when the failover service group is brought offline in step 3.
# vxvol -g diskgroup_name stopall # vxdg deport diskgroup_name
Upgrade the existing SFHA to SFCFS or SFCFSHA 5.1 SP1: For SFCFS:
# ./installsfcfs
7 8
After installation is completed, the install script asks you to install licenses. Enter the correct license key to register the key. The installer prompts to reconfigure the VCS. Provide the same cluster name, cluster ID, and LLT link interfaces details that were used during configuration of the SFHA cluster. Find out which node is the CVM master, using the following command:
# vxdctl -c mode
10 On the CVM Master node, re-import all the required disk groups which must
be in shared mode:
# vxdg -s import diskgroup_name
11 Start all the volumes whose disk groups have been imported as shared in step
10. Use the following command:
# vxdg -g diskgroup_name startall
Migrating from SFHA to SFCFS or SFCFSHA Migrating from SFHA to SFCFS or SFCFS HA 5.1 SP1
237
12 Run the following command for each of the file systems you want to mount
as CFS:
# cfsmntadm add diskgroup_name volume_name mount_point \ all=cluster_mount_options
13 Run the following command to mount CFS file systems on all the nodes:
# cfsmount mount_point
14 Import all other local disk groups which have not been imported in shared
mode in step 10.
# vxdg import diskgroup_name
15 For any of the file systems which VCS needs to monitor through failover
service groups, create these failover service groups by adding the Mount, Diskgroup & Volume resources for VxFS file systems under VCS control.
238
Migrating from SFHA to SFCFS or SFCFSHA Migrating from SFHA to SFCFS or SFCFS HA 5.1 SP1
Section
Chapter 17. Verifying the Storage Foundation Cluster File System installation
240
Chapter
17
Verifying that the products were installed Installation log files About enabling LDAP authentication for clusters that run in secure mode Starting and stopping processes for the Veritas products Checking Veritas Volume Manager processes Verifying agent configuration for Storage Foundation Cluster File System Synchronizing time on Cluster File Systems Configuring VCS for Storage Foundation Cluster File System About the cluster UUID About the LLT and GAB configuration files Verifying the LLT, GAB, and VCS configuration files Verifying LLT, GAB, and cluster operation
242
Verifying the Storage Foundation Cluster File System installation Installation log files
The name and location of each file is displayed at the end of a product installation, and are always located in the /opt/VRTS/install/logs directory. It is recommended that you keep the files for auditing, debugging, and future use.
About enabling LDAP authentication for clusters that run in secure mode
Symantec Product Authentication Service (AT) supports LDAP (Lightweight Directory Access Protocol) user authentication through a plug-in for the authentication broker. AT supports all common LDAP distributions such as Sun Directory Server, Netscape, OpenLDAP, and Windows Active Directory. For a cluster that runs in secure mode, you must enable the LDAP authentication plug-in if the VCS users belong to an LDAP domain.
Verifying the Storage Foundation Cluster File System installation About enabling LDAP authentication for clusters that run in secure mode
243
See Enabling LDAP authentication for clusters that run in secure mode on page 244. If you have not already added VCS users during installation, you can add the users later. See the Veritas Cluster Server Administrator's Guide for instructions to add VCS users. Figure 17-1 depicts the SFCFS cluster communication with the LDAP servers when clusters run in secure mode. Figure 17-1 Client communication with LDAP servers
VCS client
1. When a user runs HA commands, AT initiates user authentication with the authentication broker.
4. AT issues the credentials to the user to proceed with the command. VCS node (authentication broker)
2. Authentication broker on VCS node performs an LDAP bind operation with the LDAP directory.
3. Upon a successful LDAP bind, AT retrieves group information from the LDAP direcory. LDAP server (such as OpenLDAP or Windows Active Directory)
See the Symantec Product Authentication Service Administrators Guide. The LDAP schema and syntax for LDAP commands (such as, ldapadd, ldapmodify, and ldapsearch) vary based on your LDAP implementation. Before adding the LDAP domain in Symantec Product Authentication Service, note the following information about your LDAP environment:
244
Verifying the Storage Foundation Cluster File System installation About enabling LDAP authentication for clusters that run in secure mode
User Group Attribute (the default is gidNumber) Group Object Class (the default is posixGroup) GroupObject Attribute (the default is cn) Group GID Attribute (the default is gidNumber) Group Membership Attribute (the default is memberUid)
URL to the LDAP Directory Distinguished name for the user container (for example, UserBaseDN=ou=people,dc=comp,dc=com) Distinguished name for the group container (for example, GroupBaseDN=ou=group,dc=comp,dc=com)
Verifying the Storage Foundation Cluster File System installation About enabling LDAP authentication for clusters that run in secure mode
245
Add the LDAP domain to the AT configuration using the vssat command. The following example adds the LDAP domain, MYENTERPRISE:
# /opt/VRTSat/bin/vssat addldapdomain \ --domainname "MYENTERPRISE.symantecdomain.com"\ --server_url "ldap://my_openldap_host.symantecexample.com"\ --user_base_dn "ou=people,dc=symantecdomain,dc=myenterprise,dc=com"\ --user_attribute "cn" --user_object_class "account"\ --user_gid_attribute "gidNumber"\ --group_base_dn "ou=group,dc=symantecdomain,dc=myenterprise,dc=com"\ --group_attribute "cn" --group_object_class "posixGroup"\ --group_gid_attribute "member"\ --admin_user "cn=manager,dc=symantecdomain,dc=myenterprise,dc=com"\ --admin_user_password "password" --auth_type "FLAT"
Verify that you can successfully authenticate an LDAP user on the SFCFS nodes. You must have a valid LDAP user ID and password to run the command. In the following example, authentication is verified for the MYENTERPRISE domain for the LDAP user, vcsadmin1.
galaxy# /opt/VRTSat/bin/vssat authenticate --domain ldap:MYENTERPRISE.symantecdomain.com --prplname vcsadmin1 --broker galaxy:2821 Enter password for vcsadmin1: ########## authenticate ------------------------------------------Authenticated User vcsadmin1 ----------------------
246
Verifying the Storage Foundation Cluster File System installation About enabling LDAP authentication for clusters that run in secure mode
If you want to enable group-level authentication, you must run the following command:
# hauser -addpriv \ ldap_group@ldap_domain AdministratorGroup
VCS_DOMAIN=myenterprise.symantecdomain.com VCS_DOMAINTYPE=ldap
For example, for the Bourne Shell (sh or ksh), run the following commands:
# export VCS_DOMAIN=myenterprise.symantecdomain.com # export VCS_DOMAINTYPE=ldap
Verifying the Storage Foundation Cluster File System installation About enabling LDAP authentication for clusters that run in secure mode
247
Similarly, you can use the same LDAP user credentials to log on to the SFCFS node using the VCS Cluster Manager (Java Console).
To enable LDAP authentication on other nodes in the cluster, perform the procedure on each of the nodes in the cluster.
248
Verifying the Storage Foundation Cluster File System installation About enabling LDAP authentication for clusters that run in secure mode
To enable Windows Active Directory authentication for clusters that run in secure mode
Run the LDAP configuration tool atldapconf using the -d option. The -d option discovers and retrieves an LDAP properties file which is a prioritized attribute list.
# /opt/VRTSat/bin/atldapconf -d\ -s domain_controller_name_or_ipaddress\ -u domain_user -g domain_group
For example:
# /opt/VRTSat/bin/atldapconf -d -s 192.168.20.32 \ -u Administrator -g "Domain Admins" Search User provided is invalid or Authentication is required to proceed further. Please provide authentication information for LDAP server. Username/Common Name: symantecdomain\administrator Password: Attribute file created.
Run the LDAP configuration tool atldapconf using the -c option. The -c option creates a CLI file to add the LDAP domain.
# /opt/VRTSat/bin/atldapconf -c -d windows_domain_name
For example:
# /opt/VRTSat/bin/atldapconf -c -d symantecdomain.com Attribute list file not provided, using default AttributeList.txt. CLI file name not provided, using default CLI.txt. CLI for addldapdomain generated.
Run the LDAP configuration tool atldapconf using the -x option. The -x option reads the CLI file and executes the commands to add a domain to the AT.
# /opt/VRTSat/bin/atldapconf -x
Verifying the Storage Foundation Cluster File System installation About enabling LDAP authentication for clusters that run in secure mode
249
List the LDAP domains to verify that the Windows Active Directory server integration is complete.
# /opt/VRTSat/bin/vssat listldapdomains Domain Name : Server URL : SSL Enabled : User Base DN : User Object Class : User Attribute : User GID Attribute : Group Base DN : Group Object Class : Group Attribute : Group GID Attribute : Auth Type : Admin User : Admin User Password : Search Scope : symantecdomain.com ldap://192.168.20.32:389 No CN=people,DC=symantecdomain,DC=com account cn gidNumber CN=group,DC=symantecdomain,DC=com group cn cn FLAT
SUB
VCS_DOMAIN=symantecdomain.com VCS_DOMAINTYPE=ldap
For example, for the Bourne Shell (sh or ksh), run the following commands:
# export VCS_DOMAIN=symantecdomain.com # export VCS_DOMAINTYPE=ldap
250
Verifying the Storage Foundation Cluster File System installation Starting and stopping processes for the Veritas products
Similarly, you can use the same LDAP user credentials to log on to the SFCFS node using the VCS Cluster Manager (Java Console).
To enable LDAP authentication on other nodes in the cluster, perform the procedure on each of the nodes in the cluster.
Use the -stop option to stop the product installation script. For example, to stop the product's processes, enter the following command:
# ./installer -stop
Use the -start option to start the product installation script. For example, to start the product's processes, enter the following command:
# ./installer -start
Verifying the Storage Foundation Cluster File System installation Verifying agent configuration for Storage Foundation Cluster File System
251
Entries for the vxiod, vxconfigd, vxnotify, vxesd, vxrelocd, vxcached and vxconfigbackupd processes should appear in the output from this command. If you disable hot-relocation, the vxrelocd and vxnotify processes are not displayed.
Enter the cluster status command from any node in the cluster:
# cfscluster status
Output resembles:
Node : system01 Cluster Manager : running CVM state : running No mount point registered with cluster configuration Node : system02 Cluster Manager : running CVM state : running No mount point registered with cluster configuration
252
Verifying the Storage Foundation Cluster File System installation Configuring VCS for Storage Foundation Cluster File System
The main.cf file defines the entire cluster. The types.cf file defines the resource types.
By default, both files reside in the directory /etc/VRTSvcs/conf/config. Additional files similar to types.cf may be present if agents have been added, such as OracleTypes.cf. In a VCS cluster, the first system to be brought online reads the configuration file and creates an internal (in-memory) representation of the configuration. Systems brought online after the first system derive their information from systems running in the cluster. You must stop the cluster while you are modifying the files from the command line. Changes made by editing the configuration files take effect when the cluster is restarted. The node on which the changes were made should be the first node to be brought back online.
main.cf file
The VCS configuration file main.cf is created during the installation procedure. After installation, the main.cf file contains the base definitions of the cluster and its nodes. Additionally, the file types.cf listed in the include statement defines the bundled agents for VCS resources. See the Veritas Cluster Server User's Guide. A typical VCS configuration file for SFCFS file resembles:
include include include include include include include "types.cf" "CFSTypes.cf" "CVMTypes.cf" "OracleASMTypes.cf" "Db2udbTypes.cf" "OracleTypes.cf" "SybaseTypes.cf"
Verifying the Storage Foundation Cluster File System installation Configuring VCS for Storage Foundation Cluster File System
253
system thor150 ( ) system thor151 ( ) group cvm ( SystemList = { thor150 = 0, thor151 = 1 } AutoFailOver = 0 Parallel = 1 AutoStartList = { thor150, thor151 } ) CFSfsckd vxfsckd ( ) CVMCluster cvm_clus ( CVMClustName = sfcfs_1 CVMNodeId = { thor150 = 0, thor151 = 1 } CVMTransport = gab CVMTimeout = 200 ) CVMVxconfigd cvm_vxconfigd ( Critical = 0 CVMVxconfigdArgs = { syslog } ) cvm_clus requires cvm_vxconfigd vxfsckd requires cvm_clus // resource dependency tree // // group cvm // { // CVMCluster cvm_clus // { // CVMVxconfigd cvm_vxconfigd // } // }
254
Verifying the Storage Foundation Cluster File System installation About the cluster UUID
These resources were configured according to information you provided during the installation procedure. A resource dependency was also created.
On one node in the cluster, perform the following command to populate the cluster UUID on each node in the cluster.
# /opt/VRTSvcs/bin/uuidconfig.pl -clus -configure nodeA nodeB ... nodeN
Where nodeA, nodeB, through nodeN are the names of the cluster nodes.
Verifying the Storage Foundation Cluster File System installation About the LLT and GAB configuration files
255
Description
This file stores the start and stop environment variables for LLT: LLT_STARTDefines the startup behavior for the LLT module after a system reboot. Valid values include: 1Indicates that LLT is enabled to start up. 0Indicates that LLT is disabled to start up. LLT_STOPDefines the shutdown behavior for the LLT module during a system shutdown. Valid values include: 1Indicates that LLT is enabled to shut down. 0Indicates that LLT is disabled to shut down.
The installer sets the value of these variables to 1 at the end of Storage Foundation Cluster File System configuration. /etc/llthosts The file llthosts is a database that contains one entry per system. This file links the LLT system ID (in the first column) with the LLT host name. This file must be identical on each node in the cluster. A mismatch of the contents of the file can cause indeterminate behavior in the cluster. For example, the file /etc/llthosts contains the entries that resemble: 0 1 galaxy nebula
256
Verifying the Storage Foundation Cluster File System installation About the LLT and GAB configuration files
Description
The file llttab contains the information that is derived during installation and used by the utility lltconfig(1M). After installation, this file lists the LLT network links that correspond to the specific system. set-node galaxy set-cluster 2 link eth1 eth1 - ether - link eth2 eth2 - ether - For example, the file /etc/llttab contains the entries that resemble: set-node galaxy set-cluster 2 link eth1 eth-00:04:23:AC:12:C4 - ether - link eth2 eth-00:04:23:AC:12:C5 - ether - If you use aggregated interfaces, then the file contains the aggregated interface name instead of the eth-MAC_address. The first line identifies the system. The second line identifies the cluster (that is, the cluster ID you entered during installation). The next two lines begin with the link command. These lines identify the two network cards that the LLT protocol uses. If you configured a low priority link under LLT, the file also includes a "link-lowpri" line. Refer to the llttab(4) manual page for details about how the LLT configuration may be modified. The manual page describes the ordering of the directives in the llttab file.
Table 17-2 lists the GAB configuration files and the information that these files contain.
Verifying the Storage Foundation Cluster File System installation Verifying the LLT, GAB, and VCS configuration files
257
/etc/sysconfig/gab This file stores the start and stop environment variables for GAB: GAB_STARTDefines the startup behavior for the GAB module after a system reboot. Valid values include: 1Indicates that GAB is enabled to start up. 0Indicates that GAB is disabled to start up. GAB_STOPDefines the shutdown behavior for the GAB module during a system shutdown. Valid values include: 1Indicates that GAB is enabled to shut down. 0Indicates that GAB is disabled to shut down.
The installer sets the value of these variables to 1 at the end of Storage Foundation Cluster File System configuration. /etc/gabtab After you install SFCFS, the file /etc/gabtab contains a gabconfig(1) command that configures the GAB driver for use. The file /etc/gabtab contains a line that resembles: /sbin/gabconfig -c -nN The -c option configures the driver for use. The -nN specifies that the cluster is not formed until at least N nodes are ready to form the cluster. Symantec recommends that you set N to be the total number of nodes in the cluster.
Note: Symantec does not recommend the use of the -c -x option for
/sbin/gabconfig. Using -c -x can lead to a split-brain condition.
LLT
/etc/llthosts /etc/llttab
GAB
/etc/gabtab
258
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
VCS
/etc/VRTSvcs/conf/config/main.cf
Verify the content of the configuration files. See About the LLT and GAB configuration files on page 254.
1 2
Log in to any node in the cluster as superuser. Make sure that the PATH environment variable is set to run the VCS commands. Verify LLT operation. See Verifying LLT on page 258.
Verify the cluster operation. See Verifying the cluster on page 262.
Verifying LLT
Use the lltstat command to verify that links are active for LLT. If LLT is configured correctly, this command shows all the nodes in the cluster. The command also returns information about the links for LLT for the node on which you typed the command. Refer to the lltstat(1M) manual page for more information. To verify LLT
1 2
Log in as superuser on the node galaxy. Run the lltstat command on the node galaxy to view the status of LLT.
lltstat -n
Links
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
259
*0 galaxy 1 nebula
OPEN OPEN
2 2
Each node has two links and each node is in the OPEN state. The asterisk (*) denotes the node on which you typed the command. If LLT does not operate, the command does not return any LLT links information: If only one network is connected, the command returns the following LLT statistics information:
LLT node information: Node * 0 galaxy 1 nebula 2 saturn
Links 2 2 1
3 4
Log in as superuser on the node nebula. Run the lltstat command on the node nebula to view the status of LLT.
lltstat -n
Links 2 2
To view additional information about LLT, run the lltstat -nvv command on each node. For example, run the following command on the node galaxy in a two-node cluster:
lltstat -nvv active
08:00:20:93:0E:34 08:00:20:93:0E:38
260
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
The command reports the status on the two active nodes in the cluster, galaxy and nebula. For each correctly configured node, the information must show the following:
A state of OPEN A status for each link of UP A MAC address for each link
However, the output in the example shows different details for the node nebula. The private network connection is possibly broken or the information in the /etc/llttab file may be incorrect.
To obtain information about the ports open for LLT, type lltstat -p on any node. For example, type lltstat -p on the node galaxy in a two-node cluster:
lltstat -p
Verifying GAB
Verify the GAB operation using the gabconfig -a command. This command returns the GAB port membership information. The ports indicate the following:
a b d GAB I/O fencing Oracle Disk Manager (ODM)
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
261
f h u
Cluster File System (CFS) Veritas Cluster Server (VCS: High Availability Daemon) Cluster Volume Manager (CVM) (to ship commands from slave node to master node) Port u in the gabconfig output is visible with CVM protocol version >= 100.
v w
For more information on GAB, refer to the Veritas Cluster Server Administrator's Guide. To verify GAB
To verify that GAB operates, type the following command on each node:
/sbin/gabconfig -a
Note that port b in the gabconfig command output may not indicate that I/O fencing feature is configured. After you configure Storage Foundation Cluster File System using the installer, the installer starts I/O fencing in disabled mode. You can use the vxfenadm -d command to verify the I/O fencing configuration.
262
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
If GAB does not operate, the command does not return any GAB port membership information:
GAB Port Memberships ===================================
Frozen 0 0
Probed Y Y Y Y
AutoDisabled N N N N
Note that the VxSS service group is displayed only if you have configured the cluster in secure mode.
The system state If the value of the system state is RUNNING, the cluster is successfully started.
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
263
The example shows the output when the command is run on the node galaxy. The list continues with similar information for nebula (not shown) and any other nodes in the cluster.
#System galaxy galaxy galaxy galaxy Attribute AgentsStopped AvailableCapacity CPUUsage CPUUsageMonitoring Value 0 100 0 Enabled 0 ActionThreshold 0 ActionTimeLimit 0 Action NONE NotifyThreshold 0 NotifyTimeLimit 0
galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy
Capacity ConfigBlockCount ConfigCheckSum ConfigDiskState ConfigFile ConfigInfoCnt ConfigModDate ConnectorState CurrentLimits DiskHbStatus
100
264
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
#System galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy galaxy
Attribute DynamicLoad EngineRestarted EngineVersion Frozen GUIIPAddr HostUtilization LLTNodeId LicenseType Limits LinkHbStatus LoadTimeCounter LoadTimeThreshold LoadWarningLevel NoAutoDisable NodeId OnGrpCnt ShutdownTimeout SourceFile SysInfo SysName SysState SystemLocation SystemOwner TFrozen TRSE
Value 0 0 5.1.00.0 0
0 600 80 0 0 1
./main.cf
galaxy RUNNING
0 0
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
265
Value Up 0
DR VCS_CFS_VRTS
266
Verifying the Storage Foundation Cluster File System installation Verifying LLT, GAB, and cluster operation
Section
Chapter 18. Adding a node to a cluster Chapter 19. Removing a node from Storage Foundation Cluster File System clusters
268
Chapter
18
About adding a node to a cluster Before adding a node to a cluster Preparing to add a node to a cluster Adding a node to a cluster Configuring server-based fencing on the new node Updating the Storage Foundation for Databases (SFDB) repository after adding a node Sample configuration file for adding a node to the cluster
The example procedures describe how to add a node to an existing cluster with two nodes.
270
Hardware and software requirements are met. See Meeting hardware and software requirements on page 270. Hardware is set up for the new node. See Setting up the hardware on page 270. The existing cluster is an SFCFS cluster and that SFCFS is running on the cluster. The new system has the same identical operating system versions and patch levels as that of the existing cluster.
271
Figure 18-1
Public network
Private network
Connect the SFCFS private Ethernet controllers. Perform the following tasks as necessary:
When you add nodes to a cluster, use independent switches or hubs for the private network connections. You can only use crossover cables for a cluster, so you might have to swap out the cable for a switch or hub. If you already use independent hubs, connect the two Ethernet controllers on the new node to the independent hubs.
Figure 18-1 illustrates a new node being added to an existing two-node cluster using two independent hubs.
The node must be connected to the same shared storage devices as the existing nodes. The node must have private network connections to two independent switches for the cluster. For more information, see the Veritas Cluster Server Installation Guide.
272
The network interface names used for the private interconnects on the new node must be the same as that of the existing nodes in the cluster.
Install SFCFS on the new system. Note: Use the -install option to install SFCFS. Do not configure SFCFS after the installation.
Would you like to configure SFCFS on saturn [y, n, q] (n)
You can configure the new node later using the configuration from the existing cluster nodes. See About installation and configuration methods on page 28.
Note: Before you add the node, make sure that SFCFS is not configured on the node.
273
Verifies that the node and the existing cluster meet communication requirements. Verifies the products and packages installed on the new node. Discovers the network interfaces on the new node and checks the interface settings. Creates the following files on the new node:
/etc/llttab /etc/VRTSvcs/conf/sysname
Updates the following configuration files and copies them on the new node:
/etc/llthosts /etc/gabtab /etc/VRTSvcs/conf/config/main.cf
Copies the following files from the existing cluster to the new node:
/etc/vxfenmode /etc/vxfendg /etc/vx/.uuids/clusuuid /etc/sysconfig/llt /etc/sysconfig/gab /etc/sysconfig/vxfen
Configures security on the new node if the existing cluster is a secure cluster. Warning: If the root broker system has failed, then you must recover or reconfigure the root broker system before you add a new node to the cluster.
Configures disk-based or server-based fencing depending on the fencing mode in use on the existing cluster. Adds the new node to the CVM, ClusterService, and VxSS service groups in the VCS configuration. Note: For other service groups configured under VCS, update the configuration for the new node manually.
274
Starts SFCFS processes and configures CVM and CFS on the new node.
At the end of the process, the new node joins the SFCFS cluster. Note: If you have configured server-based fencing on the existing cluster, make sure that the CP server does not contain entries for the new node. If the CP server already contains entries for the new node, remove these entries before adding the node to the cluster, otherwise the process may fail with an error. To add the node to an existing cluster using the installer
1 2
Log in as the root user on one of the nodes of the existing cluster. Run the SFCFS installer with the -addnode option.
# cd /opt/VRTS/install # ./installsfcfs -addnode
The installer displays the copyright message and the location where it stores the temporary installation logs.
Enter the name of a node in the existing SFCFS cluster. The installer uses the node information to identify the existing cluster.
Enter a node name in the SFCFS cluster to which you want to add a node: galaxy
4 5
Review and confirm the cluster information. Enter the name of the systems that you want to add as new nodes to the cluster.
Enter the system names separated by spaces to add to the cluster: saturn
The installer checks the installed products and packages on the nodes and discovers the network interfaces.
275
Enter the name of the network interface that you want to configure as the first private heartbeat link. Note: The network interface names used for the private interconnects on the new node must be the same as that of the existing nodes in the cluster. The LLT configuration for the new node must be the same as that of the existing cluster.
Enter the NIC for the first private heartbeat link on saturn: [b,q,?] eth1
Enter y to configure a second private heartbeat link. Note: At least two private heartbeat links must be configured for high availability of the cluster.
Would you like to configure a second private heartbeat link? [y,n,q,b,?] (y)
Enter the name of the network interface that you want to configure as the second private heartbeat link.
Enter the NIC for the second private heartbeat link on saturn: [b,q,?] eth2
Depending on the number of LLT links configured in the existing cluster, configure additional private heartbeat links for the new node. The installer verifies the network interface settings and displays the information.
10 Review and confirm the information. 11 If you have configured SMTP, SNMP, or the global cluster option in the
existing cluster, you are prompted for the NIC information for the new node.
Enter the NIC for VCS to use on saturn: eth3
12 The installer prompts you with an option to mount the shared volumes on
the new node. Select y to mount them. When completed, the installer confirms the volumes are mounted and indicates the location of the log file with details of the actions performed.
276
Enter the host name of the authentication broker used for any one of the CP servers.
Enter hostname of the Authentication Broker being used for any one of the CP Server(s): [b] mycps1.symantecexample.com
Enter the port number where the authentication broker for the CP server listens to establish trust with the new node:
Enter the port where the Authentication Broker mycps1.symantecexample.com for the CP Server(s) is listening for establishing trust: [b] (2821)
The installer then starts all the required Veritas processes and joins the new node to cluster. Note: Do not quit the installer if you want to perform the Oracle pre-installation tasks using the SFCFS installer.
277
From the Task pull-down menu, select Add a Cluster node. From the product pull-down menu, select the product. Click the Next button.
In the System Names field enter a name of a node in the cluster where you plan to add the node. The installer program checks inter-system communications and compatibility. If the node fails any of the checks, review the error and fix the issue. If prompted, review the cluster's name, ID, and its systems. Click the Yes button to proceed.
In the System Names field, enter the names of the systems that you want to add to the cluster as nodes. Separate system names with spaces. Click the Validate button to check if the system can work in the cluster. The installer program checks inter-system communications and compatibility. If the system fails any of the checks, review the error and fix the issue. Click the Next button. If prompted, click the Yes button to add the system and to proceed.
4 5
From the heartbeat NIC pull-down menus, select the heartbeat NICs for the cluster. Click the Next button. Once the addition is complete, review the log files. Optionally send installation information to Symantec. Click the Finish button to complete the node's addition to the cluster.
Start the Volume Manager. See Starting Volume Manager on the new node on page 278.
Configure LLT and GAB. See Configuring LLT and GAB on the new node on page 278.
If the existing cluster is a secure cluster, set up the new node to run in secure mode. See Setting up the node to run in secure mode on page 280.
278
If the existing cluster is configured to use server-based I/O fencing, configure server-based I/O fencing on the new node. See Starting fencing on the new node on page 283.
Start VCS. See To start VCS on the new node on page 284.
Configure CVM and CFS. See Configuring CVM and CFS on the new node on page 284.
If the ClusterService group is configured on the existing cluster, add the node to the group. See Configuring the ClusterService group for the new node on page 286.
To start Veritas Volume Manager on the new node, use the vxinstall utility:
# vxinstall
Enter n when prompted to set up a system wide disk group for the system. The installation completes.
Verify that the daemons are up and running. Enter the command:
# vxdisk list
Make sure the output displays the shared disks without errors.
279
For Red Hat Linux, modify the file /etc/sysctl.conf on the new system to set the shared memory and other parameter required by your application; refer to the your application documentation for details. The value of the shared memory parameter is put to effect when the system restarts. Do not apply for SUSE Linux.
Edit the /etc/llthosts file on the existing nodes. Using vi or another text editor, add the line for the new node to the file. The file resembles:
0 galaxy 1 nebula 2 saturn
Copy the /etc/llthosts file from one of the existing systems over to the new system. The /etc/llthosts file must be identical on all nodes in the cluster. Create an /etc/llttab file on the new system. For example:
set-node saturn set-cluster 101 link eth1 eth-[MACID for eth1] - ether - link eth2 eth-[MACID for eth2] - ether - -
Except for the first line that refers to the node, the file resembles the /etc/llttab files on the existing nodes. The second line, the cluster ID, must be the same as in the existing nodes.
Use vi or another text editor to create the file /etc/gabtab on the new node. This file must contain a line that resembles the following example:
/sbin/gabconfig -c -nN
Where N represents the number of systems in the cluster. For a three-system cluster, N would equal 3.
Edit the /etc/gabtab file on each of the existing systems, changing the content to match the file on the new system.
280
Use vi or another text editor to create the file /etc/VRTSvcs/conf/sysname on the new node. This file must contain the name of the new node added to the cluster. For example:
saturn
Create the Unique Universal Identifier file /etc/vx/.uuids/clusuuid on the new node:
# uuidconfig.pl -rsh -clus -copy \ -from_sys galaxy -to_sys saturn
Start the LLT, GAB, and ODM drivers on the new node:
# /etc/init.d/llt start # /etc/init.d/gab start # /etc/init.d/odm restart
10 On the new node, verify that the GAB port memberships are a and d:
# gabconfig -a GAB Port Memberships =============================================================== Port a gen df204 membership 012 Port d gen df207 membership 012
281
The command examples definitions (continued) Fully-qualified host name Function (FQHN)
RB1.brokers.example.com The root broker for the cluster Another root broker, not the cluster's RB
RB2
RB2.brokers.example.com
If node saturn is configured as an authentication broker (AB) belonging to a root broker, perform the following steps. Else, proceed to configuring the authentication broker on node saturn. Find out the root broker to which the node saturn belongs using the following command.
# vssregctl -l -q -b \ "Security\Authentication\Authentication Broker" \ -k "BrokerName"
If the node saturn already belongs to root broker RB1, it is configured as part of the cluster. Proceed to setting up VCS related security configuration. If the node saturn belongs to a different root broker (for example RB2), perform the following steps to remove the security credentials from node saturn.
Kill /opt/VRTSat/bin/vxatd process. Remove the credential that RB2 has given to AB on node saturn.
# vssat deletecred --domain type:domainname \ --prplname prplname
For example:
# vssat deletecred --domain vx:[email protected] \ --prplname saturn.nodes.example.com
282
Create a principal for node saturn on root broker RB1. Execute the following command on root broker RB1.
# vssat addprpl --pdrtype root --domain domainname \ --prplname prplname --password password \ --prpltype service
For example:
# vssat addprpl --pdrtype root \ --domain [email protected] \ --prplname saturn.nodes.example.com \ --password flurbdicate --prpltype service
2 3 4
Ensure that there is no clock skew between the times on node saturn and RB1. Copy the /opt/VRTSat/bin/root_hash file from RB1 to node saturn. Configure AB on node saturn to talk to RB1.
# vxatd -o -a -n prplname -p password -x vx -y domainname -q \ rootbroker -z 2821 -h roothash_file_path
For example:
# vxatd -o -a -n saturn.nodes.example.com -p flurbdicate \ -x vx -y [email protected] -q RB1 \ -z 2821 -h roothash_file_path
1 2
283
On one of the nodes in the existing cluster, set the cluster configuration to read-write mode:
# haconf -makerw
Save the configuration by running the following command from any node in the cluster:
# haconf -dump -makero
284
If you are using disk-based fencing on at least one node, copy the following files from one of the nodes in the existing cluster to the new node:
/etc/sysconfig/vxfen /etc/vxfendg /etc/vxfenmode
If you are using pure CP server-based fencing on the existing cluster, then only the /etc/vxfenmode file needs to be copied on the new node.
On the new node, verify that the GAB port memberships are a, b, and d:
# gabconfig -a GAB Port Memberships =============================================================== Port a gen df204 membership 012 Port b gen df20d membership 012 Port d gen df20a membership 012
285
Make a backup copy of the main.cf file on the existing node, if not backed up in previous procedures. For example:
# cd /etc/VRTSvcs/conf/config # cp main.cf main.cf.2node
On one of the nodes in the existing cluster, set the cluster configuration to read-write mode:
# haconf -makerw
Add the new node to the VCS configuration, if not already added:
# hasys -add saturn
To enable the existing cluster to recognize the new node, run the following commands on one of the existing nodes:
# hagrp -modify cvm SystemList -add saturn 2 # hagrp -modify cvm AutoStartList -add saturn # hares -modify cvm_clus CVMNodeId -add saturn 2 # haconf -dump -makero # /etc/vx/bin/vxclustadm -m vcs reinit # /etc/vx/bin/vxclustadm nidmap
On the remaining nodes of the existing cluster, run the following commands:
# /etc/vx/bin/vxclustadm -m vcs reinit # /etc/vx/bin/vxclustadm nidmap
Copy the configuration files from one of the nodes in the existing cluster to the new node:
# rcp /etc/VRTSvcs/conf/config/main.cf \ saturn:/etc/VRTSvcs/conf/config/main.cf # rcp /etc/VRTSvcs/conf/config/CFSTypes.cf \ saturn:/etc/VRTSvcs/conf/config/CFSTypes.cf # rcp /etc/VRTSvcs/conf/config/CVMTypes.cf \ saturn:/etc/VRTSvcs/conf/config/CVMTypes.cf
286
Modify the IP address and NIC resource in the existing group for the new node.
# hares -modify gcoip Device eth0 -sys saturn # hares -modify gconic Device eth0 -sys saturn
Save the configuration by running the following command from any node.
# haconf -dump -makero
1 2
Log in to each CP server as the root user. Update each CP server configuration with the new node information:
# /opt/VRTScps/bin/cpsadm -s thunderbolt \ -a add_node -c clus1 -u {f0735332-1dd1-11b2} -h saturn -n2 Node 2 (saturn) successfully added
287
As the root user, create the VCS user and the domain on the new node:
Create a dummy configuration file /etc/VRTSvcs/conf/config/main.cf that resembles the following example:
# cat main.cf include "types.cf" cluster clus1 { SecureClus = 1 } system saturn { }
Verify that the VCS user and the domain are created on the new node:
# /opt/VRTScps/bin/cpsat showcred | grep _HA_VCS_ # /opt/VRTScps/bin/cpsat listpd -t local | grep HA_SERVICES
Stop VCS if the VCS user and domain are created successfully on the new node:
# /opt/VRTSvcs/bin/hastop
288
Adding a node to a cluster Updating the Storage Foundation for Databases (SFDB) repository after adding a node
If the root broker for the CP server and the new node are different, run the following command to establish trust between the authentication broker of the CP Server and the new node:
# /usr/bin/echo y | /opt/VRTScps/bin/cpsat setuptrust \ -b thunderbolt -s high
5 6
Log in to each CP server as the root user. Update each CP server configuration with the new node information:
# /opt/VRTScps/bin/cpsadm -s thunderbolt \ -a add_node -c clus1 -u {f0735332-1dd1-11b2} -h saturn -n2 Node 2 (saturn) successfully added
Updating the Storage Foundation for Databases (SFDB) repository after adding a node
If you are using Database Checkpoints, Database Flashsnap, or Adding a Node in your configuration, update the SFDB repository to enable access for the new node after it is added to the cluster.
Adding a node to a cluster Sample configuration file for adding a node to the cluster
289
Run the following to change permission, owner, group of various SFDB directories on the newly added node:
# sfua_db_config
Run the dbed_update command on any one node in the cluster. For example:
$ dbed_update -S $ORACLE_SID -H $ORACLE_HOME -G $ORACLE_SERVICE_GROUP
This completes the addition of the node to the SFDB repository. For information on using SFDB tools features: See the Storage Foundation guide:Storage Foundation: Storage and Availability Management for Oracle Databases.
The existing cluster rac_cluster101 comprises two nodes galaxy and nebula and hosts a single database. The Oracle database is stored on CFS. The database is managed by the VCS agent for Oracle. The agent starts, stops, and monitors the database. Only one private IP address is configured for Oracle Clusterware. The private IP address is managed by the PrivNIC agent for high availability. The Oracle Cluster Registry (OCR) and voting disk are stored on CFS.
The following sample configuration file shows the changes (in bold) effected in the configuration after adding a node "saturn" to the cluster.
290
Adding a node to a cluster Sample configuration file for adding a node to the cluster
Note: In the following group oradb1_grp, the saturn node has been added.
group oradb1_grp ( SystemList = { galaxy = 0, nebula = 1, saturn = 2 } AutoFailOver = 0 Parallel = 1 AutoStartList = { galaxy, nebula, saturn } )
Note: In the following Oracle resource, the saturn node information has been added.
Oracle ora1 ( Critical = 0 Sid @galaxy = vrts1 Sid @nebula = vrts2 Sid @saturn = vrts3 Owner = oracle Home = "/app/oracle/orahome" StartUpOpt = "SRVCTLSTART" ShutDownOpt = "SRVCTLSTOP" ) CFSMount oradata_mnt ( Critical = 0
Adding a node to a cluster Sample configuration file for adding a node to the cluster
291
MountPoint = "/oradata" BlockDevice = "/dev/vx/dsk/oradatadg/oradatavol" ) CVMVolDg oradata_voldg ( Critical = 0 CVMDiskGroup = oradatadg CVMVolume = { oradatavol } CVMActivation = sw ) requires group cvm online local firm ora1 requires oradata_mnt oradata_mnt requires oradata_voldg
Note: In the following CVM and CVMCluster resources, the saturn node information has been added.
group cvm ( SystemList = { galaxy = 0, nebula = 1, saturn =2} AutoFailOver = 0 Parallel = 1 AutoStartList = { galaxy, nebula, saturn } ) Application cssd ( Critical = 0 StartProgram = "/opt/VRTSvcs/rac/bin/cssd-online" StopProgram = "/opt/VRTSvcs/rac/bin/cssd-offline" CleanProgram = "/opt/VRTSvcs/rac/bin/cssd-clean" MonitorProgram = "/opt/VRTSvcs/rac/bin/cssd-monitor" OnlineRetryLimit = 20 ) CFSMount ocrvote_mnt ( Critical = 0 MountPoint = "/ocrvote" BlockDevice = "/dev/vx/dsk/ocrvotedg/ocrvotevol" MountOpt= "mincache=direct" )
292
Adding a node to a cluster Sample configuration file for adding a node to the cluster
CFSfsckd vxfsckd ( )
CVMCluster cvm_clus ( CVMClustName = rac_cluster101 CVMNodeId = { galaxy = 0, nebula = 1, saturn =2 } CVMTransport = gab CVMTimeout = 200 )
Note: In the following PrivNIC resource, the saturn node information has been added.
PrivNIC ora_priv ( Critical = 0 Device@galaxy = { eth1 = 0, eth2 = 1} Device@nebula = { eth1 = 0, eth2 = 1} Device@saturn = { eth1 = 0, eth2 = 1} Address@galaxy = "192.168.12.1" Address@nebula = "192.168.12.2" Address@saturn = "192.168.12.5" NetMask = "255.255.255.0" )
Adding a node to a cluster Sample configuration file for adding a node to the cluster
293
ocrvote_mnt requires ocrvote_voldg ocrvote_mnt requires vxfsckd ocrvote_voldg requires cvm_clus vxfsckd requires cvm_clus cvm_clus requires cvm_vxconfigd
294
Adding a node to a cluster Sample configuration file for adding a node to the cluster
Chapter
19
About removing a node from a cluster Removing a node from a cluster Modifying the VCS configuration files on existing nodes Removing the node configuration from the CP server Removing security credentials from the leaving node Updating the Storage Foundation for Databases (SFDB) repository after removing a node Sample configuration file for removing a node from the cluster
Stopping applications that use File System or Cluster File System mount points not configured under VCS. Stopping VCS on the node to be removed.
296
Removing a node from Storage Foundation Cluster File System clusters Removing a node from a cluster
Unmounting the File System and Cluster File System file systems not configured under VCS. Uninstalling SFCFS from the node. Modifying the VCS configuration files on the existing nodes. Removing the node configuration from the CP server if it is configured. Removing the security credentials from the node if it is part of a secure cluster. Updating the SFDB repository if you use SFDB tools.
The Veritas product installer does not support removing a node. You must remove a node manually. The example procedures describe how to remove a node from a cluster with three nodes.
Take your application service groups offline (if under VCS control) on the node you want to remove.
# hagrp -offline app_group -sys saturn
2 3
Stop the applications that use VxFS/CFS mount points and are not configured under VCS. Use native application commands to stop the applications. Stop VCS on the node:
# hastop -local
Unmount the VxFS/CFS file systems that are not configured under VCS.
# umount mount_point
Removing a node from Storage Foundation Cluster File System clusters Modifying the VCS configuration files on existing nodes
297
The installer stops all SFCFS processes and uninstalls the SFCFS packages.
Modify the VCS configuration files on the existing nodes to remove references to the deleted node. See Modifying the VCS configuration files on existing nodes on page 297.
Editing the /etc/llthosts file Editing the /etc/gabtab file Modifying the VCS configuration to remove the node
For an example main.cf: See Sample configuration file for removing a node from the cluster on page 301.
Change to:
1 galaxy 2 nebula
298
Removing a node from Storage Foundation Cluster File System clusters Modifying the VCS configuration files on existing nodes
where N is the number of remaining nodes in the cluster. For example, with two nodes remaining, the file resembles:
/sbin/gabconfig -c -n2
Edit the /etc/VRTSvcs/conf/config/main.cf file This method requires application down time. Use the command line interface This method allows the applications to remain online on all remaining nodes.
The following procedure uses the command line interface and modifies the sample VCS configuration to remove references to the deleted node. Run the steps in the procedure from one of the existing nodes in the cluster. The procedure allows you to change the VCS configuration while applications remain online on the remaining nodes. To modify the VCS configuration using the CLI
Remove the node from the AutoStartList attribute of the service group by specifying the remaining nodes in the desired order:
# hagrp -modify cvm AutoStartList galaxy nebula
Removing a node from Storage Foundation Cluster File System clusters Removing the node configuration from the CP server
299
Remove the node from the SystemList attribute of the service group:
# hagrp -modify cvm SystemList -delete saturn
Remove the node from the CVMNodeId attribute of the service group:
# hares -modify cvm_clus CVMNodeId -delete saturn
If you have the other service groups (such as the database service group or the ClusterService group) that have the removed node in their configuration, perform step 4 and step 5 for each of them. Remove the deleted node from the NodeList attribute of all CFS mount resources:
# hares -modify CFSMount NodeList -delete saturn
Remove the deleted node from the system list of any other service groups that exist on the cluster. For example, to delete the node saturn:
# hagrp -modify crsgrp SystemList -delete saturn
If the node is not removed, use the VCS commands as described in this procedure to remove the node.
300
Removing a node from Storage Foundation Cluster File System clusters Removing security credentials from the leaving node
Note: The cpsadm command is used to perform the steps in this procedure. For detailed information about the cpsadm command, see the Veritas Storage Foundation Cluster File System Administrator's Guide. To remove the node configuration from the CP server
1 2
Log into the CP server as the root user. View the list of VCS users on the CP server, using the following command:
# cpsadm -s cp_server -a list_users
Remove the VCS user associated with the node you previously removed from the cluster. For CP server in secure mode:
# cpsadm -s cp_server -a rm_user \ -e _HA_VCS_saturn@[email protected] \ -f cps_operator -g vx
-g vx
View the list of nodes on the CP server to ensure that the node entry was removed:
# cpsadm -s cp_server -a list_nodes
Removing a node from Storage Foundation Cluster File System clusters Updating the Storage Foundation for Databases (SFDB) repository after removing a node
301
1 2
Kill the /opt/VRTSat/bin/vxatd process. Remove the root credentials on node saturn.
# vssat deletecred --domain type:domainname --prplname prplname
Updating the Storage Foundation for Databases (SFDB) repository after removing a node
If you are using Database Checkpoints, Database Flashsnap, or SmartTier for Oracle in your configuration, update the SFDB repository to remove the reference for the node after removing the node from the cluster. Note: If you have not created an SFDB repository, you do not need to perform the following steps. To update the SFDB repository after removing a node
Run the following command after physically removing the node from the cluster. For example:
$ /opt/VRTSdbed/bin/dbed_rept_node -S $ORACLE_SID -n NODE -o remove
This completes the removal of the node from the SFDB repository.
The existing cluster cluster1 comprises three nodes system1, system2, and system3 and hosts a single database. The database is stored on CFS.
302
Removing a node from Storage Foundation Cluster File System clusters Sample configuration file for removing a node from the cluster
The database is managed by a VCS database agent. The agent starts, stops, and monitors the database.
Note: The following sample file shows in bold the configuration information that is removed when the node system3 is removed from the cluster.
include "types.cf" include "CFSTypes.cf" include "CVMTypes.cf" cluster cluster1 ( UserNames = { admin = bopHo } Administrators = { admin } UseFence = SCSI3 ) cluster cluster1 ( UserNames = { admin = bopHo } Administrators = { admin } UseFence = SCSI3 ) system system1 ( ) system system2 ( ) system system3 ( )
Note: In the following group app_grp, the system3 node must be removed.
group app_grp ( SystemList = { system1 = 0, system2 = 1, system3 = 2 } AutoFailOver = 0 Parallel = 1 AutoStartList = { system1, system2, system3 } )
Note: In the following application resource, the system3 node information must be removed.
Removing a node from Storage Foundation Cluster File System clusters Sample configuration file for removing a node from the cluster
303
App app1 ( Critical = 0 Sid @system1 = vrts1 Sid @system2 = vrts2 Sid @system3 = vrts3 ) CFSMount appdata_mnt ( Critical = 0 MountPoint = "/oradata" BlockDevice = "/dev/vx/dsk/appdatadg/appdatavol" ) CVMVolDg appdata_voldg ( Critical = 0 CVMDiskGroup = appdatadg CVMVolume = { appdatavol } CVMActivation = sw ) requires group cvm online local firm app1 requires appdata_mnt appdata_mnt requires appdata_voldg
Note: In the following CVM and CVMCluster resources, the system3 node information must be removed.
group cvm ( SystemList = { system1 = 0, system2 = 1, system3 =2} AutoFailOver = 0 Parallel = 1 AutoStartList = { system1, system2, system3 } ) CFSfsckd vxfsckd ( )
304
Removing a node from Storage Foundation Cluster File System clusters Sample configuration file for removing a node from the cluster
Section
Chapter 20. Setting up a replicated global cluster Chapter 21. Configuring a global cluster using VVR
306
Chapter
20
Replication in the SFCFS environment Requirements for SFCFS global clusters About setting up a global cluster in an SFCFS environment Configuring a cluster at the primary site Configuring a cluster at the secondary site Configuring replication on clusters at both sites Modifying the ClusterService group for global clusters Defining the remote cluster and heartbeat objects Configuring the VCS service groups for global clusters
308
Veritas Volume Replicator (VVR), which provides host-based volume replication. Using VVR you can replicate data volumes on a shared disk group in SFCFS. Supported hardware-based replication technologies. Using hardware-based replication you can replicate data from a primary array to a secondary array. Using SFCFS with VVR you can run a fire drill to verify the disaster recovery capability of your configuration. See the Veritas Storage Foundation for Oracle RAC Administrator's Guide.
See Hardware overview and requirements for Veritas Storage Foundation Cluster File System on page 39. See the current compatibility list in the Veritas Technical Support website to confirm the compatibility of your hardware: http://entsupport.symantec.com/docs/283161
309
Supported software
Host-based replication
EMC SRDF
Asynchronous replication Supporting agent: SRDF Synchronous replication Hitachi True Copy Supporting agent: HTC Asynchronous replication Synchronous replication
IBM Metro Mirror Supporting agent: MetroMirror IBM SVC SVC CopyServices
Synchronous replication All versions of IBM DSCLI. The MetroMirror agent is supported for DS6000 and DS8000 arrays Asynchronous replication Synchronous replication
Note: Check your vendor's compatibility list for the supported software versions. The support listed above only exists if the host, HBA, and array combination is in your vendor's hardware compatibility list. Check your array documentation.
Note: All arrays must support SCSI-3 persistent reservations for SFCFS.
310
Setting up a replicated global cluster About setting up a global cluster in an SFCFS environment
You can use the Veritas replication agents listed in the table above for global clusters that run SFCFS. The Veritas replication agents provide application failover and recovery support to your replication configuration. The agents provide this support for environments where data is replicated between clusters. VCS agents control the direction of replication. They do not monitor the progress or status of replication. The replication agents manage the state of replicated devices that are attached to SFCFS nodes. The agents make sure that the system which has the resource online also has safe and exclusive access to the configured devices. This information is current at the time this document is released. For more current information on the replicated agents, see:
Veritas Cluster Server Agent for EMC SRDF Installation and Configuration Guide Veritas Cluster Server Agent for Hitachi TrueCopy Installation and Configuration Guide Veritas Cluster Server Agent for IBM Metro Mirror Installation and Configuration Guide Veritas Cluster Server Agent for IBM SVC Installation and Configuration Guide Veritas Cluster Server Agent for EMC MirrowView Installation and Configuration Guide Veritas Cluster Server Agent for Oracle Data Guard Installation and Configuration Guide Technical Support TechNote for the latest updates or software issues for replication agents: http://entsupport.symantec.com/docs/282004htm
Configure an SFCFS cluster at the primary site Configure an SFCFS cluster at the secondary site Configure replication on clusters at both sites Configure VCS service groups for replication
311
Test the HA/DR configuration Upon successful testing, bring the environment into production
Some SFCFS HA/DR configuration tasks may require adjustments depending upon your particular starting point, environment, and configuration. Review the installation requirements and sample cluster configuration files for primary and secondary clusters. For instructions for configuring AT in a global cluster: See the Veritas Cluster Server Administrator's Guide
1 2 3
Install and configure servers and storage. If you are using hardware-based replication, install the sofware for managing your array. Verify that you have the correct installation options enabled, whether you are using keyless licensing or installing keys manually. You must have the GCO option for a global cluster. If you are using VVR for replication, you must have it enabled.
312
Install and configure SFCFS. Prepare for your installation according to your configuration needs. For preparation: See Prerequisites for Veritas Storage Foundation Cluster File System on page 39. For installation: See About the Web-based installer on page 67.
Verify the shared storage on the secondary site supports SCSI-3 reservations. Set up coordinator disks Configure I/O fencing
For instructions for setting up fencing: See About planning to configure I/O fencing on page 96.
Verify the CVM group is online on all nodes in the primary cluster:
# hagrp -state cvm
Prepare systems and storage for a global cluster. Identify the hardware and storage requirements before installing your database software. You will need to set up:
Local storage for database software Shared storage for resources which are not replicated Replicated storage for database files
Install and configure the database binaries. Consult your database documentation. Note: Resources which will not be replicated must be on non-replicated shared storage. After successful database installation and configuration, verify that database resources are up on all nodes.
Identify the disks that will be replicated, create the required CVM disk group, volume, and file system.
313
10 Create the database on the file system you created in the previous step. 11 Configure the VCS service groups for the database. 12 Verify that all VCS service groups are online.
The setup requirements for the secondary site parallel the requirements for the primary site with a few additions or exceptions as noted below. Important requirements for global clustering:
Cluster names on the primary and secondary sites must be unique. Make sure that you use the same OS user and group IDs for Oracle for installation and configuration on both the primary and secondary clusters.
1 2 3
Install and configure servers and storage. If you are using hardware-based replication, install the sofware for managing your array. Verify that you have the correct installation options enabled, whether you are using keyless licensing or installing keys manually. You must have the GCO option for a global cluster. If you are using VVR for replication, you must have it enabled. Install and configure SFCFS. Prepare for your installation according to your configuration needs. For preparation: See Prerequisites for Veritas Storage Foundation Cluster File System on page 39. For installation: See About the Web-based installer on page 67.
314
Verify the shared storage on the secondary site supports SCSI-3 reservations. Set up coordinator disks Configure I/O fencing
For instructions for setting up fencing: See About planning to configure I/O fencing on page 96.
6 7
For a single-node cluster, do not enable I/O fencing. Fencing will run in disabled mode. Prepare systems and storage for a global cluster. Identify the hardware and storage requirements before installing your database software. You will need to set up:
Local storage for database software Shared storage for resources which are not replicated Replicated storage for database files
Install and configure the database binaries. Consult your database documentation. Note: Resources which will not be replicated must be on non-replicated shared storage. After successful database installation and configuration, verify that database resources are up on all nodes.
Do not create the database. The database will be replicated from the primary site.
If you are using hardware-based replication, the database, disk group, and volumes will be replicated from the primary site. Create the directory for the CFS mount point which will host the database data and control files. If you are using VVR for replication, create an identical disk group and volumes for the replicated content with the same names and size as listed on the primary site.
315
Create the directories for the CFS mount points as they are on the primary site. These will be used to host the database and control files when the failover occurs and the secondary is promoted to become the primary site.
Copy the init$ORACLE_SID.ora file from $ORACLE_HOME/dbs at the primary to $ORACLE_HOME/dbs at the secondary. Create subdirectories for the database as you did on the primary site.
At both sites, identify the disks on which the database resides at the primary site and associate them with the corresponding disks at the secondary site. See Setting up replication using VVR on the primary site on page 322.
Start replication between the sites. See Starting replication of application database volume on page 329.
Heartbeat Wide area cluster (wac) GCO IP (gcoip) remote cluster resources
See the Veritas Cluster Server Users Guide for complete details on global clustering.
316
Setting up a replicated global cluster Defining the remote cluster and heartbeat objects
Validates the ability of the current configuration to support a global cluster environment. Creates the components that enable the separate clusters, each of which contains a different set of GAB memberships, to connect and operate as a single unit. Creates the ClusterService group, or updates an existing ClusterService group.
Run the global clustering configuration wizard on each of the clusters; you must have the global clustering license in place on each node in the cluster. To modify the ClusterService group for global clusters using the global clustering wizard
The wizard discovers the NIC devices on the local system and prompts you to enter the device to be used for the global cluster. Specify the name of the device and press Enter. If you do not have NIC resources in your configuration, the wizard asks you whether the specified NIC will be the public NIC used by all the systems. Enter y if it is the public NIC; otherwise enter n. If you entered n, the wizard prompts you to enter the names of NICs on all systems. Enter the virtual IP address for the local cluster. If you do not have IP resources in your configuration, the wizard prompts you for the netmask associated with the virtual IP. The wizard detects the netmask; you can accept the suggested value or enter another one. The wizard starts running commands to create or update the ClusterService group. Various messages indicate the status of these commands. After running these commands, the wizard brings the ClusterService group online.
4 5
Setting up a replicated global cluster Defining the remote cluster and heartbeat objects
317
Define the remote cluster and its virtual IP address. In this example, the remote cluster is clus2 and its IP address is 10.11.10.102:
# haclus -add clus2 10.11.10.102
Complete step 1 and step 2 on the secondary site using the name and IP address of the primary cluster. In this example, the primary cluster is clus1 and its IP address is 10.10.10.101:
# haclus -add clus1 10.10.10.101
On the primary site, add the heartbeat object for the cluster. In this example, the heartbeat method is ICMP ping.
# hahb -add Icmp
ClusterList lists the remote cluster. Arguments enables you to define the virtual IP address for the remote cluster.
For example:
# hahb -modify Icmp ClusterList clus2 # hahb -modify Icmp Arguments 10.11.10.102 -clus clus2
Save the configuration and change the access to read-only on the local cluster:
# haconf -dump -makero
318
Setting up a replicated global cluster Defining the remote cluster and heartbeat objects
Complete step 4-6 on the secondary site using appropriate values to define the cluster on the primary site and its IP as the remote cluster for the secondary cluster. Verify cluster status with the hastatus -sum command on both clusters.
# hastatus -sum
Setting up a replicated global cluster Defining the remote cluster and heartbeat objects
319
See the Veritas Cluster Server Users Guide for details for configuring the required and optional attributes of the heartbeat object.
320
Setting up a replicated global cluster Configuring the VCS service groups for global clusters
Configure VCS service groups at both sites. Configure the replication agent at both sites.
To test real data in an environment where HA/DR has been configured, schedule a planned migration to the secondary site for testing purposes. For example: See Migrating the role of primary site to the secondary site on page 342. See Migrating the role of new primary site back to the original primary site on page 343.
For complete details on VVR in a shared disk environment: See the Veritas Volume Replicator Administrators Guide.
Chapter
21
About configuring global clustering using VVR Setting up replication using VVR on the primary site Setting up replication using VVR on the secondary site Starting replication of application database volume Configuring VCS to replicate the database volume using VVR Using VCS commands on SFCFS global clusters Using VVR commands on SFCFS global clusters
322
Configuring a global cluster using VVR Setting up replication using VVR on the primary site
Setting up both clusters as part of a global cluster environment. See About setting up a global cluster in an SFCFS environment on page 310. Setting up replication for clusters at both sites. See Setting up replication using VVR on the primary site on page 322. See Setting up replication using VVR on the secondary site on page 325. Starting replication of the database. See Starting replication of application database volume on page 329. Configuring VCS for replication on clusters at both sites. See Configuring VCS to replicate the database volume using VVR on page 331.
If you have not already done so, create a disk group on the storage on the primary site. Creating the Storage Replicator Log (SRL) in the disk group for the database. See Creating the SRL volume on the primary site on page 322. Creating the Replicated Volume Group (RVG) on the primary site. See Setting up the Replicated Volume Group (RVG) on the primary site on page 323.
The data volume on the secondary site has the same name and the same size as the data volume on the primary site. The SRL on the secondary site has the same name and the same size as the SRL on the primary site. The data volume and SRL volume should exist in the same disk group. If possible, create SRLs on disks without other volumes. Mirror SRLs and data volumes in the absence of hardware-based mirroring.
Configuring a global cluster using VVR Setting up replication using VVR on the primary site
323
On the primary site, determine the size of the SRL volume based on the configuration and amount of use. See the Veritas Volume Replicator documentation for details.
Using the following command, determine whether a node is the master or the slave:
# vxdctl -c mode
Using the following command, start the SRL volume by starting all volumes in the disk group:
# vxvol -g oradatadg startall
324
Configuring a global cluster using VVR Setting up replication using VVR on the primary site
1 2 3
Verify the volumes you intend to include in the group are active. Review the output of the hagrp -state cvm command to verify that the CVM group is online. On each site, verify vradmin is running:
# ps -ef |grep vradmin root 536594 598036 0 12:31:25 0 0:00 grep vradmin
To create the RVG The command to create the primary RVG takes the form:
vradmin -g disk_group createpri rvg_name data_volume srl_volume
where:
disk_group is the name of the disk group containing the database rvg_name is the name for the RVG data_volume is the volume that VVR replicates srl_volume is the volume for the SRL
The command creates the RVG on the primary site and adds a Data Change Map (DCM) for each data volume. In this case, a DCM exists for rac1_vol.
Configuring a global cluster using VVR Setting up replication using VVR on the secondary site
325
If you have not already done so, create a disk group to hold data volume, SRL, and RVG on the storage on the secondary site. Create volumes for the database and SRL on the secondary site. See Creating the data and SRL volumes on the secondary site on page 325. Edit the /etc/vx/vras/.rdg file on the secondary site. See Editing the /etc/vx/vras/.rdg files on page 326. Use resolvable virtual IP addresses that set network RLINK connections as host names of the primary and secondary sites. See Setting up IP addresses for RLINKs on each cluster on page 326. Create the replication objects on the secondary site. See Setting up the disk group on secondary site for replication on page 327.
The sizes and names of the volumes must reflect the sizes and names of the corresponding volumes in the primary site. Create the data and SRL volumes on different disks in the disk group. Use the vxdisk -g diskgroup list command to list the disks in the disk group. Mirror the volumes.
In the disk group created for the application database, create a data volume of same size as that in primary for data; in this case, the rac_vol1 volume on the primary site is 6.6 GB:
# vxassist -g oradatadg make rac_vol1 6600M nmirror=2 disk1 disk2
326
Configuring a global cluster using VVR Setting up replication using VVR on the secondary site
Create the volume for the SRL, using the same name and size of the equivalent volume on the primary site. Create the volume on different disks from the disks for the database volume, but on the same disk group that has the data volume:
# vxassist -g oradatadg make rac1_srl 1500M nmirror=2 disk4 disk6
On a node in the primary site, display the primary disk group ID:
# vxprint -l diskgroup .....
2 3
On each node in the secondary site, edit the /etc/vx/vras/.rdg file and enter the primary disk group ID on a single line. On each cluster node of the primary cluster, edit the /etc/vx/vras/.rdg file and enter the secondary disk group ID on a single line.
For each RVG running on each cluster, set up a virtual IP address on one of the nodes of the cluster. These IP addresses are part of the RLINK. The example assumes for the cluster on the primary site:
Configuring a global cluster using VVR Setting up replication using VVR on the secondary site
327
Use the same commands with appropriate values for the interface, IP address, and net mask on the secondary site. The example assumes for the secondary site:
The public network interface is eth0:1 virtual IP address is 10.11.9.102 net mask is 255.255.255.0
Define the virtual IP addresses to correspond to a virtual cluster host name on the primary site and a virtual cluster host name on the secondary site. Update the /etc/hosts file on all the nodes on both the primary and secondary sites. The examples assume:
Issue the command in the following format from the cluster on the primary site:
# vradmin -g dg_pri addsec rvg_pri pri_host sec_host
where:
dg_pri is the disk group on the primary site that VVR will replicate. For example: rac1_vol rvg_pri is the RVG on the primary site. For example: rac1_rvg pri_host is the virtual IP address or resolvable virtual host name of the cluster on the primary site. For example: clus1_1
328
Configuring a global cluster using VVR Setting up replication using VVR on the secondary site
sec_host is the virtual IP address or resolvable virtual host name of the cluster on the secondary site. For example: clus2_1
For example, the command to add the cluster on the primary site to the Replicated Data Set (RDS) is:
On the secondary site, the above command performs the following tasks:
Creates an RVG within the specified disk group using the same name as the one for the primary site Associates the data and SRL volumes that have the same names as the ones on the primary site with the specified RVG Adds a data change map (DCM) for the data volume Creates cluster RLINKS for the primary and secondary sites with the default names
Verify the list of RVGs in the RDS by executing the following command.
# vradmin -g oradatadg -l printrvg
For example:
Replicated Data Set: rac1_rvg Primary: HostName: 10.180.88.187 <localhost> RvgName: rac1_rvg DgName: rac1_vol datavol_cnt: 1 vset_cnt: 0 srl: rac1_srl RLinks: name=rlk_clus2_1_rac1_rvg, detached=on, synchronous=off Secondary: HostName: 10.190.99.197 RvgName: rac1_rvg DgName: oradatadg datavol_cnt: 1
Configuring a global cluster using VVR Starting replication of application database volume
329
Note: Once the replication is started the value of the detached flag will change the status from OFF to ON.
Mode of replication: synchronous=off Latency Protection: latencyprot=off SRL overflow protection: srlprot_autodcm Packet size: packet_size=8400 Network protocol: protocol=UDP
For guidelines on modifying these settings and information on choosing the method of replication for the initial synchronization: See the Veritas Volume Replicator Administrators Guide
From the primary site, use the following command to automatically synchronize the RVG on the secondary site:
330
Configuring a global cluster using VVR Starting replication of application database volume
where:
disk_group is the disk group on the primary site that VVR will replicate pri_rvg is the name of the RVG on the primary site sec_host is the virtual host name for the secondary site
For example:
# vradmin -g oradatadg -a startrep rac1_rvg clus2
From the primary site, synchronize the RVG on the secondary site with full synchronization (using the -c checkpoint option):
vradmin -g disk_group -full -c ckpt_name syncrvg pri_rvg sec_host
where:
disk_group is the disk group on the primary site that VVR will replicate ckpt_name is the name of the checkpoint on the primary site pri_rvg is the name of the RVG on the primary site sec_host is the virtual host name for the secondary site
For example:
# vradmin -g oradatadg -c rac1_ckpt syncrvg rac1_rvg clus2
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
331
Review the flags output for the status. The output may appear as connected and consistent. For example:
# vxprint -g oradatadg -l rlk_clus2_1_rac1_rvg Rlink: rlk_clus2_1_rac1_rvg info: timeout=500 packet_size=8400 rid=0.1078 latency_high_mark=10000 latency_low_mark=9950 bandwidth_limit=none state: state=ACTIVE synchronous=off latencyprot=off srlprot=autodcm . . protocol: UDP/IP checkpoint: rac1_ckpt flags: write enabled attached consistent connected asynchronous
332
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
For more information on service replication resources: See the Veritas Cluster Server Agents for Veritas Volume Replicator Configuration Guide.
RLINKs for the RVG RVGLogowner resource. The RVG and its associated disk group are defined as attributes for the RVGLogowner resource.
The RVG log owner service group has an online local firm dependency on the service group containing the RVG. The VCS uses the following agents to control the folllowing resources:
RVGLogowner agent to control the RVGLogowner resource RVGShared agent to control the RVGShared resource
RVG group
Create an RVG group that includes the RVGShared resource replication objects. Define the RVGShared resource and CVMVolDg resource together within a parallel service group. The group is defined as parallel because it may be online at the same time on all cluster nodes.
CVMVolDg resource
The CVMVolDg resource does not have volumes specified for the CVMVolume attribute; the volumes are contained in the RVG resource. The CVMVolume attribute for the CVMVolDg resource is empty because all volumes in the RVG are defined by the RVG attribute of the RVGShared resource. The RVG service group has an online local firm dependency on the CVM service group. For a detailed description of the CVMVolDg agent in this guide: See CVMVolDg agent on page 433.
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
333
RVGSharedPri resource
Add the RVGSharedPri resource to the existing application database service group. The CVMVolDg resource must be removed from the existing application database service group.
A log owner group including the RVGLogowner resource. An RVG group including the RVGShared resource replication objects.
Add the RVGSharedPri resource to the existing application database service group and define this group as a global group by setting the ClusterList and ClusterFailOverPolicy attributes. Move the CVMVolDg resource from the existing application database service group to the newly created RVG group.
1 2
Log into one of the nodes on the primary cluster. Use the following command to save the existing configuration to disk, and make the configuration read-only while you make changes:
# haconf -dump -makero
Use the following command to make a backup copy of the main.cf file:
# cd /etc/VRTSvcs/conf/config # cp main.cf main.orig
Use vi or another text editor to edit the main.cf file. Review the sample configuration file after the SFCFS installation.
334
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
Add a failover service group using the appropriate values for your cluster and nodes. Include the following resources:
RVGLogowner resource. The node on which the group is online functions as the log owner (node connected to the second cluster for the purpose of replicating data). IP resource NIC resources
The following are examples of RVGLogowner service group for the different platforms.
group rlogowner ( SystemList = { galaxy = 0, nebula = 1 } AutoStartList = { galaxy,nebula } ) IP logowner_ip ( Device = eth0 Address = "10.10.9.101" NetMask = "255.255.255.0" ) NIC nic ( Device = eth0 NetworkType = ether NetworkHosts = "10.10.8.1" ) RVGLogowner logowner ( RVG = rac1_rvg DiskGroup = oradatadg ) requires group RVGgroup online local firm logowner requires logowner_ip logowner_ip requires nic
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
335
Add the RVG service group using the appropriate values for your cluster and nodes. Example RVGgroup service group:
group RVGgroup ( SystemList = { galaxy = 0, nebula = 1 } Parallel = 1 AutoStartList = { galaxy,nebula } ) RVGShared racdata_rvg ( RVG = rac1_rvg DiskGroup = oradatadg ) CVMVolDg racdata_voldg ( CVMDiskGroup = oradatadg CVMActivation = sw ) requires group cvm online local firm racdata_rvg requires racdata_voldg
Modify the application service group using the appropriate values for your cluster and nodes:
Define the application service group as a global group by specifying the clusters on the primary and secondary sites as values for the ClusterList group attribute. See the bolded attribute in the example that follows. Add the ClusterFailOverPolicy cluster attribute. Symantec recommends using the Manual value. See the bolded attribute in the example. Add the RVGSharedPri resource to the group configuration. Remove the CVMVolDg resource, if it has been configured in your previous configuration. This resource is now part of the RVG service group. Specify the service group (online, local, firm) to depend on the RVG service group. Remove the existing dependency of the Database service group on the CVM service group. Remove the line:
requires group CVM online local firm
Remove the existing dependency between the CFSMount for the database and the CVMVoldg for the application database. Remove the line:
336
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
The following is an example of an application database service group configured for replication:
group database_grp ( SystemList = { galaxy = 0, nebula = 1 } ClusterList = { clus1 = 0, clus2 = 1 } Parallel = 1 ClusterFailOverPolicy = Manual Authority = 1 AutoStartList = { galaxy,nebula } ) CFSMount oradata_mnt ( MountPoint = "/oradata" BlockDevice = "/dev/vx/dsk/oradatadg/rac1_vol" ) RVGSharedPri ora_vvr_shpri ( RvgResourceName = racdata_rvg OnlineRetryLimit = 0 ) requires group RVGgroup online local firm oradata_mnt requires ora_vvr_shpri
7 8
Save and close the main.cf file. Use the following command to verify the syntax of the /etc/VRTSvcs/conf/config/main.cf file:
# hacf -verify /etc/VRTSvcs/conf/config
Wait for port h to stop on all nodes, and then restart VCS with the new configuration on all primary nodes:
# hastart
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
337
Add the log owner and RVG service groups. Add a service group to manage the application database and the supporting resources. Define the replication objects and agents, such that the cluster at the secondary site can function as a companion to the primary cluster.
The following steps are similar to those performed on the primary site. To modify VCS on the secondary site
1 2
Log into one of the nodes on the secondary site as root. Use the following command to save the existing configuration to disk, and make the configuration read-only while making changes:
# haconf -dump -makero
Use the following command to make a backup copy of the main.cf file:
# cd /etc/VRTSvcs/conf/config # cp main.cf main.orig
Use vi or another text editor to edit the main.cf file. Edit the CVM group on the secondary site. Review the sample configuration file after the SFCFS installation to see the CVM configuration. In our example, the secondary site has clus2 consisting of the nodes mercury and jupiter. To modify the CVM service group on the secondary site, use the CVM group on the primary site as your guide.
Add a failover service group using the appropriate values for your cluster and nodes. Include the following resources:
RVGLogowner resource. The node on which the group is online functions as the log owner (node connected to the second cluster for the purpose of replicating data). IP resource NIC resources
338
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
group rlogowner ( SystemList = { mercury = 0, jupiter = 1 } AutoStartList = { mercury, jupiter } ) IP logowner_ip ( Device = eth0 Address = "10.11.9.102" NetMask = "255.255.255.0" ) NIC nic ( Device = eth0 NetworkHosts = { "10.10.8.1" } NetworkType = ether ) RVGLogowner logowner ( RVG = rac1_rvg DiskGroup = oradatadg ) requires group RVGgroup online local firm logowner requires logowner_ip logowner_ip requires nic
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
339
Add the RVG service group using the appropriate values for your cluster and nodes. The following is an example RVGgroup service group:
group RVGgroup ( SystemList = { mercury = 0, jupiter = 1 } Parallel = 1 AutoStartList = { mercury, jupiter } ) RVGShared racdata_rvg ( RVG = rac1_rvg DiskGroup = oradatadg ) CVMVolDg racdata_voldg CVMDiskGroup = oradatadg CVMActivation = sw ) requires group cvm online local firm racdata_rvg requires racdata_voldg
Add an application service group. Use the application service group on the primary site as a model for the application service group on the secondary site.
Define the application service group as a global group by specifying the clusters on the primary and secondary sites as values for the ClusterList group attribute. Assign this global group the same name as the group on the primary site; for example, database_grp. Include the ClusterList and ClusterFailOverPolicy cluster attributes. Symantec recommends using the Manual value. Add the RVGSharedPri resource to the group configuration. Remove the CVMVolDg resource, if it has been configured in your previous configuration. This resource is now part of the RVG service group. Specify the service group to depend (online, local, firm) on the RVG service group.
340
Configuring a global cluster using VVR Configuring VCS to replicate the database volume using VVR
group database_grp ( SystemList = { mercury = 0, jupiter = 1 } ClusterList = { clus2 = 0, clus1 = 1 } Parallel = 1 OnlineRetryInterval = 300 ClusterFailOverPolicy = Manual Authority = 1 AutoStartList = { mercury, jupiter } ) RVGSharedPri ora_vvr_shpri ( RvgResourceName = racdata_rvg OnlineRetryLimit = 0 )
RVGSharedPri ora_vvr_shpri ( RvgResourceName = racdata_rvg OnlineRetryLimit = 0 ) requires group RVGgroup online local firm oradata_mnt requires ora_vvr_shpri
8 9
Save and close the main.cf file. Use the following command to verify the syntax of the /etc/VRTSvcs/conf/config/main.cf file:
# hacf -verify /etc/VRTSvcs/conf/config
Configuring a global cluster using VVR Using VCS commands on SFCFS global clusters
341
Wait for port h to stop on all nodes, and then restart VCS with the new configuration on all primary nodes:
# hastart
11 Verify that VCS brings all resources online. On one node, enter the following
command:
# hagrp -display
The application, RVG, and CVM groups are online on both nodes of the primary site. The RVGLogOwner group is online on one node of the cluster. If either the RVG group or the RVGLogOwner group is partially online, manually bring the groups online using the hagrp -online command. This information applies to the secondary site, except for the application group which must be offline.
12 Verify the service groups and their resources that are brought online. On one
node, enter the following command:
# hagrp -display
The application service group is offline on the secondary site, but the CVM, RVG log owner, and RVG groups are online. This completes the setup for an SFCFS global cluster using VVR for replication. Symantec recommends testing a global cluster before putting it into production.
342
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
Migration of the role of the primary site to the remote site Takeover of the primary site role by the secondary site
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
343
From the primary site, use the following command to take the Oracle service group offline on all nodes.
# hagrp -offline database_grp -any
Wait for VCS to take all Oracle service groups offline on the primary site.
Verify that the RLINK between the primary and secondary is up to date. Use the vxrlink -g command with the status option and specify the RLINK for the primary cluster. You can use the command from any node on the primary cluster. For example:
# vxrlink -g data_disk_group status rlk_clus1_priv_rac1_rvg
On the secondary site, which is now the new primary site, bring the Oracle service group online on all nodes:
# hagrp -online database_grp -any
Migrating the role of new primary site back to the original primary site
After migrating the role of the primary site to the secondary site, you can use VCS commands to migrate the role of the cluster on the new primary site to the original primary site. In the procedure below, VCS takes the replicated database service group, database_grp, offline on the new primary (former secondary) site and brings it online on the original primary site; the original primary site now resumes the role of the primary site. Note: The hagrp -switch command cannot migrate a parallel group within a cluster or between clusters in a global cluster environment.
344
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
To migrate the role of new primary site back to the original primary site
Make sure that all CRS resources are online, and switch back the group database_grp to the original primary site. Issue the following command on the remote site:
# hagrp -offline database_grp -any
Verify that the RLINK between the primary and secondary is up to date. Use the vxrlink -g command with the status option and specify the RLINK for the primary cluster. You can use the command from any node on the primary cluster. For example:
# vxrlink -g data_disk_group status rlk_clus1_priv_rac1_rvg
Make sure that database_grp is offline on the new primary site. Then, execute the following command on the original primary site to bring the database_grp online:
# hagrp -online database_grp -any
Disaster Outage
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
345
Disconnect Replica
Disaster
When the cluster on the primary site is inaccessible and appears dead, the administrator declares the failure type as "disaster." For example, fire may destroy a data center, including the primary site and all data in the volumes. After making this declaration, the administrator can bring the service group online on the secondary site, which now has the role as "primary" site.
Outage
When the administrator of a secondary site knows the primary site is inaccessible for a known reason, such as a temporary power outage, the administrator may declare the failure as an "outage." Typically, an administrator expects the primary site to return to its original state. After the declaration for an outage occurs, the RVGSharedPri agent enables DCM logging while the secondary site maintains the primary replication role. After the original primary site becomes alive and returns to its original state, DCM logging makes it possible to use fast fail back resynchronization when data is resynchronized to the original cluster. Before attempting to resynchronize the data using the fast fail back option from the current primary site to the original primary site, take the precaution at the original primary site of making a snapshot of the original data. This action provides a valid copy of data at the original primary site for use in the case the current primary site fails before the resynchronization is complete. See Examples for takeover and resynchronization on page 346. See Replica on page 346.
Disconnect
When both clusters are functioning properly and the heartbeat link between the clusters fails, a split-brain condition exists. In this case, the administrator can declare the failure as "disconnect," which means no attempt will occur to take over the role of the primary site at the secondary site. This declaration is merely advisory, generating a message in the VCS log indicating the failure results from a network outage rather than a server outage.
346
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
Replica
In the rare case where the current primary site becomes inaccessible while data is resynchronized from that site to the original primary site using the fast fail back method, the administrator at the original primary site may resort to using a data snapshot (if it exists) taken before the start of the fast fail back operation. In this case, the failure type is designated as "replica".
From any node of the secondary site, issue the haclus command:
# haclus -declare outage -clus rac_cluster101
After declaring the state of the remote cluster, bring the Oracle service group online on the secondary site. For example:
# hagrp -online -force database_grp -any
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
347
On the original primary site, create a snapshot of the RVG before resynchronizing it in case the current primary site fails during the resynchronization. Assuming the disk group is data_disk_group and the RVG is rac1_rvg, type:
# vxrvg -g data_disk_group -F snapshot rac1_rvg
See the Veritas Volume Replicator Administrators Guide for details on RVG snapshots.
Resynchronize the RVG. From the CVM master node of the current primary site, issue the hares command and the -action option with the fbsync action token to resynchronize the RVGSharedPri resource. For example:
# hares -action ora_vvr_shpri fbsync -sys mercury
Perform one of the following commands, depending on whether the resynchronization of data from the current primary site to the original primary site is successful:
If the resynchronization of data is successful, use the vxrvg command with the snapback option to reattach the snapshot volumes on the original primary site to the original volumes in the specified RVG:
# vxrvg -g data_disk_group snapback rac1_rvg
A failed attempt at the resynchronization of data (for example, a disaster hits the primary RVG when resynchronization is in progress) could generate inconsistent data. You can restore the contents of the RVG data volumes from the snapshot taken in step 1:
# vxrvg -g data_disk_group snaprestore rac1_rvg
348
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
DNS agent
The DNS agent updates the canonical name-mapping in the domain name server after a wide-area failover. See the Veritas Cluster Server Bundled Agents Reference Guide for more information about the agent.
RVG agent
The RVG agent manages the Replicated Volume Group (RVG). Specifically, it brings the RVG online, monitors read-write access to the RVG, and takes the RVG offline. Use this agent when using VVR for replication.
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
349
RVGPrimary agent
The RVGPrimary agent attempts to migrate or take over a Secondary to a Primary following an application failover. The agent has no actions associated with the offline and monitor routines.
350
Configuring a global cluster using VVR Using VVR commands on SFCFS global clusters
Section
352
Chapter
22
Shutting down cluster operations Removing VxFS file systems Removing rootability Moving volumes to disk partitions Disabling the agents on a system Removing the Replicated Data Set Uninstalling SFCFS with the Veritas Web-based installer Uninstalling SFCFS RPMs using the script-based installer Uninstalling Storage Foundation Cluster File System Removing license files (Optional) Removing the CP server configuration using the removal script Removing the Storage Foundation for Databases (SFDB) repository after removing the product
354
Uninstalling Storage Foundation Cluster File System Shutting down cluster operations
Warning: Do not use the -force option when executing hastop. This will leave all service groups online and shut down VCS, causing undesired results during uninstallation of the packages.
2 3
Make backups of all data on the file systems that you wish to preserve, or recreate them as non-VxFS file systems on non-VxVM volumes or partitions. Unmount all Storage Checkpoints and file systems:
# umount /checkpoint_name # umount /filesystem
Comment out or remove any VxFS file system entries from the /etc/fstab file.
355
Removing rootability
Perform this procedure if you configured rootability by encapsulating the root disk. To remove rootability
Check if the systems root disk is under VxVM control by running this command:
# df -v /
The root disk is under VxVM control if /dev/vx/dsk/rootdg/rootvol is listed as being mounted as the root (/) file system. If so, unmirror and unencapsulate the root disk as described in the following steps:
Use the vxplex command to remove all the plexes of the volumes rootvol, swapvol, usr, var, opt and home that are on disks other than the root disk. For example, the following command removes the plexes mirrootvol-01, and mirswapvol-01 that are configured on a disk other than the root disk:
# vxplex -o rm dis mirrootvol-01 mirswapvol-01
Warning: Do not remove the plexes that correspond to the original root disk partitions.
Enter the following command to convert all the encapsulated volumes in the root disk back to being accessible directly through disk partitions instead of through volume devices:
# /etc/vx/bin/vxunroot
Following the removal of encapsulation, the system is rebooted from the unencapsulated root disk.
Back up the system fully onto tape and then recover from it. Back up each file system individually and then recover them all after creating new file systems on disk partitions.
356
Uninstalling Storage Foundation Cluster File System Moving volumes to disk partitions
Use VxVM to move volumes incrementally onto disk partitions as described in the following section.
Evacuate disks using the vxdiskadm program, VEA, or the vxevac script. You should consider the amount of target disk space required for this before you begin. Evacuation moves subdisks from the specified disks to target disks. The evacuated disks provide the initial free disk space for volumes to be moved to disk partitions.
Remove the evacuated disks from VxVM control using the following commands:
# vxdg -g diskgroup rmdisk disk _media_name # vxdisk rm disk_access_name
3 4
Decide which volume to move first. If the volume to be moved is mounted, unmount it. If the volume is being used as a raw partition for database applications, make sure that the application is not updating the volume and that data on the volume is synced. Create a partition on free disk space of the same size as the volume. If there is not enough free space for the partition, a new disk must be added to the system for the first volume removed. Subsequent volumes can use the free space generated by the removal of this volume.
Copy the data on the volume onto the newly created disk partition using a
where sdb is the disk outside of VxVM and 2 is the newly created partition on that disk.
7 8
Replace the entry for that volume (if present) in /etc/fstab with an entry for the newly created partition. Mount the disk partition if the corresponding volume was previously mounted.
Uninstalling Storage Foundation Cluster File System Disabling the agents on a system
357
Stop the volume and remove it from VxVM using the following commands:
# vxvol -g diskgroup -f stop volume_name # vxedit -g diskgroup -rf rm volume_name
10 Remove any disks that have become free (have no subdisks defined on them)
by removing volumes from VxVM control. To check if there are still some subdisks remaining on a particular disk, use the following command:
# vxprint -F "%sdnum" disk_media_name
11 If the output is not 0, there are still some subdisks on this disk that must be
subsequently removed. If the output is 0, remove the disk from VxVM control using the following commands:
# vxdg -g diskgroup rmdisk disk _media_name # vxdisk rm disk_access_name
12 The free space now created can be used for adding the data in the next volume
to be removed.
13 After all volumes have been converted into disk partitions successfully, reboot
the system. After the reboot, none of the volumes should be open. To verify that none of the volumes are open, use the following command:
# vxprint -Aht -e v_open
358
Uninstalling Storage Foundation Cluster File System Removing the Replicated Data Set
Check whether any service group containing the resource type of the agent is online by typing the following command:
# hagrp -state service_group -sys system_name
If the service group is online, take it offline. To take the service group offline without bringing it online on any other system in the cluster, enter:
# hagrp -offline service_group -sys system_name
When you get the message Please look for messages in the log file, check the file /var/VRTSvcs/log/engine_A.log for a message confirming that each agent has stopped. You can also use the ps command to confirm that the agent is stopped.
Remove the system from the SystemList of the service group. If you disable the agent on all the systems in the SystemList, you can also remove the service groups and resource types from the VCS configuration. Read information on administering VCS from the command line. See the Veritas Cluster Server Users Guide.
Uninstalling Storage Foundation Cluster File System Removing the Replicated Data Set
359
If the Secondary is not required to be up-to-date, proceed to 2 and stop replication using the -f option with the vradmin stoprep command.
Stop replication to the Secondary by issuing the following command on any host in the RDS: The vradmin stoprep command fails if the Primary and Secondary RLINKs are not up-to-date. Use the -f option to stop replication to a Secondary even when the RLINKs are not up-to-date.
# vradmin -g diskgroup stoprep local_rvgname sec_hostname
The argument local_rvgname is the name of the RVG on the local host and represents its RDS. The argument sec_hostname is the name of the Secondary host as displayed in the output of the vradmin printrvg command.
Remove the Secondary from the RDS by issuing the following command on any host in the RDS:
# vradmin -g diskgroup delsec local_rvgname sec_hostname
The argument local_rvgname is the name of the RVG on the local host and represents its RDS. The argument sec_hostname is the name of the Secondary host as displayed in the output of the vradmin printrvg command.
Remove the Primary from the RDS by issuing the following command on the Primary:
# vradmin -g diskgroup delpri local_rvgname
When used with the -f option, the vradmin delpri command removes the Primary even when the application is running on the Primary. The RDS is removed.
If you want to delete the SRLs from the Primary and Secondary hosts in the RDS, issue the following command on the Primary and all Secondaries:
# vxedit -r -g diskgroup rm srl_name
360
Uninstalling Storage Foundation Cluster File System Uninstalling SFCFS with the Veritas Web-based installer
1 2
Perform the required steps to save any data that you wish to preserve. For example, take back-ups of configuration files. Start the Web-based installer. See Starting the Veritas Web-based installer on page 69.
3 4 5 6 7 8
On the Select a task and a product page, select Uninstall a Product from the Task drop-down list. Select Storage Foundation Cluster File System or Storage Foundation Cluster File System High Availability from the Product drop-down list, and click Next. Indicate the systems on which to uninstall. Enter one or more system names, separated by spaces. Click Validate. After the validation completes successfully, click Next to uninstall SFCFS on the selected system. If there are any processes running on the target system, the installer stops the processes. Click Next. After the installer stops the processes, the installer removes the products from the specified system. Click Next.
After the uninstall completes, the installer displays the location of the summary, response, and log files. If required, view the files to confirm the status of the removal.
10 Click Finish.
The Web-based installer prompts you for another task.
Uninstalling Storage Foundation Cluster File System Uninstalling SFCFS RPMs using the script-based installer
361
Not all RPMs may be installed on your system depending on the choices that you made when you installed the software. See About configuring secure shell or remote shell communication modes before installing products on page 407. To shut down and remove the installed SFCFS RPMs
Comment out or remove any Veritas File System (VxFS) entries from the file system table /etc/fstab. Failing to remove these entries could result in system boot problems later. Unmount all mount points for VxFS file systems.
# umount /mount_point
If the VxVM package (VRTSvxvm) is installed, read and follow the uninstallation procedures for VxVM. Stop the VEA Service.
# /opt/VRTS/bin/vxsvcctrl stop
5 6
Make sure you have performed all of the prerequisite steps. In an HA configuration, stop VCS processes on either the local system or all systems. To stop VCS processes on the local system:
# hastop -local
362
Uninstalling Storage Foundation Cluster File System Uninstalling Storage Foundation Cluster File System
The uninstall script prompts for the system name. Enter one or more system names, separated by a space, from which to uninstall SFCFS, for example, host1:
Enter the system names separated by spaces from which to uninstall Storage Foundation: host1
The uninstall script prompts you to select Storage Foundation Cluster File System or Storage Foundation Cluster File System High Availability. yes, the processes are stopped and the RPMs are uninstalled. The uninstall script creates log files and displays the location of the log files.
10 The uninstall script prompts you to stop the product processes. If you respond
1 2
Run the uninstallsfcfs command to uninstall SFCFS. The uninstallsfcfs script uses ssh to communicate with remote nodes as default:
# ./uninstallsfcfs
If you want to use rsh you must specify on the command line:
# ./uninstallsfcfs -rsh
Uninstalling Storage Foundation Cluster File System Removing license files (Optional)
363
To see what license key files you have installed on a system, enter:
# /sbin/vxlicrep
The output lists the license keys and information about their respective products.
Go to the directory containing the license key files and list them:
# cd /etc/vx/licenses/lic # ls -a
Using the output from step 1, identify and delete unwanted key files listed in step 2. Unwanted keys may be deleted by removing the license key file.
364
Uninstalling Storage Foundation Cluster File System Removing the CP server configuration using the removal script
After running the utility and script, you can then uninstall VCS from the node or cluster. Note: The configuration script has to run only once per CP server (which can be on a single node or SFHA cluster), when removing the CP server configuration. The configuration utility performs the following steps to remove the CP server configuration:
Takes the the CP server service group (CPSSG) offline, if it is online Removes the CPSSG service group from the VCS configuration
The following procedure describes how to remove the CP server configuration. To remove the CP server configuration
To run the configuration removal script, enter the following command on the node where you want to remove the CP server configuration:
[email protected] # /opt/VRTScps/bin/configure_cps.pl
The Veritas Coordination Point Server Configuration utility appears with an option menu.
VERITAS COORDINATION POINT SERVER CONFIGURATION UTILITY ======================================================= Select one of the following: [1] Configure Coordination Point Server on single node VCS system [2] Configure Coordination Point Server on SFHA cluster [3] Unconfigure Coordination Point Server
Uninstalling Storage Foundation Cluster File System Removing the CP server configuration using the removal script
365
A warning appears and prompts you to confirm the action to unconfigure the Coordination Point Server. Enter "y" to proceed.
WARNING: Unconfiguring Coordination Point Server stops the vxcpserv process. VCS clusters using this server for coordination purpose will have one less coordination point. Are you sure you want to bring down the cp server? (y/n) (Default:n) :y
After entering "y" to proceed, messages appear informing you of the progress in removing the CP server configuration. When the CP server configuration has been unconfigured, a success message appears. For an example of the messages from a single node VCS cluster:
A single node VCS cluster is currently configured. Stopping the CP server ... Removing the CP Server from VCS configuration.. Removing resource dependencies... Deleting the resources configured under CPSSG service group... Deleting the CPSSG service group... Successfully unconfigured the Veritas Coordination Point Server.
366
Uninstalling Storage Foundation Cluster File System Removing the Storage Foundation for Databases (SFDB) repository after removing the product
You are then prompted to delete the CP server database. Enter "y" to delete the database. For example:
Do you want to delete the CP Server database? (y/n) (Default:n) :
Enter "y" at the prompt to confirm the deletion of the CP server database.
Warning: This database won't be available if CP server is reconfigured on the cluster. Are you sure you want to proceed with the deletion of database? (y/n) (Default:n) :
Enter "y" to delete the CP server configuration file and log files. For example:
Do you want to delete the CP Server configuration file (/etc/vxcps.conf) and log files (in /var/VRTScps)? (y/n) (Default:n) : y
Run the hagrp -state command to ensure that the CPSSG service group has been removed from the node. For example:
[email protected] # hagrp -state CPSSG VCS WARNING V-16-1-40131 Group CPSSG does not exist in the local cluster
Removing the Storage Foundation for Databases (SFDB) repository after removing the product
After removing the product, you can remove the SFDB repository file and any backups. Removing the SFDB repository file will disable the SFDB tools.
Uninstalling Storage Foundation Cluster File System Removing the Storage Foundation for Databases (SFDB) repository after removing the product
367
Change directories to the location of the local lookup information for the Oracle SID. For example:
# cd /var/vx/vxdba/$ORACLE_SID
Identify the SFDB repository file and any associated links: For example:
# ls -al
# cd /ora_data1/TEST
Remove the repository directory containing the repository file and all backups. For example:
# rm -rf .sfdb_rept
368
Uninstalling Storage Foundation Cluster File System Removing the Storage Foundation for Databases (SFDB) repository after removing the product
Section
Installation reference
Appendix A. Installation scripts Appendix B. Response files Appendix C. Configuring I/O fencing using a response file Appendix D. Configuring the secure shell or the remote shell for communications Appendix E. Storage Foundation Cluster File System components Appendix F. High availability agent information Appendix G. Troubleshooting information Appendix H. Troubleshooting cluster installation Appendix I. Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Appendix J. Configuring LLT over UDP using IPv6 Appendix K. Configuring LLT over UDP using IPv4
370
Appendix
Installation scripts
This appendix includes the following topics:
installsfcfs
installsfcfsrac
Veritas Storage Foundation for Oracle RAC installsfrac (SF Oracle RAC) Symantec Product Authentication Service (AT) installat
372
installdmp installsvs
To use the installation script, enter the script name at the prompt. For example, to install Veritas Storage Foundation, type ./installsf at the prompt.
addnode allpkgs
comcleanup
configure
373
Table A-1
./installer -copyinstallscripts
Copies the installation and uninstallation scripts for all products in the release to /opt/VRTS/install. It also copies the installation Perl libraries to /opt/VRTSperl/lib/site_perl/release_name . ./installproduct_name -copyinstallscripts Copies the installation and uninstallation scripts for the specified product and any subset products for the product to /opt/VRTS/install. It also copies the installation Perl libraries to /opt/VRTSperl/lib/site_perl/release_name . ./installer -copyinstallscripts -rootpath alt_root_path The path alt_root_path can be a directory like /rdisk2. In that case, this command copies installation and uninstallation scripts for all the products in the release to /rdisk2/opt/VRTS/install. CPI perl libraries are copied to /rdisk2/opt/VRTSperl/lib/site_perl/release_name, where the release_name is a string that starts with UXRT and includes the release version with no punctuation. fencing Configures I/O fencing in a running cluster.
374
Table A-1
ignorepatchreqs
install
kickstart dir_path
license
listpatches
logpath log_path
makeresponsefile
375
Table A-1
pkginfo
pkgpath package_path
pkgset
pkgtable
postcheck
precheck
recpkgs
redirect
376
Table A-1
responsefile response_file
rsh
security
Enable or disable Symantec Product Authentication Service in a VCS cluster that is running. You can specify this option with the installvcs, installsfha or installsfcfs scripts. For more information about Symantec Product Authentication Service in a VCS cluster, see the Veritas Cluster Server Installation Guide.
serial
Specifies that the installation script performs install, uninstall, start, and stop operations on each system in a serial fashion. If this option is not specified, these operations are performed simultaneously on all systems. Starts the daemons and processes for the specified product. Stops the daemons and processes for the specified product.
start
stop
377
Table A-1
uninstall
upgrade
upgrade_kernelpkgs
upgrade_nonkernelpkgs
version
378
Appendix
Response files
This appendix includes the following topics:
About response files Installing SFCFS using response files Configuring SFCFS using response files Upgrading SFCFS using response files Uninstalling SFCFS using response files Syntax in the response file Response file variables to install, upgrade, or uninstall Storage Foundation Cluster File System Response file variables to configure Storage Foundation Cluster File System Sample response file for SFCFS install Sample response file for SFCFS configure
380
You can generate a response file using the makeresponsefile option. See Installation script options on page 372.
Make sure the systems where you want to install SFCFS meet the installation requirements. Make sure the preinstallation tasks are completed. Copy the response file to one of the cluster systems where you want to install SFCFS. Edit the values of the response file variables as necessary. Mount the product disc and navigate to the directory that contains the installation program. Start the installation from the system to which you copied the response file. For example:
# ./installer -responsefile /tmp/response_file # ./installsfcfs -responsefile /tmp/response_file
2 3
4 5 6
381
1 2
Make sure the SFCFS RPMs are installed on the systems where you want to configure SFCFS. Copy the response file to one of the cluster systems where you want to configure SFCFS. Edit the values of the response file variables as necessary. To configure optional features, you must define appropriate values for all the response file variables that are related to the optional feature. See Response file variables to configure Storage Foundation Cluster File System on page 385.
Start the configuration from the system to which you copied the response file. For example:
# /opt/VRTS/install/installsfcfs -responsefile /tmp/response_file
1 2 3
Make sure the systems where you want to upgrade SFCFS meet the upgrade requirements. Make sure the pre-upgrade tasks are completed. Copy the response file to one of the cluster systems where you want to upgrade SFCFS. Edit the values of the response file variables as necessary.
382
5 6
Mount the product disk, and navigate to the folder that contains the installation program. Start the upgrade from the system to which you copied the response file. For example:
# ./installer -responsefile /tmp/response_file # ./installsfcfs -responsefile /tmp/response_file
1 2
Make sure that you meet the prerequisites to uninstall SFCFS. Copy the response file to one of the cluster systems where you want to uninstall SFCFS. Edit the values of the response file variables as necessary. Start the uninstallation from the system to which you copied the response file. For example:
# /opt/VRTS/install/uninstallsfcfs -responsefile /tmp/response_file
3 4
Response files Response file variables to install, upgrade, or uninstall Storage Foundation Cluster File System
383
Response file variables to install, upgrade, or uninstall Storage Foundation Cluster File System
Table B-1 lists the response file variables that you can define to configure SFCFS. Table B-1 Response file variables specific to installing, upgrading, or uninstalling SFCFS Description
Installs SFCFS RPMs. Configuration can be performed at a later time using the -configure option. List or scalar: scalar Optional or required: optional CFG{accepteula} Specifies whether you agree with the EULA.pdf file on the media. List or scalar: scalar Optional or required: required $CFG{opt}{vxkeyless} Installs the product with keyless license. List of scalar: scalar Optional or required: optional CFG{systems} List of systems on which the product is to be installed or uninstalled. List or scalar: list Optional or required: required CFG{systemscfs} List of systems for configuration if secure environment prevents the installer to install SFCFS on all systems at once. List or scalar: list Optional or required: required CFG{prod} Defines the product to be installed or uninstalled. List or scalar: scalar Optional or required: required
Variable
CFG{opt}{install}
384
Response files Response file variables to install, upgrade, or uninstall Storage Foundation Cluster File System
Table B-1
Response file variables specific to installing, upgrading, or uninstalling SFCFS (continued) Description
Defines the location of an ssh keyfile that is used to communicate with all remote systems. List or scalar: scalar Optional or required: optional
Variable
CFG{opt}{keyfile}
CFG{at_rootdomain}
Defines the name of the system where the root broker is installed. List or scalar: scalar Optional or required: optional
CFG{opt}{pkgpath}
Defines a location, typically an NFS mount, from which all remote systems can install product RPMs. The location must be accessible from all target systems. List or scalar: scalar Optional or required: optional
CFG{opt}{tmppath}
Defines the location where a working directory is created to store temporary files and the RPMs that are needed during the install. The default location is /var/tmp. List or scalar: scalar Optional or required: optional
CFG{opt}{rsh}
Defines that rsh must be used instead of ssh as the communication method between systems. List or scalar: scalar Optional or required: optional
CFG{donotinstall} {RPM}
Instructs the installation to not install the optional RPMs in the list. List or scalar: list Optional or required: optional
CFG{donotremove} {RPM}
Instructs the uninstallation to not remove the optional RPMs in the list. List or scalar: list Optional or required: optional
Response files Response file variables to configure Storage Foundation Cluster File System
385
Table B-1
Response file variables specific to installing, upgrading, or uninstalling SFCFS (continued) Description
Mentions the location where the log files are to be copied. The default location is /opt/VRTS/install/logs. List or scalar: scalar Optional or required: optional
Variable
CFG{opt}{logpath}
$CFG{opt}{prodmode}
List of modes for product List or scalar: list Optional or required: optional
CFG{opt}{upgrade}
Upgrades all RPMs installed, without configuration. List or scalar: list Optional or required: optional
CFG{opt}{uninstall}
Variable
CFG{opt}{configure}
Description
Performs the configuration if the RPMs are already installed. (Required)
CFG{accepteula}
Scalar
386
Response files Response file variables to configure Storage Foundation Cluster File System
Table B-2
Response file variables specific to configuring Storage Foundation Cluster File System (continued) List or Scalar
List
Variable
CFG{systems}
Description
List of systems on which the product is to be configured. (Required)
CFG{prod}
Scalar
CFG{opt}{keyfile}
Scalar
Defines the location of an ssh keyfile that is used to communicate with all remote systems. (Optional)
CFG{opt}{rsh}
Scalar
Defines that rsh must be used instead of ssh as the communication method between systems. (Optional)
CFG{opt}{logpath}
Scalar
Mentions the location where the log files are to be copied. The default location is /opt/VRTS/install/logs.
Response files Response file variables to configure Storage Foundation Cluster File System
387
Note that some optional variables make it necessary to define other optional variables. For example, all the variables that are related to the cluster service group (the csgnic, csgvip, and csgnetmask variables) must be defined if any are defined. The same is true for the SMTP notification (the smtpserver, smtprecp, and smtprsev variables), the SNMP trap notification (the snmpport, snmpcons, and snmpcsev variables), and the Global Cluster Option (the gconic, gcovip, and gconetmask variables). Table B-3 lists the response file variables that specify the required information to configure a basic Storage Foundation Cluster File System cluster. Table B-3 Response file variables specific to configuring a basic Storage Foundation Cluster File System cluster List or Scalar
Scalar
Variable
CFG{vcs_clusterid}
Description
An integer between 0 and 65535 that uniquely identifies the cluster. (Required)
CFG{vcs_clustername}
Scalar
CFG{vcs_allowcomms}
Scalar
Indicates whether or not to start LLT and GAB when you set up a single-node cluster. The value can be 0 (do not start) or 1 (start). (Required)
$CFG{fencingenabled}
Scalar
In a Storage Foundation Cluster File System configuration, defines if fencing is enabled. Valid values are 0 or 1. (Required)
Table B-4 lists the response file variables that specify the required information to configure LLT over Ethernet.
388
Response files Response file variables to configure Storage Foundation Cluster File System
Table B-4
Response file variables specific to configuring private LLT over Ethernet List or Scalar
Scalar
Variable
CFG{vcs_lltlink#} {"system"}
Description
Defines the NIC to be used for a private heartbeat link on each system. Two LLT links are required per system (lltlink1 and lltlink2). You can configure up to four LLT links. You must enclose the system name within double quotes. (Required)
CFG{vcs_lltlinklowpri#} {"system"}
Scalar
Defines a low-priority heartbeat link. Typically, lltlinklowpri is used on a public network link to provide an additional layer of communication. If you use different media speed for the private NICs, you can configure the NICs with lesser speed as low-priority links to enhance LLT performance. For example, lltlinklowpri1, lltlinklowpri2, and so on. You must enclose the system name within double quotes. (Optional)
Table B-5 lists the response file variables that specify the required information to configure LLT over UDP. Table B-5 Variable
CFG{lltoverudp}=1
Response file variables specific to configuring LLT over UDP List or Scalar
Scalar
Description
Indicates whether to configure heartbeat link using LLT over UDP. (Required)
Response files Response file variables to configure Storage Foundation Cluster File System
389
Table B-5
Response file variables specific to configuring LLT over UDP (continued) List or Scalar
Scalar
Variable
CFG{vcs_udplink<n>_address} {<system1>}
Description
Stores the IP address (IPv4 or IPv6) that the heartbeat link uses on node1. You can have four heartbeat links and <n> for this response file variable can take values 1 to 4 for the respective heartbeat links. (Required)
Scalar
Stores the IP address (IPv4 or IPv6) that the low-priority heartbeat link uses on node1. You can have four low-priority heartbeat links and <n> for this response file variable can take values 1 to 4 for the respective low-priority heartbeat links. (Required)
CFG{vcs_udplink<n>_port} {<system1>}
Scalar
Stores the UDP port (16-bit integer value) that the heartbeat link uses on node1. You can have four heartbeat links and <n> for this response file variable can take values 1 to 4 for the respective heartbeat links. (Required)
Stores the UDP port (16-bit integer value) that the low-priority heartbeat link uses on node1. You can have four low-priority heartbeat links and <n> for this response file variable can take values 1 to 4 for the respective low-priority heartbeat links. (Required)
CFG{vcs_udplink<n>_netmask} {<system1>}
Scalar
Stores the netmask (prefix for IPv6) that the heartbeat link uses on node1. You can have four heartbeat links and <n> for this response file variable can take values 1 to 4 for the respective heartbeat links. (Required)
390
Response files Response file variables to configure Storage Foundation Cluster File System
Table B-5
Response file variables specific to configuring LLT over UDP (continued) List or Scalar
Scalar
Variable
CFG{vcs_udplinklowpri<n> _netmask} {<system1>}
Description
Stores the netmask (prefix for IPv6) that the low-priority heartbeat link uses on node1. You can have four low-priority heartbeat links and <n> for this response file variable can take values 1 to 4 for the respective low-priority heartbeat links. (Required)
Table B-6 lists the response file variables that specify the required information to configure virtual IP for Storage Foundation Cluster File System cluster. Table B-6 Response file variables specific to configuring virtual IP for Storage Foundation Cluster File System cluster List or Scalar
Scalar
Variable
CFG{vcs_csgnic} {system}
Description
Defines the NIC device to use on a system. You can enter all as a system value if the same NIC is used on all systems. (Optional)
CFG{vcs_csgvip}
Scalar
CFG{vcs_csgnetmask}
Scalar
Defines the Netmask of the virtual IP address for the cluster. (Optional)
Table B-7 lists the response file variables that specify the required information to configure the Storage Foundation Cluster File System cluster in secure mode.
Response files Response file variables to configure Storage Foundation Cluster File System
391
Table B-7
Response file variables specific to configuring Storage Foundation Cluster File System cluster in secure mode List or Scalar
Scalar
Variable
CFG{at_rootdomain}
Description
Defines the name of the system where the root broker is installed. (Optional)
CFG{at_rootbroker} CFG{vcs_securitymenuopt}
Scalar Scalar
Defines the root broker's name. Specifies the menu option to choose to configure the cluster in secure mode.
(Optional) CFG{vcs_vssdefport} Scalar Specifies the default port address of the root broker. (Optional) CFG{vcs_roothashpath} Scalar Specifies the path of the root hash file. (Optional) CFG{vcs_ab_prplname} {system} Scalar Specifies the authentication broker's principal name on system. (Optional) CFG{vcs_ab_password} {system} Scalar Specifies the authentication broker's password on system. (Optional) CFG{vcs_blobpath} {system} Scalar Specifies the path of the encrypted BLOB file for system. (Optional)
Table B-8 lists the response file variables that specify the required information to configure VCS users.
392
Response files Response file variables to configure Storage Foundation Cluster File System
Description
List of encoded passwords for VCS users. The value in the list can be "Administrators Operators Guests."
CFG{vcs_userenpw}
Table B-9 lists the response file variables that specify the required information to configure VCS notifications using SMTP. Table B-9 Response file variables specific to configuring VCS notifications using SMTP List or Scalar
Scalar
Variable
CFG{vcs_smtpserver}
Description
Defines the domain-based hostname (example: smtp.symantecexample.com) of the SMTP server to be used for Web notification. (Optional)
CFG{vcs_smtprecp}
List
Response files Response file variables to configure Storage Foundation Cluster File System
393
Table B-9
Response file variables specific to configuring VCS notifications using SMTP (continued) List or Scalar
List
Variable
CFG{vcs_smtprsev}
Description
Defines the minimum severity level of messages (Information, Warning, Error, and SevereError) that listed SMTP recipients are to receive. Note that the ordering of severity levels must match that of the addresses of SMTP recipients. (Optional)
Table B-10 lists the response file variables that specify the required information to configure VCS notifications using SNMP. Table B-10 Response file variables specific to configuring VCS notifications using SNMP List or Scalar
Scalar
Variable
CFG{vcs_snmpport}
Description
Defines the SNMP trap daemon port (default=162). (Optional)
CFG{vcs_snmpcons}
List
CFG{vcs_snmpcsev}
List
Defines the minimum severity level of messages (Information, Warning, Error, and SevereError) that listed SNMP consoles are to receive. Note that the ordering of severity levels must match that of the SNMP console system names. (Optional)
Table B-11 lists the response file variables that specify the required information to configure Storage Foundation Cluster File System global clusters.
394
Table B-11
Response file variables specific to configuring Storage Foundation Cluster File System global clusters List or Scalar
Scalar
Variable
CFG{vcs_gconic} {system}
Description
Defines the NIC for the Virtual IP that the Global Cluster Option uses. You can enter all as a system value if the same NIC is used on all systems. (Optional)
CFG{vcs_gcovip}
Scalar
Defines the virtual IP address to that the Global Cluster Option uses. (Optional)
CFG{vcs_gconetmask}
Scalar
Defines the Netmask of the virtual IP address that the Global Cluster Option uses. (Optional)
our %CFG; $CFG{accepteula}=1; $CFG{opt}{rsh}=1; $CFG{opt}{trace}=0; $CFG{opt}{gco}=1; $CFG{opt}{vvr}=1; $CFG{opt}{install}=1; $CFG{opt}{installallpkgs}=1; $CFG{prod}="SFCFS51SP1"; $CFG{systems}=[ qw( system01 system02 ) ]; $CFG{opt}{logpath}="/opt/VRTS/install/logs/installsfcfs-xxxxxx/installsfcfs-xxxxxx.response"; 1;
395
our %CFG; $CFG{accepteula}=1; $CFG{opt}{rsh}=1; $CFG{opt}{trace}=0; $CFG{vcs_allowcomms}=1; $CFG{opt}{gco}=1; $CFG{opt}{vvr}=1; $CFG{opt}{configure}=1; $CFG{prod}="SFCFS51SP1"; $CFG{systems}=[ qw( system01 system02 ) ]; $CFG{sfcfs_cvmtimeout}=200; $CFG{sfcfs_fencingenabled}=0; $CFG{vm_newnames_file}{system01}=0; $CFG{vm_restore_cfg}{system01}=0; $CFG{vm_newnames_file}{system02}=0; $CFG{vm_restore_cfg}{system02}=0; $CFG{vcs_clusterid}=127; $CFG{vcs_clustername}="uxrt5_lin"; $CFG{vcs_username}=[ qw(admin operator) ]; $CFG{vcs_userenpw}=[ qw(JlmElgLimHmmKumGlj bQOsOUnVQoOUnTQsOSnUQuOUnPQtOS) ]; $CFG{vcs_userpriv}=[ qw(Administrators Operators) ]; $CFG{vcs_lltlink1}{system01}="eth1"; $CFG{vcs_lltlink2}{system01}="eth2"; $CFG{vcs_lltlink1}{system02}="eth1"; $CFG{vcs_lltlink2}{system02}="eth2"; $CFG{vcs_enabled}=1; $CFG{opt}{logpath}="/opt/VRTS/install/logs/installsfcfs-xxxxxx/installsfcfs-xxxxxx.response"; 1;
396
Appendix
Configuring I/O fencing using response files Response file variables to configure disk-based I/O fencing Sample response file for configuring disk-based I/O fencing Response file variables to configure server-based I/O fencing Sample response file for configuring server-based I/O fencing Response file variables to configure non-SCSI3 server-based I/O fencing Sample response file for configuring non-SCSI3 server-based I/O fencing
1 2
Make sure that Storage Foundation Cluster File System is configured. Based on whether you want to configure disk-based or server-based I/O fencing, make sure you have completed the preparatory tasks. See About planning to configure I/O fencing on page 96.
398
Configuring I/O fencing using a response file Response file variables to configure disk-based I/O fencing
Copy the response file to one of the cluster systems where you want to configure I/O fencing. See Sample response file for configuring disk-based I/O fencing on page 399. See Sample response file for configuring server-based I/O fencing on page 402.
Edit the values of the response file variables as necessary. See Response file variables to configure disk-based I/O fencing on page 398. See Response file variables to configure server-based I/O fencing on page 400.
Start the configuration from the system to which you copied the response file. For example:
# /opt/VRTS/install/installsfcfs -responsefile /tmp/response_file
Response file variables specific to configuring disk-based I/O fencing List or Scalar Description
Scalar Performs the I/O fencing configuration. (Required)
CFG{vxfen_config_fencing_option} Scalar
Specifies the I/O fencing configuration mode. 1Coordination Point Server-based I/O fencing 2Coordinator disk-based I/O fencing 3Disabled mode
(Required)
Configuring I/O fencing using a response file Sample response file for configuring disk-based I/O fencing
399
Table C-1
Response file variables specific to configuring disk-based I/O fencing (continued) List or Scalar Description
Scalar Specifies the I/O fencing mechanism. This variable is not required if you had configured fencing in disabled mode. For disk-based fencing, you must configure the vxfen_config _fencing_mechanism variable and either the vxfen_config_fencing_dg variable or the vxfen_config _fencing_newdg_disks variable. (Optional)
Variable
CFG {vxfen_config _fencing_mechanism}
CFG{vxfen_config_fencing_dg}
Scalar
400
Configuring I/O fencing using a response file Response file variables to configure server-based I/O fencing
See Response file variables to configure disk-based I/O fencing on page 398.
# # Configuration Values: # our %CFG; $CFG{opt}{configure}=1; $CFG{opt}{fencing}=1; $CFG{prod}="SFCFS51"; $CFG{systems}=[ qw(galaxy nebula) ]; $CFG{vcs_clusterid}=13221; $CFG{vcs_clustername}="clus1"; $CFG{vxfen_config_fencing_dg}="fendg"; $CFG{vxfen_config_fencing_mechanism}="dmp"; $CFG{vxfen_config_fencing_newdg_disks}= [ qw(sdx sdy sdz) ]; $CFG{vxfen_config_fencing_option}=2;
Client cluster fencing (server-based I/O fencing configuration itself) The installer configures server-based customized I/O fencing on the SFCFS cluster without prompting for user input. Disk-based fencing with the disk group already created The installer configures fencing in disk-based mode on the SFCFS cluster without prompting for user input. Disk-based fencing configuration is one in which SCSI-3 disks are used as the only coordination points. Disk-based fencing with the disk group already created means that the disk group consisting of the coordinating disks already exists on the SFCFS cluster nodes. Disk-based fencing with the disk group to be created The installer creates the disk group and configures fencing properly on all the nodes in the SFCFS cluster without user intervention.
Configuring I/O fencing using a response file Response file variables to configure server-based I/O fencing
401
Disk-based fencing with the disk group to be created means that the disk group does not exist yet, but will be created with the disks mentioned as coordination point. Table C-2 lists the fields in the response file that are relevant for server-based customized I/O fencing. Table C-2 CP server response file definitions Definition
Enter '1' or '0' depending upon whether you want to configure the Coordination Point agent using the installer or not. Enter "0" if you do not want to configure the Coordination Point agent using the installer. Enter "1" if you want to use the installer to configure the Coordination Point agent. fencing_cpc_cpagentgrp Name of the service group which will have the Coordination Point agent resource as part of it.
fencing_cpc_reusedg
402
Configuring I/O fencing using a response file Sample response file for configuring server-based I/O fencing
Table C-2
fencing_cpc_disks fencing_cpc_ncps
The disks being used as coordination points if any. Total number of coordination points being used, including both CP servers and disks. The number of disks being used. The port of the CP server that is denoted by cps . The name of the authentication broker (AB) for any one of the SFCFS cluster nodes. The port at which the authentication broker (AB) mentioned above listens for authentication.. The port at which the authentication broker (AB) mentioned above listens for authentication. The disk mechanism that is used by customized fencing. The value for this field is either "raw" or "dmp"
fencing_cpc_cpsabport
fencing_cpc_ccabport
fencing_cpc_mechanism
fencing_cpc_cpsab
The name of the authentication broker (AB) for any one of the CP servers. This field indicates whether security is enabled or not Entering a "1" indicates that security is enabled. Entering a "0" indicates that security has not been enabled.
fencing_cpc_security
Configuring I/O fencing using a response file Response file variables to configure non-SCSI3 server-based I/O fencing
403
$CFG{fencing_cpc_config_cpagent}=0; $CFG{fencing_cpc_cps}=[ qw(10.200.117.145) ]; $CFG{fencing_cpc_dgname}="vxfencoorddg"; $CFG{fencing_cpc_diffab}=0; $CFG{fencing_cpc_disks}=[ qw(emc_clariion0_37 emc_clariion0_13) ]; $CFG{fencing_cpc_mechanism}="raw"; $CFG{fencing_cpc_ncps}=3; $CFG{fencing_cpc_ndisks}=2; $CFG{fencing_cpc_ports}{"10.200.117.145"}=14250; $CFG{fencing_cpc_reusedg}=1; $CFG{fencing_cpc_security}=1; $CFG{opt}{configure}=1; $CFG{opt}{fencing}=1; $CFG{prod}="SFCFS51"; $CFG{systems}=[ qw(galaxy nebula) ]; $CFG{vcs_clusterid}=1256; $CFG{vcs_clustername}="clus1"; $CFG{vxfen_config_fencing_option}=1;
404
Configuring I/O fencing using a response file Response file variables to configure non-SCSI3 server-based I/O fencing
Table C-3
CFG {fencing_cpc_config_cpagent} Enter '1' or '0' depending upon whether you want to configure the Coordination Point agent using the installer or not. Enter "0" if you do not want to configure the Coordination Point agent using the installer. Enter "1" if you want to use the installer to configure the Coordination Point agent. CFG {fencing_cpc_cpagentgrp} Name of the service group which will have the Coordination Point agent resource as part of it.
CFG {fencing_cpc_diffab}
CFG {fencing_cpc_cpsabport}
CFG {fencing_cpc_ccabport}
CFG {fencing_cpc_cpsab}
Configuring I/O fencing using a response file Sample response file for configuring non-SCSI3 server-based I/O fencing
405
Table C-3
406
Configuring I/O fencing using a response file Sample response file for configuring non-SCSI3 server-based I/O fencing
Appendix
About configuring secure shell or remote shell communication modes before installing products Configuring and enabling ssh Restarting the ssh session Enabling rsh for Linux
About configuring secure shell or remote shell communication modes before installing products
Establishing communication between nodes is required to install Veritas software from a remote system, or to install and configure a cluster. The node from which the installer is run must have permissions to run rsh (remote shell) or ssh (secure shell) utilities. You need to run the installer with superuser privileges on the systems where you plan to install Veritas software. You can install products to remote systems using either secure shell (ssh) or remote shell (rsh). Symantec recommends that you use ssh as it is more secure than rsh. This section contains an example of how to set up ssh password free communication. The example sets up ssh between a source system (system1) that
408
Configuring the secure shell or the remote shell for communications Configuring and enabling ssh
contains the installation directories, and a target system (system2). This procedure also applies to multiple target systems.
authorized_keys file
Read the ssh documentation and online manual pages before enabling ssh. Contact your operating system support provider for issues regarding ssh configuration. Visit the OpenSSH website that is located at: http://openssh.org to access online manuals and other resources.
Configuring the secure shell or the remote shell for communications Configuring and enabling ssh
409
On the source system (system1), log in as root, and navigate to the root directory.
system1 # cd /root
To generate a DSA key pair on the source system, type the following command:
system1 # ssh-keygen -t dsa
3 4
Press Enter to accept the default location of /root/.ssh/id_dsa. When the program asks you to enter the passphrase, press the Enter key twice.
Enter passphrase (empty for no passphrase):
410
Configuring the secure shell or the remote shell for communications Configuring and enabling ssh
To append the public key from the source system to the authorized_keys file on the target system, using secure file transfer
From the source system (system1), move the public key to a temporary file on the target system (system2). Use the secure file transfer program. In this example, the file name id_dsa.pub in the root directory is the name for the temporary file for the public key. Use the following command for secure file transfer:
system1 # sftp system2
If the secure file transfer is set up for the first time on this system, output similar to the following lines is displayed:
Connecting to system2 ... The authenticity of host 'system2 (10.182.00.00)' can't be established. DSA key fingerprint is fb:6f:9f:61:91:9d:44:6b:87:86:ef:68:a6:fd:88:7d. Are you sure you want to continue connecting (yes/no)?
3 4
Enter the root password of system2. At the sftp prompt, type the following command:
sftp> put /root/.ssh/id_dsa.pub
Configuring the secure shell or the remote shell for communications Configuring and enabling ssh
411
Add the id_dsa.pub keys to the authorized_keys file on the target system. To begin the ssh session on the target system (system2 in this example), type the following command on system1:
system1 # ssh system2
When you install from a source system that is also an installation target, also add the local system id_dsa.pub key to the local authorized_keys file. The installation can fail if the installation source system is not authenticated. To add the local system id_dsa.pub key to the local authorized_keys file, enter the following command:
system1 # cat /root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keys
Run the following commands on the source installation system. If your ssh session has expired or terminated, you can also run these commands to renew the session. These commands bring the private key into the shell environment and make the key globally available to the user root:
system1 # exec /usr/bin/ssh-agent $SHELL system1 # ssh-add Identity added: /root/.ssh/id_dsa
This shell-specific step is valid only while the shell is active. You must execute the procedure again if you close the shell during the session. To verify that you can connect to a target system
2 3
The command should execute from the source system (system1) to the target system (system2) without the system requesting a passphrase or password. Repeat this procedure for each target system.
412
Configuring the secure shell or the remote shell for communications Restarting the ssh session
After a terminal session is closed After a new terminal session is opened After a system is restarted After too much time has elapsed, to refresh ssh
To restart ssh
On the source installation system (system1), bring the private key into the shell environment.
system1 # exec /usr/bin/ssh-agent $SHELL
To ensure that the rsh and rsh-server packages are installed, type the following command:
# rpm -qa | grep -i rsh
If it is not already in the file, type the following command to append the line "rsh" to the /etc/securetty file:
# echo "rsh" >> /etc/securetty
Configuring the secure shell or the remote shell for communications Enabling rsh for Linux
413
In the /etc/pam.d/rsh file, change the "auth" type from "required" to "sufficient":
auth sufficient
4 5
Add the "promiscuous" flag into /etc/pam.d/rsh and /etc/pam.d/rlogin after item pam_rhosts_auth.so. To enable the rsh server, type the following command:
# chkconfig rsh on
Modify the .rhosts file. Each line of the .rhosts file contains a fully qualified domain name or IP address for each remote system. This file also contains the name of a user having access to the local system. For example, if the root user must remotely access system1 from system2, add an entry for system2.companyname.com to the .rhosts file on system1 by typing the following command:
# echo "system2.companyname.com" >> $HOME/.rhosts
To disable rsh
1 2
Remove the "rsh" entry in the /etc/securetty file. Disable the rsh server by typing the following command:
# chkconfig rsh off
After you complete an installation procedure, delete the .rhosts file from each users $HOME directory to ensure security:
# rm -f $HOME/.rhosts
414
Configuring the secure shell or the remote shell for communications Enabling rsh for Linux
Appendix
Veritas Storage Foundation Cluster File System installation RPMs Veritas Cluster Server installation RPMs Veritas Cluster File System installation RPMs Veritas Storage Foundation obsolete and reorganized installation RPMs
416
Storage Foundation Cluster File System components Veritas Storage Foundation Cluster File System installation RPMs
Veritas Array Support Library (ASL) Minimum and Array Policy Module(APM) binaries Required for the support and compatibility of various storage arrays.
VRTSatClient
Symantec Product Authentication Service client The Symantec Product Authentication Service provides authentication services to other Symantec products. It includes server and client components. The client allows Symantec products to communicate with the brokers. Required to use Symantec Product Authentication Service.
All
VRTSatServer
Symantec Product Authentication Service server The Symantec Product Authentication Service provides authentication services to other Symantec products. The server provides services for a root broker, authentication broker, or both. Required to use Symantec Product Authentication Service.
All
VRTSperl VRTSvlic
Perl 5.10.0 for Veritas Veritas License Utilities Installs the license key layout files required to decode the Storage Foundation license keys. Provides the standard license key utilities vxlicrep, vxlicinst, and vxlictest.
Minimum Minimum
VRTSvxfs
Veritas File System binaries Required for VxFS file system support.
Minimum
VRTSvxvm
Minimum
Storage Foundation Cluster File System components Veritas Storage Foundation Cluster File System installation RPMs
417
Veritas Storage Foundation Cluster File System RPMs (continued) Contents Configuration
Veritas Storage Foundation for Oracle Recommended Veritas Enterprise Administrator ODM Driver for VxFS Veritas Extension for Oracle Disk Manager is a custom storage interface designed specifically for Oracle9i and 10g. Oracle Disk Manager allows Oracle 9i and 10g to improve performance and manage system bandwidth. Recommended Recommended
VRTSsfmh
Veritas Storage Foundation Managed Host Discovers configuration information on a Storage Foundation managed host. This information is stored on a central database, which is not part of this release. You must download the database separately at: http://www.symantec.com/business/ storage-foundation-manager
Recommended
VRTSspt VRTSvcsdr
Veritas Software Support Tools Contains the binaries for Veritas Cluster Server disk reservation.
Recommended Recommended
VRTSfssdk
Veritas File System Software Developer All Kit For VxFS APIs, the RPM contains the public Software Developer Kit (headers, libraries, and sample code). It is required if some user programs use VxFS APIs.
VRTSlvmconv
Symantec Logical Volume Manager (LVM) volume converter Converts offline Linux LVM managed volumes to VxVM volumes by rearranging media contents.
All
418
Storage Foundation Cluster File System components Veritas Cluster Server installation RPMs
Configuration
Minimum
VRTSllt
Minimum
VRTSamf
Minimum
Minimum
Veritas Cluster Server Bundled Agents Minimum Veritas I/O Fencing Consolidated database and enterprise agent RPMs Veritas Coordination Point Server The Coordination Point Server is an alternate mechanism for I/O fencing. It implements I/O fencing through a client/server architecture and can provide I/O fencing for multiple VCS clusters. Minimum Recommended
VRTScps
All
Storage Foundation Cluster File System components Veritas Storage Foundation obsolete and reorganized installation RPMs
419
whichRPMs to install based whether you want the minimum, recommended, or advanced configuration. When you install all CFS RPMs and all the RPMs that comprise Storage Foundation and Veritas Cluster Server, the resulting functionality is called Storage Foundation Cluster File System. See Veritas Storage Foundation Cluster File System installation RPMs on page 415. See Veritas Cluster Server installation RPMs on page 418. Table E-3 RPM
VRTScavf
Veritas Cluster Server Agents for Minimum Storage Foundation Cluster File System Veritas Group Lock Manager for Minimum Storage Foundation Cluster File System Veritas Group Messaging Services for Recommended Storage Foundation Cluster File System
VRTSglm
VRTSgms
420
Storage Foundation Cluster File System components Veritas Storage Foundation obsolete and reorganized installation RPMs
Table E-4
RPM
VRTSmh VRTSobc33 VRTSobweb VRTSobgui VRTSpbx VRTSsfm VRTSweb Product RPMs VRTSacclib
Obsolete The following information is for installations, upgrades, and uninstallations using the script- or Web-based installer. For fresh installations VRTSacclib is not installed. For upgrades, VRTSacclib is not uninstalled. For uninstallation, VRTSacclib is not uninstalled.
VRTSalloc VRTScmccc VRTScmcm VRTScmcs VRTScscm VRTScscw VRTScsocw VRTScssim VRTScutil VRTSd2gui-common
Obsolete Obsolete Obsolete Obsolete Obsolete Obsolete Obsolete Obsolete Obsolete Included in VRTSdbed
Storage Foundation Cluster File System components Veritas Storage Foundation obsolete and reorganized installation RPMs
421
Table E-4
RPM
VRTSdb2ed-common VRTSdbcom-common VRTSdbed-common VRTSdcli VRTSddlpr VRTSdsa VRTSfsman VRTSfsmnd VRTSfspro VRTSmapro-common VRTSodm-common VRTSodm-platform VRTSorgui-common VRTSvcsdb VRTSvcsmn VRTSvcsor VRTSvcsvr VRTSvdid VRTSvmman VRTSvmpro VRTSvrpro VRTSvrw VRTSvxfs-common VRTSvxfs-platform
422
Storage Foundation Cluster File System components Veritas Storage Foundation obsolete and reorganized installation RPMs
Table E-4
RPM
VRTSvxmsa VRTSvxvm-common VRTSvxvm-platform Documentation
Appendix
About agents Enabling and disabling intelligent resource monitoring CVMCluster agent CVMVxconfigd agent CVMVolDg agent CFSMount agent CFSfsckd agent
About agents
An agent is defined as a process that starts, stops, and monitors all configured resources of a type, and reports their status to Veritas Cluster Server (VCS). Agents have both entry points and attributes. Entry points are also known as agent functions and are referred to as "agent functions" throughout the document. Attributes contain data about the agent. An attribute has a definition and a value. You change attribute values to configure resources, which are defined as the individual components that work together to provide application services to the public network. For example, a resource may be a physical component such as a disk or a network interface card, a software component such as Oracle or a Web server, or a configuration component such as an IP address or mounted file system.
424
High availability agent information Enabling and disabling intelligent resource monitoring
Attributes are either optional or required, although sometimes the attributes that are optional in one configuration may be required in other configurations. Many optional attributes have predefined or default values, which you should change as required. A variety of internal use only attributes also exist. Do not modify these attributesmodifying them can lead to significant problems for your clusters. Attributes have type and dimension. Some attribute values can accept numbers, others can accept alphanumeric values or groups of alphanumeric values, while others are simple boolean on/off values. The entry points and attributes for each SFCFS agent are described in this appendix.
CVMCluster agent CVMVxconfigd agent CVMVolDg agent CFSMount agent CFSfsckd Coordination Point agent
An SFCFS installation automatically configures the CVMCluster resource and the CVMVxconfigd resource. You must configure the CVMVolDg agent for each shared disk group. If the database uses cluster file systems, configure the CFSMount agent for each volume in the disk group. Use the information in this appendix about the entry points and attributes of the listed agents to make necessary configuration changes. For information on how to modify the VCS configuration: See the Veritas Cluster Server Administrators Guide
High availability agent information Enabling and disabling intelligent resource monitoring
425
Change the values of the MonitorFreq key and the RegisterRetryLimit key of the IMF attribute. Review the agent-specific recommendations in the attribute definition tables to set these attribute key values. See Attribute definition for CVMVxconfigd agent on page 430. See Attribute definition for CFSMount agent on page 438. See Attribute definition for CFSfsckd agent on page 444.
Make sure that the AMF kernel driver is configured on all nodes in the cluster.
/etc/init.d/amf status
Configure the AMF driver if the command output returns that the AMF driver is not loaded or not configured. See Administering the AMF kernel driver on page 426.
426
High availability agent information Enabling and disabling intelligent resource monitoring
To disable intelligent resource monitoring for all the resources of a certain type, run the following command:
hatype -modify resource_type IMF -update Mode 0
To disable intelligent resource monitoring for a specific resource, run the following command:
hares -override resource_name IMF hares -modify resource_name IMF -update Mode 0
427
CVMCluster agent
The CVMCluster agent controls system membership on the cluster port that is associated with Veritas Volume Manager (VxVM). The CVMCluster agent performs the following functions:
Joins a node to the CVM cluster port. Removes a node from the CVM cluster port. Monitors the node's cluster membership state.
Offline Monitor
Description
Name of the cluster. List of host names and IP addresses. Associative list. The first part names the system; the second part contains the LLT ID number for the system.
428
Description
Specifies the cluster messaging mechanism. Default = gab
PortKmsgd
integer-scalar
CVMTimeout
integer-scalar
Note: The attributes CVMNodeAddr, PortConfigd, and PortKmsgd are not used in an SFCFS environment. GAB, the required cluster communication messaging mechanism, does not use them.
429
CVMVxconfigd agent
The CVMVxconfigd agent starts and monitors the vxconfigd daemon. The vxconfigd daemon maintains disk and disk group configurations, communicates configuration changes to the kernel, and modifies the configuration information that is stored on disks. CVMVxconfigd must be present in the CVM service group. The CVMVxconfigd agent is an OnOnly agent; the agent starts the resource when the cluster starts up and VCS restarts the resource when necessary. The Operations attribute specifies these default aspects of startup. Symantec recommends starting the vxconfigd daemon with the syslog option, which enables logging of debug messages. Note that the SFCFS installation configures the syslog option for the CVMVxconfigd agent. This agent is IMF-aware and uses asynchronous monitoring framework (AMF) kernel driver for IMF notification. For more information about the Intelligent Monitoring Framework (IMF) and intelligent resource monitoring, refer to the Veritas Cluster Server Administrators Guide.
430
imf_getnotification
imf_register
Description
List of the arguments that are sent to the online entry point. Symantec recommends always specifying the syslog option.
431
Description
432
Valid values are as follows: 0Does not perform intelligent resource monitoring 2Performs intelligent resource monitoring for online resources and performs poll-based monitoring for offline resources Default: 0 MonitorFreq: This key value specifies the frequency at which the agent invokes the monitor agent function. The value of this key is an integer. Default: 1 You can set this key to a non-zero value for cases where the agent requires to perform both poll-based and intelligent resource monitoring. If the value is 0, the agent does not perform poll-based process check monitoring. After the resource registers with the AMF kernel driver, the agent calls the monitor agent function as follows: After every (MonitorFreq x MonitorInterval) number of seconds for online resources After every (MonitorFreq x OfflineMonitorInterval) number of seconds for offline resources RegisterRetryLimit: If you enable intelligent resource monitoring, the agent invokes the oracle_imf_register agent function to register the resource with the AMF kernel driver. The value of the
433
CVMVolDg agent
The CVMVolDg agent manages the CVM disk groups and CVM volumes and volume sets within the disk groups by performing the following functions:
434
Imports the shared disk group from the CVM master node Starts the volumes and volume sets in the disk group Monitors the disk group, volumes, and volume sets Optionally, deports the disk group when the dependent applications are taken offline. The agent deports the disk group only if the appropriate attribute is set.
Configure the CVMVolDg agent for each disk group used by a Oracle service group. A disk group must be configured to only one Oracle service group.If cluster file systems are used for the database, configure the CFSMount agent for each volume or volume set in the disk group.
Offline
Removes the temporary files created by the online entry point. If the CVMDeportOnOffline attribute is set to 1 and if the shared disk group does not contain open volumes on any node in the cluster, the disk group is deported from the CVM master node.
435
Note: If the CFSMount resource goes offline and the file system
on the volume set is unmounted, the agent retains the online state of the volume set even if the file system metadata volume in the volume set is offline. This is because the CVMVolDg agent is unable to determine whether or not the volumes that are offline are metadata volumes. Clean Removes the temporary files created by the online entry point.
Description
Shared disk group name. Name of shared volumes or volume sets. This list is used to check that the volumes or volume sets are in the correct state before allowing the resource to come online, and that the volumes remain in an enabled state. Activation mode for the disk group. Default = sw (shared-write) This is a localized attribute.
CVMActivation (required)
string-scalar
436
CVMVolumeIoTest(optional) string-keylist
CVMDeportOnOffline (optional)
integer-scalar
437
CFSMount agent
The CFSMount agent brings online, takes offline, and monitors a cluster file system mount point. The agent executable is located in /opt/VRTSvcs/bin/CFSMount/CFSMountAgent. The CFSMount type definition is described in the /etc/VRTSvcs/conf/config/CFSTypes.cf file.
438
This agent is IMF-aware and uses asynchronous monitoring framework (AMF) kernel driver for IMF notification. For more information about the Intelligent Monitoring Framework (IMF) and intelligent resource monitoring, refer to the Veritas Cluster Server Administrators Guide.
Monitor
Clean imf_init
imf_ getnotification
imf_register
Description
Directory for the mount point. Block device for the mount point.
439
Description
List of nodes on which to mount. If NodeList is NULL, the agent uses the service group system list.
440
Description
441
Valid values are as follows: 0Does not perform intelligent resource monitoring 1Performs intelligent resource monitoring for offline resources and performs poll-based monitoring for online resources 2Performs intelligent resource monitoring for online resources and performs poll-based monitoring for offline resources 3Performs intelligent resource monitoring for both online and for offline resources Default: 0 MonitorFreq: This key value specifies the frequency at which the agent invokes the monitor agent function. The value of this key is an integer. Default: 1 You can set this key to a non-zero value for cases where the agent requires to perform both poll-based and intelligent resource monitoring. If the value is 0, the agent does not perform poll-based process check monitoring. After the resource registers with the AMF kernel driver, the agent calls the monitor agent function as follows: After every (MonitorFreq x MonitorInterval) number of seconds for online resources
442
See Enabling and disabling intelligent resource monitoring on page 424. MountOpt (optional) string-scalar Options for the mount command. To create a valid MountOpt attribute string:
Do not use the -o flag to specify the VxFS-specific options. Do not use the -t vxfs file system type option.
Be aware the cluster option is not required. Specify options in comma-separated list: ro ro,cluster blkclear,mincache=closesync
Policy (optional)
string-scalar
List of nodes to assume the primaryship of the cluster file system if the primary fails. If set to NULL or if none of the hosts specified in the list is active when the primary fails, a node is randomly selected from the set of active nodes to assume primaryship.
443
type CFSMount ( static keylist RegList = { MountOpt, Policy, NodeList, ForceOff, SetPrimary } static keylist SupportedActions = { primary } static int FaultOnMonitorTimeouts = 1 static int OnlineWaitLimit = 1 static str ArgList[] = { MountPoint, BlockDevice, MountOpt, Primary, AMFMountType } str MountPoint str MountType str BlockDevice str MountOpt keylist NodeList keylist Policy temp str Primary str SetPrimary temp str RemountRes temp str AMFMountType str ForceOff )
CFSfsckd agent
The CFSfsckd agent starts, stops, and monitors the vxfsckd process. The CFSfsckd agent executable is /opt/VRTSvcs/bin/CFSfsckd/CFSfsckdAgent. The type definition is in the /etc/VRTSvcs/conf/config/CFSTypes.cf file. The configuration is added to the main.cf file after running the cfscluster config command. This agent is IMF-aware and uses asynchronous monitoring framework (AMF) kernel driver for IMF notification. For more information about the Intelligent Monitoring Framework (IMF) and intelligent resource monitoring, refer to the Veritas Cluster Server Administrators Guide.
444
imf_ getnotification
imf_register
445
Description
446
Valid values are as follows: 0Does not perform intelligent resource monitoring 1Performs intelligent resource monitoring for offline resources and performs poll-based monitoring for online resources 2Performs intelligent resource monitoring for online resources and performs poll-based monitoring for offline resources 3Performs intelligent resource monitoring for both online and for offline resources Default: 0 MonitorFreq: This key value specifies the frequency at which the agent invokes the monitor agent function. The value of this key is an integer. Default: 1 You can set this key to a non-zero value for cases where the agent requires to perform both poll-based and intelligent resource monitoring. If the value is 0, the agent does not perform poll-based process check monitoring. After the resource registers with the AMF kernel driver, the agent calls the monitor agent function as follows: After every (MonitorFreq x MonitorInterval) number of seconds for online resources
447
448
Appendix
Troubleshooting information
This appendix includes the following topics:
Restarting the installer after a failed connection What to do if you see a licensing reminder Troubleshooting information Storage Foundation Cluster File System installation issues Storage Foundation Cluster File System problems
450
License Agreement (EULA) you must complete one of the two options set forth below. To comply with this condition of the EULA and stop logging of this message, you have <nn> days to either: - make this host managed by a Management Server (see http://go.symantec.com/sfhakeyless for details and free download), or - add a valid license key matching the functionality in use on this host using the command 'vxlicinst'
To comply with the terms of the EULA, and remove these messages, you must do one of the following within 60 days:
Install a valid license key corresponding to the functionality in use on the host. See Installing Veritas product license keys on page 56. After you install the license key, you must validate the license key using the following command:
# vxkeyless display
Continue with keyless licensing by managing the server or cluster with a management server. For more information about keyless licensing, see the following URL: http://go.symantec.com/sfhakeyless
Troubleshooting information
The VRTSspt package provides a group of tools for troubleshooting a system and collecting information on its configuration. The tools can gather Veritas File System and Veritas Volume Manager metadata information and establish various benchmarks to measure file system and volume manager performance. Although the tools are not required for the operation of any Veritas product, Symantec recommends installing them should a support case be needed to be opened with Symantec Support. If you are unfamiliar with their use and purpose, use caution when using them or use them in concert with Symantec Support.
451
Failed to setup rsh communication on 10.198.89.241: 'rsh 10.198.89.241 <command>' failed Trying to setup ssh communication on 10.198.89.241. Failed to setup ssh communication on 10.198.89.241: Login denied Failed to login to remote system(s) 10.198.89.241. Please make sure the password(s) are correct and superuser(root) can login to the remote system(s) with the password(s). If you want to setup rsh on remote system(s), please make sure rsh with command argument ('rsh <host> <command>') is not denied by remote system(s). Either ssh or rsh is needed to be setup between the local node and 10.198.89.241 for communication Would you like the installer to setup ssh/rsh communication automatically between the nodes? Superuser passwords for the systems will be asked. [y,n,q] (y) n System verification did not complete successfully The following errors were discovered on the systems: The ssh permission denied on 10.198.89.241 rsh exited 1 on 10.198.89.241 either ssh or rsh is needed to be setup between the local node and 10.198.89.241 for communication
Suggested solution: You need to set up the systems to allow remote access using ssh or rsh. See About configuring secure shell or remote shell communication modes before installing products on page 407. Note: Remove remote shell permissions after completing the SFCFS installation and configuration.
452
Inaccessible system
The system you specified is not accessible. This could be for a variety of reasons such as, the system name was entered incorrectly or the system is not available over the network.
Verifying systems: 12% .................................... Estimated time remaining: 0:10 1 of 8 Checking system communication .............................. Done System verification did not complete successfully The following errors were discovered on the systems: cannot resolve hostname host1 Enter the Linux system names separated by spaces: q,? (host1)
Suggested solution: Verify that you entered the system name correctly; use the ping(1M) command to verify the accessibility of the host.
Unmount failures
The umount command can fail if a reference is being held by an NFS server. Unshare the mount point and try the unmount again.
Mount failures
Mounting a file system can fail for the following reasons:
The file system is not using disk layout Version 6 or 7. The mount options do not match the options of already mounted nodes. A cluster file system is mounted by default with the qio option enabled if the node has a Quick I/O for Databases license installed, even if the qio mount option was not explicitly specified. If the Quick I/O license is not installed, a cluster file system is mounted without the qio option enabled. So if some nodes in the cluster have a Quick I/O license installed and others do not, a cluster mount can succeed on some nodes and fail on others due to different mount options. To avoid this situation, ensure that Quick I/O licensing is uniformly
453
applied, or be careful to mount the cluster file system with the qio/noqio option appropriately specified on each node of the cluster. See the mount(1M) manual page.
A shared CVM volume was not specified. The device is still mounted as a local file system somewhere on the cluster. Unmount the device. The fsck or mkfs command is being run on the same volume from another node, or the volume is mounted in non-cluster mode from another node. The vxfsckd daemon is not running. This typically happens only if the CFSfsckd agent was not started correctly. If mount fails with an error message:
vxfs mount: cannot open mnttab /etc/mnttab is missing or you do not have root privileges.
The device is in use by mount, mkfs or fsck on the same node. This error cannot be generated from another node in the cluster.
If you try to mount a file system that is already mounted without -o cluster option (that is, not in shared mode) on another cluster node,
# mount -t vxfs /dev/vx/dsk/share/vol01 /vol01
Command failures
This section describes command failures.
454
Manual pages not accessible with the man command. Set the MANPATH environment variable appropriately. See Setting environment variables on page 33. The mount, fsck, and mkfs utilities reserve a shared volume. They fail on volumes that are in use. Be careful when accessing shared volumes with other utilities such as dd, it is possible for these commands to destroy data on the disk. Running some commands, such as vxupgrade -n 7 /vol02, can generate the following error message:
vxfs vxupgrade: ERROR: not primary in a cluster file system
This means that you can run this command only on the primary, that is, the system that mounted this file system first.
Performance issues
Quick I/O File system performance is adversely affected if a cluster file system is mounted with the qio option enabled, but the file system is not used for Quick I/O files. Because qio is enabled by default, if you do not intend to use a shared file system for Quick I/O, explicitly specify the noqio option when mounting.
455
Jeopardy is a condition where a node in the cluster has a problem connecting to other nodes. In this situation, the link or disk heartbeat may be down, so a jeopardy warning may be displayed. Specifically, this message appears when a node has only one remaining link to the cluster and that link is a network link. This is considered a critical event because the node may lose its only remaining connection to the network. Warning: Do not remove the communication links while shared storage is still connected.
Low memory
Under heavy loads, software that manages heartbeat communication links may not be able to allocate kernel memory. If this occurs, a node halts to avoid any chance of network partitioning. Reduce the load on the node if this happens frequently. A similar situation may occur if the values in the /etc/llttab files on all cluster nodes are not correct or identical.
456
Appendix
Installer cannot create UUID for the cluster The vxfentsthdw utility fails when SCSI TEST UNIT READY command fails Script-based installer cannot start LLT, GAB, VCS, or VxFEN on a newly added node Troubleshooting server-based I/O fencing Troubleshooting server-based fencing on the SFCFS cluster nodes Troubleshooting server-based I/O fencing in mixed mode
You may see the error message during SFCFS configuration, upgrade, or when you add a node to the cluster using the installer. Workaround: To start SFCFS, you must run the uuidconfig.pl script manually to configure the UUID on each cluster node. See the Veritas Cluster Server Administrator's Guide.
458
Troubleshooting cluster installation The vxfentsthdw utility fails when SCSI TEST UNIT READY command fails
The vxfentsthdw utility fails when SCSI TEST UNIT READY command fails
While running the vxfentsthdw utility, you may see a message that resembles as follows:
Issuing SCSI TEST UNIT READY to disk reserved by other node FAILED. Contact the storage provider to have the hardware configuration fixed.
The disk array does not support returning success for a SCSI TEST UNIT READY command when another host has the disk reserved using SCSI-3 persistent reservations. This happens with the Hitachi Data Systems 99XX arrays if bit 186 of the system mode option is not enabled.
Script-based installer cannot start LLT, GAB, VCS, or VxFEN on a newly added node
After you add a node to an existing cluster and try to start the LLT, GAB, VCS, or VxFEN, the module may not start on the new node. Note that the script-based installer does not throw any error messages about the module starting or failing to start. Workaround: To start LLT, GAB, VxFEN, and VCS modify the value of the START and STOP environment variables to 1 in the following files:
You then start LLT, GAB, VxFEN, and VCS on the newly added node in existing cluster.
459
The following files contain logs and text files that may be useful in understanding and troubleshooting a CP server:
If the vxcpserv process fails on the CP server, then review the following diagnostic files:
/var/VRTScps/diag/FFDC_CPS_pid_vxcpserv.log /var/VRTScps/diag/stack_pid_vxcpserv.txt
Note: If the vxcpserv process fails on the CP server, these files are present in addition to a core file. VCS restarts vxcpserv process automatically in such situations. The file /var/VRTSvcs/log/vxfen/vxfend_[ABC].log contains logs and text files that may be useful in understanding and troubleshooting fencing-related issues on a SFCFS cluster (client cluster) node. See Troubleshooting issues related to the CP server service group on page 459. See Checking the connectivity of CP server on page 460. See Issues during fencing startup on SFCFS cluster nodes set up for server-based fencing on page 460. See Issues during online migration of coordination points on page 462. See Troubleshooting server-based I/O fencing in mixed mode on page 463. See Checking keys on coordination points when vxfen_mechanism value is set to cps on page 467.
Verify that the CPSSG service group and its resources are valid and properly configured in the VCS configuration. Check the VCS engine log (/var/VRTSvcs/log/engine_[ABC].log) to see if any of the CPSSG service group resources are FAULTED. Review the sample dependency graphs to make sure the required resources are configured correctly.
460
Troubleshooting cluster installation Troubleshooting server-based fencing on the SFCFS cluster nodes
Run the following command to check whether a CP server is up and running at a process level:
# cpsadm -s cp_server -a ping_cps
where cp_server is the virtual IP address or virtual hostname on which the CP server is listening.
Issues during fencing startup on SFCFS cluster nodes set up for server-based fencing
Table H-1 Issue Fencing startup issues on SFCFS cluster (client cluster) nodes Description and resolution
cpsadm command on If you receive a connection error message after issuing the cpsadm command on the SFCFS the SFCFS cluster gives cluster, perform the following actions: connection error Ensure that the CP server is reachable from all the SFCFS cluster nodes. Check that the SFCFS cluster nodes use the correct CP server virtual IP or virtual hostname and the correct port number. Check the /etc/vxfenmode file. Ensure that the running CP server is using the same virtual IP/virtual hostname and port number.
Troubleshooting cluster installation Troubleshooting server-based fencing on the SFCFS cluster nodes
461
Table H-1
Issue
Authorization failure
Authentication failure
If you had configured secure communication between the CP server and the SFCFS cluster (client cluster) nodes, authentication failure can occur due to the following causes: Symantec Product Authentication Services (AT) is not properly configured on the CP server and/or the SFCFS cluster. The CP server and the SFCFS cluster nodes use the same root broker but the certificate hash of the root broker is not same on the SFCFS cluster and the CP server. Run the following command on both the CP server and the SFCFS cluster to see the certificate hash:
# cpsat showalltrustedcreds
The CP server and the SFCFS cluster nodes use different root brokers, and trust is not established between the authentication brokers:
The hostname of the SFCFS cluster nodes is not the same hostname used when configuring AT. The hostname of the SFCFS cluster nodes must be set to the hostname used when configuring AT. You can view the fully qualified hostname registered with AT using the cpsat showcred command. After entering this command, the hostname appears in the User Name field. The CP server and SFCFS cluster do not have the same security setting. In order to configure secure communication, both the CP server and the SFCFS cluster must have same security setting. In order to have the same security setting, the security parameter must have same value in the /etc/vxcps.conf file on CP server and in the /etc/vxfenmode file on the SFCFS cluster (client cluster) nodes.
462
Troubleshooting cluster installation Troubleshooting server-based fencing on the SFCFS cluster nodes
Table H-1
Issue
Preexisting split-brain
These situations are similar to that of preexisting split-brain with coordinator disks, where the problem is solved by the administrator running the vxfenclearpre command. A similar solution is required in server-based fencing using the cpsadm command. Run the cpsadm command to clear a registration on a CP server: # cpsadm -s cp_server -a unreg_node -c cluster_name -n nodeid where cp_server is the virtual IP address or virtual hostname on which the CP server is listening, cluster_name is the VCS name for the SFCFS cluster, and nodeid specifies the node id of SFCFS cluster node. Ensure that fencing is not already running on a node before clearing its registration on the CP server. After removing all stale registrations, the joiner node will be able to join the cluster.
The /etc/vxfenmode file is not updated on all the SFCFS cluster nodes, because new coordination points on the node were being picked up from an old /etc/vxfenmode file.
463
The coordination points listed in the /etc/vxfenmode file on the different SFCFS cluster nodes are not the same. If different coordination points are listed in the /etc/vxfenmode file on the cluster nodes, then the operation fails due to failure during the coordination point snapshot check. There is no network connectivity from one or more SFCFS cluster nodes to the CP server(s). Cluster, nodes, or users for the SFCFS cluster nodes have not been added on the new CP servers, thereby causing authorization failure.
To obtain I/O fencing cluster information on the coordinator disks, run the following command on one of the cluster nodes:
# vxfenadm -s diskname
464
Any keys other than the valid keys used by the cluster nodes that appear in the command output are spurious keys.
To obtain I/O fencing cluster information on the CP server, run the following command on one of the cluster nodes:
# cpsadm -s cp_server -a list_membership -c cluster_name
where cp server is the virtual IP address or virtual hostname on which the CP server is listening, and cluster name is the VCS name for the SFCFS cluster. Nodes which are not in GAB membership, but registered with CP server indicate a pre-existing network partition. Note that when running this command on the SFCFS cluster nodes, you need to first export the CPS_USERNAME and CPS_DOMAINTYPE variables. The CPS_USERNAME value is the user name which is added for this node on the CP server.
To obtain the user name, run the following command on the CP server:
# cpsadm -s cp_server -a list_users
where cp server is the virtual IP address or virtual hostname on which the CP server is listening. The CPS_DOMAINTYPE value is vx. The following are export variable command examples:
# export CPS_USERNAME=_HA_VCS_test-system@[email protected] # export CPS_DOMAINTYPE=vx
Once a pre-existing network partition is detected using the above commands, all spurious keys on the coordinator disks or CP server must be removed by the administrator.
465
Review the current I/O fencing configuration by accessing and viewing the information in the vxfenmode file. Enter the following command on one of the SFCFS cluster nodes:
# cat /etc/vxfenmode vxfen_mode=customized vxfen_mechanism=cps scsi3_disk_policy=dmp security=0 cps1=[10.140.94.101]:14250 vxfendg=vxfencoorddg
Review the I/O fencing cluster information. Enter the vxfenadm -d command on one of the cluster nodes:
# vxfenadm -d I/O Fencing Cluster Information: ================================ Fencing Fencing Fencing Cluster Protocol Version: 201 Mode: Customized Mechanism: cps Members:
8 (running) 8 (running)
466
Review the SCSI registration keys for the coordinator disks used in the I/O fencing configuration. The variables disk_7 and disk_8 in the following commands represent the disk names in your setup. Enter the vxfenadm -s command on each of the SFCFS cluster nodes.
# vxfenadm -s /dev/vx/rdmp/disk_7
Device Name: /dev/vx/rdmp/disk_7 Total Number Of Keys: 2 key[0]: [Numeric Format]: 86,70,66,69,65,68,48,48 [Character Format]: VFBEAD00 [Node Format]: Cluster ID: 57069 Node ID: 0 key[1]: [Numeric Format]: 86,70,66,69,65,68,48,49 [Character Format]: VFBEAD01 * [Node Format]: Cluster ID: 57069 Node ID: 1
467
Review the CP server information about the cluster nodes. On the CP server, run the cpsadm list nodes command to review a list of nodes in the cluster.
# cpsadm -s cp_server -a list_nodes
where cp server is the virtual IP address or virtual hostname on which the CP server is listening.
Review the CP server list membership. On the CP server, run the following command to review the list membership.
# cpsadm -s cp_server -a list_membership -c cluster_name
where cp_server is the virtual IP address or virtual hostname on which the CP server is listening, and cluster_name is the VCS name for the SFCFS cluster. For example:
# cpsadm -s 10.140.94.101 -a list_membership -c gl-ss2 List of registered nodes: 0 1
For coordinator disks, the disks can be put in a file and then information about them supplied to the vxfenadm command. For example:
# vxfenadm -s all -f file_name
For CP servers, the cpsadm command can be used to obtain the membership of the SFCFS cluster. For example:
# cpsadm -s cp_server -a list_membership -c cluster_name
where cp_server is the virtual IP address or virtual hostname on which CP server is configured, and cluster_name is the VCS name for the SFCFS cluster.
468
Appendix
Two unique client clusters that are served by 3 CP servers: See Figure I-1 on page 470. Client cluster that is served by highly available CP server and 2 SCSI-3 disks: Two node campus cluster that is served be remote CP server and 2 SCSI-3 disks: Multiple client clusters that are served by highly available CP server and 2 SCSI-3 disks:
470
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Configuration diagrams for setting up server-based I/O fencing
In the vxfenmode file on the client nodes, vxfenmode is set to customized with vxfen mechanism set to cps. Figure I-1 Two unique client clusters served by 3 CP servers
VLAN Private network
et ern Eth witch S et ern Eth witch S et ern Eth witch S
GigE
GigE
GigE
GigE
GigE
GigE
Cluster -1 node 1
Cluster-1 node 2
Cluster -2 node 1
GigE
Cluster-2 node 2
A HB
3 C NI vxfenmode= customized
C NI A
mycps3.company.com
CP Server 1
CP Server 2
vxcpserv NIC
vxcpserv NIC
vxcpserv NIC
VIP 1
VIP 2
VIP 3
/etc/VRTScps/db
/etc/VRTScps/db
/etc/VRTScps/db
GigE
NIC 1
NIC 1
NIC 1
NIC 1 NIC 2
NIC 2
NIC 2
NIC 2
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Configuration diagrams for setting up server-based I/O fencing
471
In the vxfenmode file on the client nodes, vxfenmode is set to customized with vxfen mechanism set to cps. The two SCSI-3 disks are part of the disk group vxfencoorddg. The third coordination point is a CP server hosted on an SFHA cluster, with its own shared database and coordinator disks. Figure I-2 Client cluster served by highly available CP server and 2 SCSI-3 disks
VLAN Private network
et ern Eth witch S et ern Eth witch S
GigE
Cluster -1 node 1
GigE
Cluster-1 node 2
HB
NI
Client cluster
HB A
C NI
GigE
om
wit CS
ch
GigE
ny .c
om
yc ps 1. c
disk1 disk2
CPS-Primary node
GigE
SFHA cluster
my
pa
cp
.c s2
CPS-standby node
vx
VIP
NI HB A
vx
cp
cp
se
SCSI-3 LUNs as 2 coordination points The coordinator disk group specified in /etc/vxfenmode should have these 2 disks.
se
rv
rv
VIP
NI HB A
SAN
Sw h itc
FC
Data LUNs
Coordinator LUNs
n pa om
om y.c
GigE
NIC 1 NIC 2
472
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Configuration diagrams for setting up server-based I/O fencing
Two node campus cluster served by remote CP server and 2 SCSI-3 disks
Figure I-3 displays a configuration where a two node campus cluster is being served by one remote CP server and 2 local SCSI-3 LUN (disks). In the vxfenmode file on the client nodes, vxfenmode is set to customized with vxfen mechanism set to cps. The two SCSI-3 disks (one from each site) are part of disk group vxfencoorddg. The third coordination point is a CP server on a single node VCS cluster.
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Configuration diagrams for setting up server-based I/O fencing
473
Figure I-3
SITE 1
SITE 2
et ern Eth itch Sw
Client Applications
et ern Eth itch LAN Sw et ern Eth itch Sw et ern Eth itch Sw
Cluster node 1
Cluster node 2
Cluster node 3
Cluster node 4
IC
IC
On the client cluster: vxfenmode=customized vxfen_mechanism=cps cps1=[VIP]:14250 vxfendg=vxfencoorddg The coordinator disk group specified in /etc/vxfenmode should have one SCSI3 disk from site1 and another from site2.
IC
SAN
ch FC Sw itc
h itc h
S FC
wit
SAN
wit
FC
DWDM
Sw
Dark Fibre
Coordinator Data LUN 2 Storage Array LUNs
)
SITE 3
o. CPS hosted rt n com (poany. on single node 0 25 p 14 om VCS cluster P]: s.c [VI ycp c = m ps1 rv se cp vx VIP
NI C
Legends Private Interconnects (GigE) Public Links (GigE) Dark Fiber Connections San 1 Connections San 2 Connections
IC
ch
474
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Configuration diagrams for setting up server-based I/O fencing
Multiple client clusters served by highly available CP server and 2 SCSI-3 disks
Figure I-4 displays a configuration where multiple client clusters are being served by one highly available CP server and 2 local SCSI-3 LUNS (disks). In the vxfenmode file on the client nodes, vxfenmode is set to customized with vxfen mechanism set to cps. The two SCSI-3 disks are are part of the disk group vxfencoorddg. The third coordination point is a CP server, hosted on an SFHA cluster, with its own shared database and coordinator disks.
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Configuration diagrams for setting up server-based I/O fencing
475
Figure I-4
Multiple client clusters served by highly available CP server and 2 SCSI-3 disks
VLAN Private network
et ern Eth witch S et ern Eth witch S
GigE
GigE
GigE
GigE
GigE
Cluster -2 node 1
Cluster-2 node 2
GigE
Cluster -1 node 1
Cluster-1 node 2
GigE
C NI A HB
C NI
HB
C NI A HB
SAN
it Sw ch
FC
disk1 disk2
SCSI-3 LUNs as 2 coordinator disks The coordinator disk group specified in /etc/vxfenmode should have these 2 disks.
GigE
GigE
se
rv
vx
NI H
cp
VIP
H BA
C NI
SAN
w CS h itc
Coordinator LUNs
GigE
GigE
NIC 1 NIC 2
NIC 1 NIC 2
NIC 1 NIC 2
NIC 1 NIC 2
NIC 1
NIC 1 NIC 2
NIC 2
476
Sample SFCFS cluster setup diagrams for CP server-based I/O fencing Configuration diagrams for setting up server-based I/O fencing
Appendix
Using the UDP layer of IPv6 for LLT Manually configuring LLT over UDP using IPv6
LLT must be used over WANs When hardware, such as blade servers, do not support LLT over Ethernet
For UDP6, the multicast address is set to "-". Make sure that each NIC has an IPv6 address that is configured before configuring LLT.
478
Configuring LLT over UDP using IPv6 Manually configuring LLT over UDP using IPv6
Make sure the IPv6 addresses in the /etc/llttab files are consistent with the IPv6 addresses of the network interfaces. Make sure that each link has a unique not well-known UDP port. See Selecting UDP ports on page 479. For the links that cross an IP router, disable multicast features and specify the IPv6 address of each link manually in the /etc/llttab file. See Sample configuration: links crossing IP routers on page 481.
See Sample configuration: direct-attached links on page 480. See Sample configuration: links crossing IP routers on page 481.
Note that some of the fields in Table J-1 differ from the command for standard LLT links. Table J-1 describes the fields of the link command that are shown in the /etc/llttab file examples. Table J-1 Field
tag-name
device node-range
link-type udp-port
MTU
"-" is the default, which has a value of 8192. The value may be increased or decreased depending on the configuration. Use the lltstat -l command to display the current value. IPv6 address of the link on the local node. "-" is the default for clusters spanning routers.
Configuring LLT over UDP using IPv6 Manually configuring LLT over UDP using IPv6
479
address
Use available ports in the private range 49152 to 65535 Do not use the following ports:
Ports from the range of well-known ports, 0 to 1023 Ports from the range of registered ports, 1024 to 49151
To check which ports are defined as defaults for a node, examine the file /etc/services. You should also use the netstat command to list the UDP ports currently in use. For example:
# netstat -au | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address udp 0 0 *:32768 *:* udp 0 0 *:956 *:* udp 0 0 *:tftp *:* udp 0 0 *:sunrpc *:* udp 0 0 *:ipp *:* State
Look in the UDP section of the output; the UDP ports that are listed under Local Address are already in use. If a port is listed in the /etc/services file, its associated name is displayed rather than the port number in the output.
480
Configuring LLT over UDP using IPv6 Manually configuring LLT over UDP using IPv6
Node0
Switches
The configuration that the /etc/llttab file for Node 0 represents has directly attached crossover links. It might also have the links that are connected through a hub or switch. These links do not cross routers. LLT uses IPv6 multicast requests for peer node address discovery. So the addresses of peer nodes do not need to be specified in the /etc/llttab file using the set-addr command. Use the ifconfig -a command to verify that the IPv6 address is set correctly.
set-node Node0 set-cluster 1 #configure Links #link tag-name device node-range link-type udp port MTU \ IP-address mcast-address link link1 udp6 - udp6 50000 - fe80::21a:64ff:fe92:1b46 link link1 udp6 - udp6 50001 - fe80::21a:64ff:fe92:1b47 -
Configuring LLT over UDP using IPv6 Manually configuring LLT over UDP using IPv6
481
set-node Node1 set-cluster 1 #configure Links #link tag-name device node-range link-type udp port MTU \ IP-address mcast-address link link1 udp6 - udp6 50000 - fe80::21a:64ff:fe92:1a92 link link1 udp6 - udp6 50001 - fe80::21a:64ff:fe92:1a93 -
Routers
The configuration that the following /etc/llttab file represents for Node 1 has links crossing IP routers. Notice that IPv6 addresses are shown for each link on each peer node. In this configuration multicasts are disabled.
set-node Node1 set-cluster 1 link link1 udp6 - udp6 50000 - fe80::21a:64ff:fe92:1a92 link link1 udp6 - udp6 50001 - fe80::21a:64ff:fe92:1a93 #set address of each link for all peer nodes in the cluster #format: set-addr node-id link tag-name address
482
Configuring LLT over UDP using IPv6 Manually configuring LLT over UDP using IPv6
0 0 2 2 3 3
Appendix
Using the UDP layer for LLT Manually configuring LLT over UDP using IPv4
LLT must be used over WANs When hardware, such as blade servers, do not support LLT over Ethernet
LLT over UDP is slower than LLT over Ethernet. Use LLT over UDP only when the hardware configuration makes it necessary.
Make sure that the LLT private links are on different physical networks.
484
Configuring LLT over UDP using IPv4 Manually configuring LLT over UDP using IPv4
If the LLT private links are not on different physical networks, then make sure that the links are on separate subnets. Set the broadcast address in /etc/llttab explicitly depending on the subnet for each link. See Broadcast address in the /etc/llttab file on page 484.
Make sure that each NIC has an IP address that is configured before configuring LLT. Make sure the IP addresses in the /etc/llttab files are consistent with the IP addresses of the network interfaces. Make sure that each link has a unique not well-known UDP port. See Selecting UDP ports on page 486. Set the broadcast address correctly for direct-attached (non-routed) links. See Sample configuration: direct-attached links on page 488. For the links that cross an IP router, disable broadcast features and specify the IP address of each link manually in the /etc/llttab file. See Sample configuration: links crossing IP routers on page 489.
Display the content of the /etc/llttab file on the first node galaxy:
galaxy # cat /etc/llttab set-node galaxy set-cluster 1 link link1 udp - udp link link2 udp - udp
50000 50001
Verify the subnet mask using the ifconfig command to ensure that the two links are on separate subnets.
Display the content of the /etc/llttab file on the second node nebula:
nebula # cat /etc/llttab set-node nebula set-cluster 1 link link1 udp - udp link link2 udp - udp
50000 50001
Verify the subnet mask using the ifconfig command to ensure that the two links are on separate subnets.
Configuring LLT over UDP using IPv4 Manually configuring LLT over UDP using IPv4
485
See Sample configuration: direct-attached links on page 488. See Sample configuration: links crossing IP routers on page 489.
Table K-1 describes the fields of the link command that are shown in the /etc/llttab file examples. Note that some of the fields differ from the command for standard LLT links. Table K-1 Field
tag-name
device
node-range
Nodes using the link. "-" indicates all cluster nodes are to be configured for this link. Type of link; must be "udp" for LLT over UDP. Unique UDP port in the range of 49152-65535 for the link. See Selecting UDP ports on page 486.
link-type udp-port
MTU
"-" is the default, which has a value of 8192. The value may be increased or decreased depending on the configuration. Use the lltstat -l command to display the current value. IP address of the link on the local node. For clusters with enabled broadcasts, specify the value of the subnet broadcast address. "-" is the default for clusters spanning routers.
IP address bcast-address
486
Configuring LLT over UDP using IPv4 Manually configuring LLT over UDP using IPv4
See Sample configuration: links crossing IP routers on page 489. Table K-2 describes the fields of the set-addr command. Table K-2 Field
node-id link tag-name
address
Use available ports in the private range 49152 to 65535 Do not use the following ports:
Ports from the range of well-known ports, 0 to 1023 Ports from the range of registered ports, 1024 to 49151
To check which ports are defined as defaults for a node, examine the file /etc/services. You should also use the netstat command to list the UDP ports currently in use. For example:
# netstat -au | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address udp 0 0 *:32768 *:* udp 0 0 *:956 *:* udp 0 0 *:tftp *:* udp 0 0 *:sunrpc *:* udp 0 0 *:ipp *:* State
Look in the UDP section of the output; the UDP ports that are listed under Local Address are already in use. If a port is listed in the /etc/services file, its associated name is displayed rather than the port number in the output.
Configuring LLT over UDP using IPv4 Manually configuring LLT over UDP using IPv4
487
For example:
488
Configuring LLT over UDP using IPv4 Manually configuring LLT over UDP using IPv4
Node0
Switch
UDP Endpoint eth2; UDP Port = 50000; IP = 192.1.2.1; Link Tag = link1
The configuration that the /etc/llttab file for Node 0 represents has directly attached crossover links. It might also have the links that are connected through a hub or switch. These links do not cross routers. LLT broadcasts requests peer nodes to discover their addresses. So the addresses of peer nodes do not need to be specified in the /etc/llttab file using the set-addr command. For direct attached links, you do need to set the broadcast address of the links in the /etc/llttab file. Verify that the IP addresses and broadcast addresses are set correctly by using the ifconfig -a command.
set-node Node0 set-cluster 1 #configure Links #link tag-name device node-range link-type udp port MTU \ IP-address bcast-address link link1 udp - udp 50000 - 192.1.2.1 192.1.2.255 link link2 udp - udp 50001 - 192.1.3.1 192.1.3.255
Configuring LLT over UDP using IPv4 Manually configuring LLT over UDP using IPv4
489
set-node Node1 set-cluster 1 #configure Links #link tag-name device node-range link-type udp port MTU \ IP-address bcast-address link link1 udp - udp 50000 - 192.1.2.2 192.1.2.255 link link2 udp - udp 50001 - 192.1.3.2 192.1.3.255
Routers
UDP Endpoint eth1; UDP Port = 50000; IP = 192.1.3.1; Link Tag = link1
The configuration that the following /etc/llttab file represents for Node 1 has links crossing IP routers. Notice that IP addresses are shown for each link on each peer node. In this configuration broadcasts are disabled. Hence, the broadcast address does not need to be set in the link command of the /etc/llttab file.
set-node Node1 set-cluster 1 link link1 udp - udp 50000 - 192.1.3.1 link link2 udp - udp 50001 - 192.1.4.1 #set address of each link for all peer nodes in the cluster
490
Configuring LLT over UDP using IPv4 Manually configuring LLT over UDP using IPv4
#format: set-addr node-id link tag-name address set-addr 0 link1 192.1.1.1 set-addr 0 link2 192.1.2.1 set-addr 2 link1 192.1.5.2 set-addr 2 link2 192.1.6.2 set-addr 3 link1 192.1.7.3 set-addr 3 link2 192.1.8.3 #disable LLT broadcasts set-bcasthb 0 set-arp 0
Index
A
adding users 130 agents about 423 CFSfsckd 443 CFSMount 437, 443 CVMCluster 427 CVMVolDg 433 CVMVxconfigd 429 disabling 357 of VCS 424 application database replication 329 applications, stopping 207 attributes about agent attributes 423 CFSMount agent 438, 444 CVMCluster agent 427 CVMVolDg agent 427, 435 CVMVxconfigd agent 430 UseFence 158
C
cables cross-over Ethernet 271 CFS mount and unmount failures 452 synchronization 251 troubleshooting 452 CFSfsckd agent 443 attributes 444 CFSMount agent 437, 443 attributes 438 entry points 438 sample configuration 442443 type definition 442 CFSTypes.cf 442 cluster removing a node from 296 verifying operation 262
command failures 454 commands gabconfig 260 gcoconfig 316 hastatus 262 hasys 263 lltconfig 254 lltstat 258 vradmin 330 vxassist 323, 325 vxdisksetup (initializing disks) 147 vxlicinst 137138 vxlicrep 137 vxvol 323 configuration file main.cf 252 configuring rsh 35 ssh 35 configuring Storage Foundation Cluster File System script-based installer 119 configuring VCS adding users 130 event notification 130, 132 global clusters 134 secure mode 127 starting 120 coordinator disks DMP devices 92 for I/O fencing 92 setting up 157 CVM CVMTypes.cf file 428 CVMCluster agent 427 attributes 427 entry points 427 sample configuration 429 type definition 428 CVMTypes.cf definition, CVMCluster agent 428 definition, CVMVolDg agent 437 definition, CVMVxconfigd agent 433
492
Index
CVMVolDg agent 433 attributes 435 entry points 434 sample configuration 437 type definition 437 CVMVxconfigd agent 429 attributes 430 CVMTypes.cf 433 entry points 429 sample configuration 433 type definition 433
H
hastatus -summary command 262 hasys -display command 263 high availability issues 455 low memory 455 network partition 454 hubs independent 271
D
data disks for I/O fencing 92 disabling the agents 357 disks adding and initializing 147 coordinator 157 testing with vxfentsthdw 151 verifying node access 152
I
I/O fencing checking disks 151 setting up 155 shared storage 151 I/O fencing requirements non-SCSI3 48 Installing SFCFS with the Web-based installer 70 installing post 135 Root Broker 85 intelligent resource monitoring disabling 424 enabling 424
E
Ethernet controllers 271
F
Fibre Channel fabric 39 files main.cf 252 freezing service groups 207
J
jeopardy 454455
G
GAB port membership information 260 verifying 260 gabconfig command 260 -a (verifying GAB) 260 gabtab file verifying after installation 254 gcoconfig command 316 global clusters configuration 134 using VVR 315 configuring VCS service groups 315 illustration of dependencies 331 migration 342343 replicating database volumes 331 requirements 308
L
license keys adding with vxlicinst 137 replacing demo key 138 licenses information about 137 licensing 51 add-on 50 CDS 51 full 50 links private network 254 LLT interconnects 34 verifying 258 lltconfig command 254
Index
493
llthosts file verifying after installation 254 lltstat command 258 llttab file verifying after installation 254 log files 458
O
optimizing media speed 33
P
PATH variable VCS commands 258 persistent reservations SCSI-3 35 planning an upgrade from previous VVR version 203 planning to upgrade VVR 203 port a membership 260 port h membership 260 port membership information 260 preinstallation 203 preparing to upgrade VVR 207 previous VVR version planning an upgrade from 203 primary site creating SRL volume 322 setting up 311 setting up replication objects 323 VCS configuration 333, 337 problems accessing manual pages 454 executing file system commands 454 mounting and unmounting file systems 453
M
main.cf file 252 manual pages potential problems 454 troubleshooting 454 media speed 34 optimizing 33 membership information 260 mount command potential problems 453 mounting software disc 60
N
network partition 454 nodes adding application nodes configuring GAB 278 configuring LLT 278 configuring VXFEN 278 starting Volume Manager 278 preparing application nodes configuring CVM 284 removing applicationnodes workflow 295 removing Oracle 11g nodes editing VCS configuration files 297 GAB configuration 298 LLT configuration 297 modifying VCS configuration 298 nodes, removing 295 non-SCSI3 fencing manual configuration 184 setting up 184 non-SCSI3 I/O fencing requirements 48 NTP network time protocol daemon 251
Q
Quick I/O performance on CFS 454
R
removing the Replicated Data Set 358 removing a node from a cluster 296 Replicated Data Set removing the 358 replication automatic synchronization 329 configuring on both sites 315 full synchronization with Checkpoint 330 modifying VCS configuration 331 options 309 setting up primary site 311
494
Index
replication (continued) setting up secondary site 313 supported hardware 308 supported software 308 supported technologies 308 using VVR 322 verifying status 331 resources CVMVolDg 332 RVGSharedPri 333 Root Broker installing 85 rsh 121 configuration 35
starting configuration installvcs program 121 Veritas product installer 121 stopping applications 207 Storage Area Network 39 Storage Foundation Cluster File System configuring 119 Symantec Product Authentication Service 85, 127 system state attribute value 262
T
troubleshooting accessing manual pages 454 executing file system commands 454 mounting and unmounting file systems 453
S
SAN see Storage Area Network 39 script-based installer Storage Foundation Cluster File System configuration overview 119 SCSI-3 persistent reservations 35 SCSI-3 persistent reservations verifying 155 secondary site configuring replication 325 creating SRL volume 325 setting up 313 setting up disk groups 327 setting up RLINKs 326 service groups freezing 207 VCS, for global clusters 315 SF Oracle RAC takeover 344 SFCFS coordinator disks 157 illustration of global cluster dependencies 331 SFCFS installation verifying cluster operations 258 GAB operations 258 LLT operations 258 SMTP email notification 130 SNMP trap notification 132 split brain 454 ssh 121 configuration 35
U
upgrading VVR planning 203 preparing 207
V
VCS command directory path variable 258 configuration, for database volume replication 331 configuring service groups 315 VCS configuration for replication 331 VCS Global cluster option. See GCO verifying NIC configuration 136 Veritas Operations Manager 25 Veritas Volume Replicator. See VVR vradmin delpri 359 stoprep 359 vradmin command 330 VVR application database replication 329 configuring global clusters 315 configuring on both sites 315 database volume replication configuring VCS 331 defining heartbeat cluster objects 316 defining remote clusters 316 global cluster overview 321
Index
495
VVR (continued) primary site creating SRL volume 322 setting up replication objects 323 replication using automatic synchronization 329 using full synchronization with Checkpoint 330 replication agents 309 secondary site configuring replication 325 creating SRL volume 325 setting up disk groups 327 setting up RLINKs 326 setting up primary site 311 setting up replication 322 setting up secondary site 313 types of replication 309 VCS configuration application database service group 333 CVMoIDG resource 332 log owner group 332 primary site 333 RVG group 332 RVGSharedPri resource 333 secondary site 337 verifying replication 331 vxassist command 323, 325 vxdisksetup command 147 vxlicinst command 137 vxlicrep command 137 vxplex used to remove mirrors of root disk volumes 355 vxvol command 323
W
Web-based installer 70