vxassist core dumps when trying to create or resize a volume if "wantmirror=ctlr" is set in /etc/default/vxassist

book

Article ID: 100007390

calendar_today

Updated On:

Description

Error Message

 

# cat /etc/default/vxassist
wantmirror=ctlr

# vxassist -g testdg make testvol 100m
Segmentation Fault (core dumped)

or

#vxassist -g   maxsize
Segmentation Fault  (core dumped)

The following is the vxassist core stack:

merge_attributes()
get_attributes()
do_make()
main()
_start()

 

Cause

Known issue documented in the following etrack.

Etrack 2398416 - vxassist coredump after echo "wantmirror=ctlr" > /etc/default/vxassist

SYMPTOM: vxassist dumps core with the following stack:
merge_attributes()
get_attributes()
do_make()
main()
_start()

DESCRIPTION: vxassist dumps core while creating volume when
attribute 'wantmirror=ctlr' is added to the '/etc/default/vxassist' file.
vxassist reads this default file initially and uses the attributes specified to
allocate the storage during the volume creation. However, during the merging of
attributes specified in the default file, it accesses NULL attribute structure
causing the core dump.

RESOLUTION: Necessary code changes have been done to check the attribute
structure pointer before accessing it.

Resolution

The problem is fixed in the following patches.

VxVM 5.1SP1RP3 on all platforms.
VxVM 6.0.3 on all platforms

Please download the required patches from the Veritas Operation Readiness Tools website.
https://sort.Veritas.com/patch/matrix


Workaround:

Rename the /etc/default/vxassist file

#  mv /etc/default/vxassist /etc/default/vxassist.OLD

In order to mirror across controllers you will need to specify wantmirror-ctlr as a CLI  option. Example:

#  vxassist -g testdg make testvol  100m wantmirror=ctlr

 


Applies To

The problem affects VxVM 5.1SP1, 6.0 and 6.0.1 on all platforms.

Issue/Introduction

Attempting to resize or create a volume using vxassist results in a Segmentation Fault and produces a core file when "wantmirror=ctlr"  is set in /etc/default/vxassist. # cat /etc/default/vxassist
wantmirror=ctlr
# vxassist -g testdg make testvol 100m
Segmentation Fault (core dumped) or #vxassist -g <diskgroup>  maxsize Segmentation Fault  (core dumped)

Additional Information

ETrack: 2407699 ETrack: 2398416 ETrack: 2954091