Hide Forgot
Description of problem: print warning when multiple "--device=" options are used to create vdo device as it uses one block device only Version-Release number of selected component (if applicable): RHEL8 How reproducible: Steps to Reproduce: o Create vdo with multiple --device options used these two block devices nvme0n6 259:7 0 74.5G 0 disk nvme0n7 259:8 0 74.5G 0 disk # vdo create --name=multivdo --device=/dev/nvme0n6 --device=/dev/nvme0n7 --vdoSlabSize=256M Creating VDO multivdo Logical blocks defaulted to 18716406 blocks. The VDO volume can address 71 GB in 287 data slabs, each 256 MB. It can grow to address at most 2 TB of physical storage in 8192 slabs. If a larger maximum size might be needed, use bigger slabs. Starting VDO multivdo Starting compression on VDO multivdo VDO instance 3 volume is ready at /dev/mapper/multivdo Actual results: Creates vdo volume with one block device only and does not tell anything about other one Expected results: warning should be printed saying other device is ignored or not used Additional info:
Verified with vdo-6.2.5.11-14.el8. # vdo create -n vdo --device /dev/sdc --device /dev/sdd usage: vdo create [-h] -n <volume> --device <devicepath> [--activate {disabled,enabled}] [--blockMapCacheSize <megabytes>] [--blockMapPeriod <period>] [--compression {disabled,enabled}] [--deduplication {disabled,enabled}] [--emulate512 {disabled,enabled}] [--force] [--indexMem <gigabytes>] [--maxDiscardSize <megabytes>] [--sparseIndex {disabled,enabled}] [--uuid <uuid>] [--vdoAckThreads <threadCount>] [--vdoBioRotationInterval <ioCount>] [--vdoBioThreads <threadCount>] [--vdoCpuThreads <threadCount>] [--vdoHashZoneThreads <threadCount>] [--vdoLogicalSize <megabytes>] [--vdoLogicalThreads <threadCount>] [--vdoLogLevel {critical,error,warning,notice,info,debug}] [--vdoPhysicalThreads <threadCount>] [--vdoSlabSize <megabytes>] [--writePolicy {async,async-unsafe,sync,auto}] [-f <file>] [--logfile <pathname>] [--verbose] vdo create: error: option 'device' was specified more than once
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 (kmod-kvdo bug fix and enhancement update), 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/RHBA-2021:4359