Bug 1934753
Summary: | Ceph iSCSI: fallocate(PUNCH_HOLE) succeeds, storage is not zeroed if length not aligned | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Jason Dillaman <jdillama> |
Component: | iSCSI | Assignee: | Xiubo Li <xiubli> |
Status: | CLOSED ERRATA | QA Contact: | Gopi <gpatta> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.0 | CC: | ceph-eng-bugs, ceph-qe-bugs, gpatta, tserlin, vereddy |
Target Milestone: | --- | ||
Target Release: | 5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tcmu-runner-1.5.4-1.el8cp | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-08-30 08:28:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jason Dillaman
2021-03-03 19:01:24 UTC
Working as expected. Moving to verified state. Steps: [root@magna108 ubuntu]# multipath -ll . . . Hitachi_HUA722010CLA330_JPW9K0N2098ZLE dm-1 ATA,Hitachi HUA72201 size=932G features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=active `- 2:0:0:0 sdc 8:32 active ready running 3600140574549df1b7b54743aa612198d dm-6 LIO-ORG,TCMU device size=10G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw |-+- policy='queue-length 0' prio=50 status=active | `- 7:0:0:0 sdf 8:80 active ready running `-+- policy='queue-length 0' prio=10 status=enabled `- 6:0:0:0 sde 8:64 active ready running [root@magna108 ubuntu]# vgcreate ceph-iscsi-vg /dev/mapper/3600140574549df1b7b54743aa612198d WARNING: ext4 signature detected on /dev/mapper/3600140574549df1b7b54743aa612198d at offset 1080. Wipe it? [y/n]: y Wiping ext4 signature on /dev/mapper/3600140574549df1b7b54743aa612198d. Physical volume "/dev/mapper/3600140574549df1b7b54743aa612198d" successfully created. Volume group "ceph-iscsi-vg" successfully created [root@magna108 ubuntu]# lvcreate --name test --size 9g ceph-iscsi-vg Logical volume "test" created. [root@magna108 ubuntu]# dd if=/dev/zero bs=1M count=4 | tr "\0" "x" > /dev/ceph-iscsi-vg/test 4+0 records in 4+0 records out 4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.00857095 s, 489 MB/s [root@magna108 ubuntu]# dd if=/dev/ceph-iscsi-vg/test bs=1M count=4 iflag=direct status=none | hexdump 0000000 7878 7878 7878 7878 7878 7878 7878 7878 * 0400000 [root@magna108 ubuntu]# fallocate --length=28672 --offset=1m --punch-hole /dev/ceph-iscsi-vg/test; echo $? 0 [root@magna108 ubuntu]# dd if=/dev/ceph-iscsi-vg/test bs=1M count=4 iflag=direct status=none | hexdump 0000000 7878 7878 7878 7878 7878 7878 7878 7878 * 0100000 0000 0000 0000 0000 0000 0000 0000 0000 * 0107000 7878 7878 7878 7878 7878 7878 7878 7878 * 0400000 [root@magna108 ubuntu]# 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 (Red Hat Ceph Storage 5.0 bug fix and enhancement), 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:3294 |