Vcs Appnote Hares Wait

8
VeritasCluster Server Application Note: Using the IState attribute in the hares -wait command UNIX 5.1 Service Pack 1

Transcript of Vcs Appnote Hares Wait

Page 1: Vcs Appnote Hares Wait

Veritas™ Cluster ServerApplication Note: Using theIState attribute in the hares-wait command

UNIX

5.1 Service Pack 1

Page 2: Vcs Appnote Hares Wait

Application Note: Using the IState attribute in the hares-wait command

The software described in this book is furnished under a license agreement andmay be usedonly in accordance with the terms of the agreement.

Documentation version: 1.0

Legal NoticeCopyright © 2010 Symantec Corporation. All rights reserved.

Symantec, the Symantec Logo, and Veritas are trademarks or registered trademarks ofSymantec Corporation or its affiliates in the U.S. and other countries. Other names may betrademarks 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 documentmay be reproduced in any form by any means without prior written authorization ofSymantec Corporation and its licensors, if any.

THEDOCUMENTATIONISPROVIDED"ASIS"ANDALLEXPRESSORIMPLIEDCONDITIONS,REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT,ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TOBELEGALLYINVALID.SYMANTECCORPORATIONSHALLNOTBELIABLEFORINCIDENTALOR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING,PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINEDIN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE.

The Licensed Software andDocumentation are deemed to be commercial computer softwareas defined in FAR12.212 and subject to restricted rights as defined in FARSection 52.227-19"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, "Rights inCommercial Computer Software or Commercial Computer Software Documentation", asapplicable, and any successor regulations. Any use, modification, reproduction release,performance, display or disclosure of the Licensed Software andDocumentation by theU.S.Government shall be solely in accordance with the terms of this Agreement.

Page 3: Vcs Appnote Hares Wait

Symantec Corporation350 Ellis StreetMountain View, CA 94043

http://www.symantec.com

Page 4: Vcs Appnote Hares Wait

Technical SupportSymantec Technical Support maintains support centers globally. TechnicalSupport’s primary role is to respond to specific queries about product featuresand functionality. TheTechnical Support group also creates content for our onlineKnowledge Base. The Technical Support group works collaboratively with theother functional areas within Symantec to answer your questions in a timelyfashion. For example, theTechnical Support groupworkswithProductEngineeringand Symantec Security Response to provide alerting services and virus definitionupdates.

Symantec’s support offerings include the following:

■ A range of support options that give you the flexibility to select the rightamount of service for any size organization

■ Telephone and/or Web-based support that provides rapid response andup-to-the-minute information

■ Upgrade assurance that delivers software upgrades

■ Global support purchased on a regional business hours or 24 hours a day, 7days a week basis

■ Premium service offerings that include Account Management Services

For information about Symantec’s support offerings, you can visit our Web siteat the following URL:

www.symantec.com/business/support/

All support services will be delivered in accordance with your support agreementand the then-current enterprise technical support policy.

Contacting Technical SupportCustomers with a current support agreement may access Technical Supportinformation at the following URL:

www.symantec.com/business/support/

Before contacting Technical Support, make sure you have satisfied the systemrequirements that are listed in your product documentation. Also, you should beat the computer onwhich theproblemoccurred, in case it is necessary to replicatethe problem.

When you contact Technical Support, please have the following informationavailable:

■ Product release level

Page 5: Vcs Appnote Hares Wait

■ 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

Licensing and registrationIf yourSymantecproduct requires registrationor a licensekey, access our technicalsupport Web page at the following URL:

www.symantec.com/business/support/

Customer serviceCustomer 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 thefollowing 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

Page 6: Vcs Appnote Hares Wait

Support agreement resourcesIf youwant to contact Symantec regarding an existing support agreement, pleasecontact the support agreement administration team for your region as follows:

[email protected] and Japan

[email protected], Middle-East, and Africa

[email protected] America and Latin America

Page 7: Vcs Appnote Hares Wait

Workaround for using theIState attribute in the hares-wait command

This document includes the following topics:

■ Symptom

■ Description

■ Resolution

SymptomThe hares -wait command does not work correctly for the IState attribute.

DescriptionThe -wait option is for use in scripts using VCS commands to wait till an attributevalue changes to the specified value. The option blocks the VCS command untilthe value of the specified attribute is changedoruntil the specified timeout expires.

The values for the IState attribute displayed using the hares -display commandor the hares -value command do not work when you use them with the hares-wait command. The hares -wait command for IState attribute values eitherblocks or times out (if the timeout is specified.)

Page 8: Vcs Appnote Hares Wait

ResolutionUse an equivalent string for each attribute value that you want to use with thehares -wait command. See the following table:

Table 1-1 Keywords to be used in the hares -wait command for IState

Keyword to be used in hares -waitIState value displayed in hares –displayor hares –value command output

W_NONEnot waiting

W_ONLINEwaiting to go online

W_CHILDREN_ONLINEwaiting for children online

W_OFFLINEwaiting to go offline

W_OFFLINE_PROPAGATEwaiting to go offline (propagate)

W_OFFLINE_PATHwaiting to go offline (path)

W_OFFLINE_REVERSEwaiting to go offline (reverse)

W_ONLINE_REVERSEwaiting to go online (reverse)

W_ONLINE_REVERSE_PROPAGATEwaiting to go online (reverse/propagate)

W_ONLINE_REVERSE_PATHwaiting to go online (reverse/path)

Example:

Use the following command to wait till the value of IState attribute is set to notwaiting:

# hares -wait myres IState W_NONE -sys mysys

In this example, myres is the resource andmysys is the system.

Workaround for using the IState attribute in the hares -wait commandResolution

8