How to check extended attributes on a symbolic link in Red hat Gluster Storage Volume

Solution Verified - Updated -

Issue

  • How to check extended attributes on a symbolic link on a Gluster volume.

    # getfattr -d -m . -e hex /mnt/data1/brick/linkfile
    getfattr: Removing leading '/' from absolute path names
    # file: mnt/data1/brick/linkfile
    security.selinux=0x73797374656d5f753a6f626a6563745f723a7061737377645f66696c655f743a733000
    
    # stat /mnt/data1/brick/linkfile
    File: «/mnt/data1/brick/linkfile» -> «/etc/group»
    Size: 10            Blocks: 0          IO Block: 4096   sym link
    Device: fc0dh/64525d    Inode: 517         Links: 2
    Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
    Context: system_u:object_r:glusterd_brick_t:s0
    Access: 2020-09-25 02:33:45.138525864 -0400
    Modify: 2020-09-25 02:33:45.138525864 -0400
    Change: 2020-09-25 02:33:45.139525947 -0400
    Birth: -
    

Environment

  • Red Hat Gluster Storage 3.x

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