Sei sulla pagina 1di 6

Basic VERITAS Cluster Server for UNIX Commands

Consult VERITAS Cluster Server for UNIX Troubleshooting Guide for details on working VCS alarms and more detailed information on VCS.
VCS STATUS AND VERIFICATION 1. Verify that VCS is running: # ps ef |grep had |grep v grep root 1540116 1 0 Dec 08 root 1650898 1 15 Jan 13

- 0:00 /opt/VRTSvcs/bin/hashadow - 711:34 /opt/VRTSvcs/bin/had restart

2. Check the Status of VCS. The resource groups should be ONLINE on one of the cluster nodes: # hastatus summary |grep ONLINE B richpp01 crspa03p Y N ONLINE B sidbpp01 crspa03p Y N ONLINE B sidbpp02 crspa03p Y N ONLINE B sidbpp03 crspa03p Y N ONLINE B sidbpp04 crspa03p Y N ONLINE 3. Check the status of LLT: # lltconfig LLT is running 4. Check the status of GAB: In this case, there are 5 nodes each assigned a value from 0 4. # gabconfig a GAB Port Memberships =========================================================== Port a gen 7d83a702 membership 01234 Port h gen e7c4780e membership 01234 5. Check the nodes in the cluster: # more /etc/llthosts 0 crspa03p 1 crspa07p 2 crspa11p 3 crspa14p 4 crspa18p

IWSMR051 Parent Document: IPSMT000

Page 1 of 6

Version 7 Document Owner: Brian Scarbrough

PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.

Basic VERITAS Cluster Server for UNIX Commands


DO NOT EXECUTE ANY OF THE FOLLOWING COMMANDS WITHOUT FIRST NOTIFYING THE CSA.
VCS CLUSTER OPERATIONS 1. Start VCS: # hastart -force <system name> # hastatus -sum If all systems are in ADMIN_WAIT, enter the following command from any system in the cluster to force VCS to use the configuration file from the system specified by the variable system: # hasys force system To start VCS on a single node: # hastart -<nodename> 2. Stopping VCS: The hastop command stops HAD and related process. This command includes the following options: # hastop local [-force | -evacuate] # hastop sys system [-force | -evacuate] # hastop all [-force] The option evacuate, when combined with local or sys, migrates the systems active service groups to another system in the cluster, before the system is stopped. The option local stops HAD on the system you typed the command: Example: # hastop local The option sys stops HAD on the system you specified: Example: # hastop sys xxxx The option all stops HAD on all systems in the cluster: Example: # hastop all
IWSMR051 Parent Document: IPSMT000 Page 2 of 6 Version 7 Document Owner: Brian Scarbrough

PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.

Basic VERITAS Cluster Server for UNIX Commands


The option force allows HAD to be stopped without off-lining service groups on that system: Example: # hastop all force VCS ADMINISTRATION 1. Freezing and unfreezing resource groups: # hagrp freeze group_name [-persistent] # hagrp unfreeze group_name [-persistent] 2. Freezing and unfreezing systems: # hasys freeze system_name [-persistent] [-evacuate] # hasys unfreeze system_name [-persistent] When you freeze a service group, VCS continues to monitor the resources, but does not allow the service group (or its resources) to be taken offline or brought online. Failover is also disabled, even if a resource faults. VCS CONFIGURATION FILE:

1. Changing the configuration file to Read-Write. This can be run from any node
in the cluster: # haconf makerw 2. Changing the configuration file to Read -Only: # haconf dump makero In addition to setting the configuration to read-only, this command writes, or dumps the configuration to disk and removes the configurations designation of stale. VCS user administration Add a user: 1. Set the configuration to read/write mode from any node in the cluster: # haconf makerw 2. Add the user: # hauser add <username> 3. Enter a password when prompted.

IWSMR051 Parent Document: IPSMT000

Page 3 of 6

Version 7 Document Owner: Brian Scarbrough

PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.

Basic VERITAS Cluster Server for UNIX Commands


4. Reset the configuration to read-only: # haconf dump makero VCS user administration Delete a user: 1. Set the configuration to read/write mode: # haconf makerw Delete the user from the list of registered users: # hauser delete <username> Reset the configuration to read-only # haconf dump makero

2.

3.

4. Display a list of users: # hauser display

VCS SERVICE GROUP AND RESOURCE ADMINISTRATION: 1. Display the state of a service group on a system: # hagrp state [service_group] sys [system] 2. Display a list of a service groups resources: # hagrp resources [service_group] 3. Display a list of a service groups dependencies: # hagrp dep [service_group] 4. To display a service group on a system: # hagrp display [service_group] sys [system] If service_group is not specified, information regarding all service groups is displayed.

IWSMR051 Parent Document: IPSMT000

Page 4 of 6

Version 7 Document Owner: Brian Scarbrough

PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.

Basic VERITAS Cluster Server for UNIX Commands


VERITAS EXPLORER Contact Veritas to open a case number. VERITAS Technical Services: VERITAS Customer Number: To run the VRTSexplorer program: 1. Run the VRTSexplorer program from the VRTSexplorer directory by entering the following command: # /opt/VRTSspt/VRTSexplorer/VRTSexplorer VRTSexplorer prompts you for a destination directory for the information that it collects. When it asks you if you want to stop and restart the Volume Manager configuration daemon, answer "no" to that question. The script will prompt you for a name and location. Please rename the script with your case ID. Example: jrspa03t:seccallm ls -al V* -rw-r--r-- 1 root system 8687039 Mar 25 14:45 VRTSexplorer_280382457_jrspa03t.tar.gz Case # 2. Press Return to accept the default directory /tmp, or enter a path name of your own choice. VRTSexplorer writes information to a compressed tar file named VRTSexplorer_casenumber_hostname.tar.Z in the specified directory. Example: VRTSexplorer_280382457_jrspa03t.tar.gz When you have completed running this script on all nodes in your cluster, please ftp to ftp.veritas.com and put the files in "/incoming". (800) 342-0652 0815-6000-8082

IWSMR051 Parent Document: IPSMT000

Page 5 of 6

Version 7 Document Owner: Brian Scarbrough

PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.

Basic VERITAS Cluster Server for UNIX Commands


3. Use the file upload facility of your web browser, or the ftp program, to transfer the VRTSexplorer output file to the VERITAS Technical Support anonymous FTP site: -----------------------FTP'ing to Veritas -----------------------i. # ftp inetgate.bls.com ie. ftp inetgate.bls.com Connected to aifwdr1g. 220 Check Point FireWall-1 Secure FTP server running on aifwdr1g Your new prompt will now be "ftp>" ii. Login in as anonymous and use your email address as the password. ie. Name (inetgate.bls.com:cuid): anonymous@uid@ftp.veritas.com Password: emailaddress@your inetgate password iii. ftp> cd /incoming iv. ftp> mkdir (case#) v. ftp> cd (case#) vi. ftp> put VRTSexplorer_(Veritas case#)_(server name).tar.gz vii. ftp> quit ( Will bring back your command line.)

4. When you call VERITAS Technical Support, provide the name of the file you transferred to the FTP site.

IWSMR051 Parent Document: IPSMT000

Page 6 of 6

Version 7 Document Owner: Brian Scarbrough

PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.

Potrebbero piacerti anche