Description of problem: ----------------------- VDO volume creation fails with 'maxDiscardSize' option set to 16M. This is because VDO ansible module doesn't provide that option while creating the VDO volume Version-Release number of selected component (if applicable): ------------------------------------------------------------- ansible-2.9.6 gluster-ansible-infra-1.0.4-7 How reproducible: ----------------- Always Steps to Reproduce: -------------------- 1. Start RHHI-V deployment from cockpit, opting for VDO volume Actual results: ---------------- VDO volume creation fails Expected results: ------------------ VDO volume creation should be successful
VDO module - https://docs.ansible.com/ansible/latest/modules/vdo_module.html - doesn't have an option 'maxDiscardSize' available for VDO volume creation. So, to fix this one solution is to allow creation of VDO volume without, 'maxDiscardSize', modify the option later, then restart VDO volume. The steps include: 1. Remove 'maxDiscardSize' from the existing VDO create options 2. Add a task to modify VDO option 'maxDiscardSize' to 16M for all VDO volumes 3. Stop all VDO volumes 4. Start all VDO volumes Example ansible playbook: - name: Set VDO maxDiscardSize as 16M command: "vdo modify -a --maxDiscardSize 16M" - name: Restart all VDO volumes command: "vdo {{item}} -a" with_items: - stop - start
Tested with gluster-ansible-infra-1.0.4-8.el7rhgs with the following steps: 1. Start hyperconverged deployment from web console (cockpit) 2. Provide the proper values for host 3. Go with the default volumes 4. Enable 'Dedupe & compression' for the bricks 5. Complete the deployment VDO creation is completed successfully and it has maxDiscardSize set to 16M [root@ ]# dmsetup table | grep -i discard vdo_luks_sdc: 0 4194304000 vdo V2 /dev/disk/by-id/dm-uuid-CRYPT-LUKS2-0708c9c1e3024ff68aafd5633b56d14b-luks_sdc 52424704 4096 32768 16380 on auto vdo_luks_sdc maxDiscard 4096 ack 1 bio 4 bioRotationInterval 64 cpu 2 hash 1 logical 1 physical 1 [root@ ]# vdo status | grep -i 'discard size' Max discard size: 16M
RDT looks good to me.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:2575