"VxVM vxplex ERROR V-5-1-10870 fsgen/vxplex: Warning: vxsync exited with exitcode 42: Volume data may not be flushed to all plexes" appears when attempting to dissociate a plex for a volume
Problem
Attempting to disassociate a plex for a raw volume returns an error but completes the task.
Error Message
VxVM vxplex ERROR V-5-1-10870 fsgen/vxplex: Warning: vxsync exited with exitcode 42:
Volume data may not be flushed to all plexes
Cause
VxVM is unable to determine if plexes are in sync and returns a warning that the data may not be flushed to all plexes.
Solution
The error means that Volume Manager cannot guarantee that all data has been flushed to all plexes. There is the possibility of data corruption if the data is incomplete.
The only way to guarantee data integrity is to stop the volume prior to disassociating a plex. The volume and plexes should be in the state DISABLED CLEAN.
1. Stop the volume
# vxvol -g diskgroup_name stop volume_name
2. Verify the volume is DISABLED CLEAN
# vxprint -htqg diskgroup_name
dg foo default default 17000 1392743359.19.mtvav210-c9e
dm ams_wms0_40 ams_wms0_40 auto 65536 10340608 -
dm ams_wms0_41 ams_wms0_41 auto 65536 1931008 -
dm ams_wms0_42 ams_wms0_42 auto 65536 4043008 -
dm ams_wms0_43 ams_wms0_43 auto 65536 4043008 -
v test - DISABLED CLEAN 2097152 SELECT - fsgen
pl test-01 test DISABLED CLEAN 2097152 CONCAT - RW
sd ams_wms0_40-01 test-01 ams_wms0_40 0 2097152 0 ams_wms0_40 ENA
pl test-02 test DISABLED CLEAN 2097152 CONCAT - RW
sd ams_wms0_42-01 test-02 ams_wms0_42 0 2097152 0 ams_wms0_42 ENA
3. Disassociate the plex:
# vxplex -g diskgroup_name dis plex_name
# vxprint -htqg foo
dg foo default default 17000 1392743359.19.mtvav210-c9e
dm ams_wms0_40 ams_wms0_40 auto 65536 10340608 -
dm ams_wms0_41 ams_wms0_41 auto 65536 1931008 -
dm ams_wms0_42 ams_wms0_42 auto 65536 4043008 -
dm ams_wms0_43 ams_wms0_43 auto 65536 4043008 -
pl test-02 - DISABLED - 2097152 CONCAT - RW
sd ams_wms0_42-01 test-02 ams_wms0_42 0 2097152 0 ams_wms0_42 ENA
v test - DISABLED CLEAN 2097152 SELECT - fsgen
pl test-01 test DISABLED CLEAN 2097152 CONCAT - RW
sd ams_wms0_40-01 test-01 ams_wms0_40 0 2097152 0 ams_wms0_40 ENA
4. Start the volume
# vxvol -g diskgroup_name start volume_name