"vxdctl enable" may terminate vxconfigd while it is being initialized. DiskGroup online script invokes "vxdctl enable" as a background process, and it can encounter this timing issue.

Article:TECH16143  |  Created: 2001-01-11  |  Updated: 2002-01-10  |  Article URL http://www.symantec.com/docs/TECH16143
Article Type
Technical Solution

Product(s)

Environment

Issue



"vxdctl enable" may terminate vxconfigd while it is being initialized. DiskGroup online script invokes "vxdctl enable" as a background process, and it can encounter this timing issue.

Solution



"vxdctl enable" may terminate vxconfigd when it is invoked during vxconfigd's initialization process.

To avoid this, invoke vxconfigd and then "vxdctl enable", but only after vxconfigd has returned.

The VERITAS Cluster Server (VCS) DiskGroup online script invokes "vxdctl enable" if it fails to import its disk group. A user can not determine exactly when it will happen, so if the user invokes "vxconfigd" and, simultaneously, "vxdctl enable" is invoked by the DiskGroup online script, the newly invoked "vxconfigd" will terminate abnormally.

To avoid this, the DiskGroup online script will include a process checking mechanism in the next release after VCS 2.0.

For VCS users prior to that release who want to avoid this termination, the best option is to insert the following lines in DiskGroup online script:

After line 37, "VXDCTL=/usr/sbin/vxdctl", insert the following line:

VXCONFIGD=/sbin/vxconfigd
AWK=/usr/bin/awk

After line 65, "$VXDCTL enable", insert the following lines:

#
# Check to see if enable succeeded
#
mode=`$VXDCTL mode | $AWK '{print $2}'`
if [ $mode = "not-running" ]
then
$VXCONFIGD
fi

NOTE: With the above modification, the DiskGroup online script will check the result of "vxdctl enable" and will start "vxconfigd" if it is not already running.


Supplemental Materials

SourceiTools
Value75606
Descriptionvxconfigd terminates if vxdctl enable issued while vxconfigd is still initializing

SourceiTools
Value75589
DescriptionDiskGroup Agent should detect state of vxconfigd

Legacy ID



240217


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


Terms of use for this information are found in Legal Notices