Re: determine filename from shard?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



great, I'll dig into when I get a chance and report back.

-wk

On 10/14/2019 10:05 AM, Amar Tumballi wrote:
Awesome, thanks! 

Then, I hope this https://github.com/gluster/glusterfs/commit/ab2558a3e7a1b2de2d63a3812ab4ed58d10d8619 is included in the build. 

What it means is, if you just list the xattrs of the file, you can get the file name (pgfid/basename) format. If there are no duplicate filenames, then it will be easy. Otherwise, you would need to use aux-gfid-mount to get details as told in the patch.

  1.  mount -t glusterfs -o aux-gfid-mount 127.0.0.2:testvol /mnt/aux_mount
  2. and then try doing the operation as told in commit message above on /mnt/aux_mount/.gfid/<gfid>

Regards,
Amar


On Mon, Oct 14, 2019 at 9:13 PM WK <wkmail@xxxxxxxxx> wrote:

6.5 on Ubuntu 18


On 10/13/2019 10:14 PM, Amar Tumballi wrote:
Which is the version of GlusterFS you are using?

There are few methods like 'gfid2path' option to fetch details of the file path from a gfid in versions above v6.0




On Mon, Oct 14, 2019 at 8:14 AM wkmail <wkmail@xxxxxxxxx> wrote:
We recently were trying to track down a high load situation on a KVM
node in a cluster running gluster (replication2 + arb).

Iotop on the affected node showed that gluster was involved showing
abnormally heavy writes. There wasn't any obvious activity on the
network coming into the VMs, so it was something internal to one of
them, so we had to keep looking

We then used gluster volume top which showed that a couple of shards
were being pounded but we didn't see a way to immediately associate
those shards with their VM file.

We eventually figured out the problem VM using other methods and
resolved the issue, but we would still like to know if there is a script
or recipe to determine what file a shard may belong to as that would
have sped up the resolution.

-wk




________

Community Meeting Calendar:

APAC Schedule -
Every 2nd and 4th Tuesday at 11:30 AM IST
Bridge: https://bluejeans.com/118564314

NA/EMEA Schedule -
Every 1st and 3rd Tuesday at 01:00 PM EDT
Bridge: https://bluejeans.com/118564314

Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-users
________

Community Meeting Calendar:

APAC Schedule -
Every 2nd and 4th Tuesday at 11:30 AM IST
Bridge: https://bluejeans.com/118564314

NA/EMEA Schedule -
Every 1st and 3rd Tuesday at 01:00 PM EDT
Bridge: https://bluejeans.com/118564314

Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux