Bug 1878077 - `/var/lib` is being truncated to `/ar/lib` on mounting shared_storage
Summary: `/var/lib` is being truncated to `/ar/lib` on mounting shared_storage
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterd
Version: rhgs-3.5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: RHGS 3.5.z Batch Update 4
Assignee: Nikhil Ladha
QA Contact: Leela Venkaiah Gangavarapu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-11 09:31 UTC by Leela Venkaiah Gangavarapu
Modified: 2021-04-29 07:20 UTC (History)
9 users (show)

Fixed In Version: glusterfs-6.0-50
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-29 07:20:36 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:1462 0 None None None 2021-04-29 07:20:53 UTC

Description Leela Venkaiah Gangavarapu 2020-09-11 09:31:31 UTC
Describe the issue:(please be detailed as possible and provide log snippets)
[Provide TimeStamp when the issue is seen]
On enabling glusterd_shared_storage, volfile that is being generated has a typo.

Is this issue reproducible? If yes, share more details.:
Yes

Steps to Reproduce:
1. Enable gluster_shared_storage on the gluster cluster
2. Perform `grep mount *` from `/var/lib/glusterd/vols/gluster_shared_storage/bricks`

Actual results:
`mount_dir=/ar/lib/glusterd/ss_brick`

Expected results:
`mount_dir=/var/lib/glusterd/ss_brick`
 

Additional info:

# rpm -qa | grep 'glusterfs-server'
glusterfs-server-6.0-45.el8rhgs.x86_64

root@dhcp35-48 leela_s1 /var/lib/glusterd/vols > 
# ls | wc
      0       0       0

# tail -n 1 /etc/fstab 
/dev/vg6/lv6 /bricks/brick6 xfs inode64,noatime,nodiratime 0 0

# g v list
No volumes present in cluster

# g v set all cluster.enable-shared-storage enable
volume set: success

# g v info
 
Volume Name: gluster_shared_storage
Type: Replicate
Volume ID: 7836cedf-9f7b-4bfd-af66-e6b188341bfb
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Bricks:
Brick1: 10.70.35.227:/var/lib/glusterd/ss_brick
Brick2: 10.70.35.156:/var/lib/glusterd/ss_brick
Brick3: dhcp35-48.lab.eng.blr.redhat.com:/var/lib/glusterd/ss_brick
Options Reconfigured:
storage.fips-mode-rchecksum: on
transport.address-family: inet
nfs.disable: on
performance.client-io-threads: off
cluster.enable-shared-storage: enable
nfs-ganesha: enable

root@dhcp35-48 leela_s1 /var/lib/glusterd/vols/gluster_shared_storage/bricks > 
# grep mount *
10.70.35.156:-var-lib-glusterd-ss_brick:mount_dir=/ar/lib/glusterd/ss_brick
10.70.35.227:-var-lib-glusterd-ss_brick:mount_dir=/ar/lib/glusterd/ss_brick
dhcp35-48.lab.eng.blr.redhat.com:-var-lib-glusterd-ss_brick:mount_dir=/ar/lib/glusterd/ss_brick

# tail -n 1 /etc/fstab 
dhcp35-48.lab.eng.blr.redhat.com:/gluster_shared_storage /var/run/gluster/shared_storage/ glusterfs defaults        0 0

Follow up from https://bugzilla.redhat.com/show_bug.cgi?id=1873469#c15

Comment 11 Leela Venkaiah Gangavarapu 2021-01-06 07:54:43 UTC
Hi All,

The bug fix is successfully verified as below:

# rpm -qa glusterfs-server
glusterfs-server-6.0-51.el8rhgs.x86_64

# ls /var/lib/glusterd/vols/ | wc
      0       0       0

# tail -n 1 /etc/fstab
/dev/vg6/lv6 /bricks/brick6 xfs inode64,noatime,nodiratime 0 0

# g v list
No volumes present in cluster

# g v set all cluster.enable-shared-storage enable
volume set: success

# g v info
 
Volume Name: gluster_shared_storage
Type: Replicate
Volume ID: e20df210-3098-4ed4-8a55-59ca9972f4a8
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Bricks:
Brick1: 10.70.47.81:/var/lib/glusterd/ss_brick
Brick2: 10.70.47.38:/var/lib/glusterd/ss_brick
Brick3: dhcp46-31.lab.eng.blr.redhat.com:/var/lib/glusterd/ss_brick
Options Reconfigured:
storage.fips-mode-rchecksum: on
transport.address-family: inet
nfs.disable: on
performance.client-io-threads: off
cluster.enable-shared-storage: enable

# grep -r mount /var/lib/glusterd/vols/gluster_shared_storage/
/var/lib/glusterd/vols/gluster_shared_storage/bricks/10.70.47.81:-var-lib-glusterd-ss_brick:mount_dir=/var/lib/glusterd/ss_brick
/var/lib/glusterd/vols/gluster_shared_storage/bricks/10.70.47.38:-var-lib-glusterd-ss_brick:mount_dir=/var/lib/glusterd/ss_brick
/var/lib/glusterd/vols/gluster_shared_storage/bricks/dhcp46-31.lab.eng.blr.redhat.com:-var-lib-glusterd-ss_brick:mount_dir=/var/lib/glusterd/ss_brick

# tail -n 1 /etc/fstab
dhcp46-31.lab.eng.blr.redhat.com:/gluster_shared_storage /run/gluster/shared_storage/ glusterfs defaults        0 0


Moving this bug to Verified, please comment/change status accordingly if needed.

Thanks,
Leela.

Comment 13 errata-xmlrpc 2021-04-29 07:20:36 UTC
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 (glusterfs bug fix and enhancement update), 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:1462


Note You need to log in before you can comment on or make changes to this bug.