VERITAS Cluster Server (VCS) ha commands appear to hang. (e.g. hastatus, hagrp, hasys, hares, etc.)

Article:TECH1036  |  Created: 1999-01-10  |  Updated: 2002-01-03  |  Article URL http://www.symantec.com/docs/TECH1036
Article Type
Technical Solution

Product(s)

Environment

Issue



VERITAS Cluster Server (VCS) ha commands appear to hang. (e.g. hastatus, hagrp, hasys, hares, etc.)

Solution



When node is awaiting GAB seed membership, most ha commands will hang.  These commands should not work in this case, but it would be more intuitive to give an error message, instead of just hanging.
       
For example, if VCS started with this:
       
         VCS: starting on: csthor3
         VCS: waiting for configuration status
         VCS: local configuration valid
         VCS: registering for cluster membership
         GAB: Port h registration waiting for seed port membership
         VCS: waiting for cluster membership
       
at that time, had is running, and all ha commands appear to hang.  Doing a truss on a ha command (e.g. hastatus) ends in this:
       
         428:    ioctl(3, I_FIND, "sockmod")                     = 1
         428:    fcntl(3, F_SETFL, 0x00000084)                   = 0
         428:    fcntl(3, F_SETFD, 0x00000001)                   = 0
         428:    poll(0xEFFFB2A0, 1, 0)                          = 1
         428:    write(3, " G\0\0\01C\0\001\t\0\0\0".., 34)      = 34
         428:    poll(0xEFFFB2D8, 1, -1)         (sleeping...)
       
This is relieved by seeding the cluster via gabconfig -x, or adding "-n #", where # is the number of machines in the cluster, to the gabconfig command in the /etc/rc2.d/S92gab script.  
       
 Please see the VCS documentation for more about seeding a cluster.
       


Legacy ID



180038


Article URL http://www.symantec.com/docs/TECH1036


Terms of use for this information are found in Legal Notices