How to heal entries with insufficient metadata, in Gluster volumes assigned to RHHI / RHV?

Solution Verified - Updated -

Issue

Let's consider the following scenario for a Gluster volume that is part of a RHV storage domain or RHHI:


# gluster v heal test-vol info Brick host1:/brick1/brick /brick1/brick/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1 Status: Connected Number of entries: 1 Brick host2:/brick1/brick /brick1/brick/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1 Status: Connected Number of entries: 1 Brick host3:/brick1/arbiter Status: Connected Number of entries: 0

When reviewing the extended attributes for the file above in the gluster nodes, this file is not present in the third brick:


[root@host1 ~]# getfattr -d -m . -e hex /brick1/brick/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1 getfattr: Removing leading '/' from absolute path names # file: brick1/brick/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1 security.selinux=0x73797374656d5f753a6f626a6563745f723a676c7573746572645f627269636b5f743a733000 trusted.afr.dirty=0x000000000000000000000000 trusted.afr.test-vol-client-2=0x000000020000000100000000 trusted.bit-rot.version=0x02000000000000005aa64bc3000c141e trusted.gfid=0xd7500eb4513243a7bcec5a62f5b909ba [root@host2 ~]# getfattr -d -m . -e hex /brick1/brick/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1 getfattr: Removing leading '/' from absolute path names # file: brick1/brick/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1 security.selinux=0x73797374656d5f753a6f626a6563745f723a676c7573746572645f627269636b5f743a733000 trusted.afr.dirty=0x000000000000000000000000 trusted.afr.test-vol-client-2=0x000000020000000100000000 trusted.bit-rot.version=0x02000000000000005aa64ceb00032d72 trusted.gfid=0xd7500eb4513243a7bcec5a62f5b909ba [root@host3 ~]# getfattr -d -m . -e hex /brick1/arbiter/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1 getfattr: /brick1/arbiter/.shard/8c938193-ecc1-41c1-9d51-2a920e8baf11.1: No such file or directory

How to heal this entry?

Environment

  • RHV with Gluster storage domains / RHHI 1.8 with Gluster version below 3.5.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content