Bug 1570156
Summary: | Creating a VDO volume with --sparseIndex enabled results in an index on-disk size matching that of a dense index | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Bryan Gurney <bgurney> | |
Component: | vdo | Assignee: | Sweet Tea Dorminy <sweettea> | |
Status: | CLOSED ERRATA | QA Contact: | Jakub Krysl <jkrysl> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | high | |||
Version: | 7.5 | CC: | awalsh, jkrysl, limershe, rhandlin | |
Target Milestone: | rc | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 6.1.1.79 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1572496 (view as bug list) | Environment: | ||
Last Closed: | 2018-10-30 09:39:31 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: | ||||
Bug Blocks: | 1572496 |
Description
Bryan Gurney
2018-04-20 18:27:31 UTC
Tested on: RHEL-7.6-20180626.0 kernel-3.10.0-915.el7 kmod-vdo-6.1.1.99-1.el7 vdo-6.1.1.99-2.el7 # vdo create --name vdo --device /dev/sdb Creating VDO vdo Starting VDO vdo Starting compression on VDO vdo VDO instance 109 volume is ready at /dev/mapper/vdo # vdo status --name vdo | grep 'Index sparse' Index sparse: disabled # hexdump -C /dev/sdb -n 4K 00000000 64 6d 76 64 6f 30 30 31 05 00 00 00 04 00 00 00 |dmvdo001........| 00000010 00 00 00 00 5d 00 00 00 00 00 00 00 09 01 02 00 |....]...........| 00000020 c5 ac 79 38 18 70 05 00 a3 c1 39 51 1e 12 44 0d |..y8.p....9Q..D.| 00000030 a7 4a 8c a4 93 44 bd 9a 00 00 00 00 01 00 00 00 |.J...D..........| 00000040 00 00 00 00 01 00 00 00 d8 5c 0a 00 00 00 00 00 |.........\......| 00000050 00 ff ff ff 00 00 00 00 00 dc 64 0f 61 00 00 00 |..........d.a...| 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001000 0x0a5cd8 * 4096 = 2781708288 # vdo create --name vdo --device /dev/sdb --sparseIndex enabled Creating VDO vdo Starting VDO vdo Starting compression on VDO vdo VDO instance 110 volume is ready at /dev/mapper/vdo # vdo status --name vdo | grep 'Index sparse' Index sparse: enabled # hexdump -C /dev/sdb -n 4K 00000000 64 6d 76 64 6f 30 30 31 05 00 00 00 04 00 00 00 |dmvdo001........| 00000010 00 00 00 00 5d 00 00 00 00 00 00 00 09 01 02 00 |....]...........| 00000020 19 0c ce 40 18 70 05 00 7d 53 cd c9 6f c6 42 6f |...@.p..}S..o.Bo| 00000030 96 d5 62 34 d0 5d b3 47 00 00 00 00 01 00 00 00 |..b4.].G........| 00000040 00 00 00 00 01 00 00 00 2c d7 58 00 00 00 00 00 |........,.X.....| 00000050 00 ff ff ff 00 00 00 00 01 fb 19 c1 7f 00 00 00 |................| 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001000 0x58d72c * 4096 = 23847944192 23847944192 / 2781708288 = 8.57 So the sparse index on disk is roughly 8.57x bigger than dense index. Regression testing passed. 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-2018:3094 |