Bug 1668747
| Summary: | vdostats displays a large number for volumes started in read-only mode | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Bryan Gurney <bgurney> |
| Component: | vdo | Assignee: | sclafani |
| Status: | CLOSED ERRATA | QA Contact: | vdo-qe |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.1 | CC: | awalsh, msakai, rhandlin |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 6.2.1.6 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-05 22:12:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1682564 | ||
| Bug Blocks: | |||
|
Description
Bryan Gurney
2019-01-23 13:50:42 UTC
How reproducible: seems to be 100%, as long as at least one data block is written. (I've only had enough time to run "mkfs.xfs -K" on the VDO volume so far). Here's what the non-verbose vdostats output looks like (on the RHEL 8 test system): # vdostats Device 1K-blocks Used Available Use% Space saving% /dev/mapper/vdo1 104856576 73786976294842467712 -73786976294737611136 70369431379146% 0% # dmsetup status vdo1 0 838860800 vdo /dev/nvme0n1p1 read-only - online online 1065312 26214144 kmod-kvdo-6.2.1.102-53.el8.x86_64
kernel-4.18.0-107.el8.x86_64
vdo-6.2.1.102-11.el8.x86_64
# vdo create --name=vdo1 --device=/dev/sda --vdoLogicalSize=400G
Creating VDO vdo1
Starting VDO vdo1
Starting compression on VDO vdo1
VDO instance 0 volume is ready at /dev/mapper/vdo1
# vdostats --verbose vdo1 | grep data\ blocks\ used
data blocks used : 0
# mkfs.xfs -K /dev/mapper/vdo1
meta-data=/dev/mapper/vdo1 isize=512 agcount=4, agsize=26214400 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=104857600, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=51200, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
# vdostats --verbose vdo1 | grep data\ blocks\ used
data blocks used : 6
# vdo stop --name vdo1
Stopping VDO vdo1
# vdoreadonly /dev/sda
# vdo start --name vdo1
Starting VDO vdo1
Starting compression on VDO vdo1
VDO instance 1 volume is ready at /dev/mapper/vdo1
# vdostats --verbose vdo1 | grep data\ blocks\ used
data blocks used : N/A
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/RHBA-2019:3548 |