Bug 1944087 - [RFE] print warning when multiple "--device=" options are used to create vdo device
Summary: [RFE] print warning when multiple "--device=" options are used to create vdo ...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: vdo
Version: 8.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: bjohnsto
QA Contact: Filip Suba
Depends On:
TreeView+ depends on / blocked
Reported: 2021-03-29 09:14 UTC by Rupesh Girase
Modified: 2021-11-10 06:38 UTC (History)
3 users (show)

Fixed In Version: vdo-
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-11-09 19:28:28 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4359 0 None None None 2021-11-09 19:28:38 UTC

Description Rupesh Girase 2021-03-29 09:14:53 UTC
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):

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:

Comment 5 Filip Suba 2021-05-27 13:19:17 UTC
Verified with vdo-
# 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

Comment 8 errata-xmlrpc 2021-11-09 19:28:28 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.