How to recover an aborted relayout command when changing the number of stripes in a volume

book

Article ID: 100021434

calendar_today

Updated On:

Description

Issue

At times there are instances wherein an ongoing process of relayout for striped volumes is accidentally cancelled or gets aborted. 

Error Message

#vxassist -g datadg relayout vol01 layout=stripe ncol=8
 
After issuing the above command if it is accidentally canceled or aborted, the following errors occur
 
VxVMvxrelayout INFO V-5-1-2291 Attempting to cleanup ...
VxVMvxassist ERROR V-5-1-3119 Operation not valid for vol01 volume
VxVMvxassist ERROR V-5-1-4037 Relayout operation aborted. (20)
vxrelayout-g datadg status vol01 STRIPED, columns=4, stwidth=128 --> STRIPED,columns=8, stwidth=128 Relayout stopped, 5.89% completed.

Resolution

1) To recover from the aborted relayout first submit the 'reverse' command:
Syntax:
#vxrelayout -g reverse
 
Example:
#vxrelayout -g datadg reverse vol01
 
2) After the 'reverse' has finished, then issue the relayout:
Syntax:
#vxassist -g relayout layout=stripencol=
 
Example:
#vxassist -g datadg relayout vol01 layout=stripe ncol=8