Bug 1382087
Summary: | gfs2_edit: savemeta does not save leaf chain blocks | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Robert Peterson <rpeterso> | ||||
Component: | gfs2-utils | Assignee: | Andrew Price <anprice> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.4 | CC: | cluster-maint, gfs2-maint, jpayne | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | gfs2-utils-3.1.10-1.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-08-01 21:57:28 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: | 1413684 | ||||||
Bug Blocks: | 1385242 | ||||||
Attachments: |
|
Description
Robert Peterson
2016-10-05 17:15:59 UTC
Created attachment 1207653 [details]
Script used to recreate the problem
Ben Marzinski created this script to touch one hundred files
that all have the same hash value, which forces GFS2 to put
some of them on a leaf chain block.
This should be easy to fix. Setting devel_ack flag for 7.4 The fix for this has gone upstream <https://git.fedorahosted.org/cgit/gfs2-utils.git/commit/?id=b4333e4109d0> so it will be pulled in when gfs2-utils is rebased. Verified in gfs2-utils-3.1.10-3.el7: [root@host-008 ~]# rpm -q gfs2-utils gfs2-utils-3.1.10-3.el7.x86_64 [root@host-008 ~]# mkfs.gfs2 -O -j1 -plock_nolock /dev/sda |grep "groups" Building resource groups: Done Resource groups: 801 [root@host-008 ~]# mount -tgfs2 /dev/sda /mnt/gfs2 [root@host-008 ~]# cd /mnt/gfs2 [root@host-008 gfs2]# /root/100_names.sh [root@host-008 gfs2]# cd - /root [root@host-008 ~]# umount /mnt/gfs2 [root@host-008 ~]# gfs2_edit savemeta /dev/sda 100names.with.same.hash.meta.gz There are 52428798 blocks of 4096 bytes in the filesystem. Filesystem size: 199.1023GB 52428798 blocks processed, 37876 saved (100%) Metadata saved to file 100names.with.same.hash.meta.gz (gzipped, level 9). [root@host-008 ~]# gfs2_edit -p root /dev/sda |grep Dir Directory block: lf_depth:17, lf_entries:83, lf_inode: 0x8178, lf_dist: 1, lf_nsec: 10215949, lf_sec: 1495588000, fmt:1200 next=0x83ad (83 dirents). [root@host-008 ~]# gfs2_edit printsavedmeta 100names.with.same.hash.meta.gz |grep 0x83ad 33663 (l=0x398): Block #33709 (0x83ad) (directory leaf) 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-2017:2226 |