glusterfs icon indicating copy to clipboard operation
glusterfs copied to clipboard

Lock file on non-glusterfs-volume is taken for ever by glusterfs fuse after reboot

Open kripper opened this issue 1 year ago • 6 comments

Description of problem:

Lock file on non-glusterfs-volume is taken for ever by glusterfs fuse after forced reboot.

The exact command to reproduce the issue:

Used flock() from PHP on /tmp/test.lock which is not a glusterfs. After forced reboot (power failure) the lock file is taken for ever by this process:

/usr/sbin/glusterfs --process-name fuse --volfile-server=myvol --volfile-id=myvol /mnt/myvol

This problem has been there for over 8 years.

It's very easy to reproduce.

Expected results:

Lock should be released after reboot. And maybe not taken by glusterfs if it's not a glusterfs volume.

Mandatory info: - The output of the gluster volume info command:

Volume Name: backups Type: Distribute Volume ID: 782b8005-6db7-4b91-9854-a9a7ae326fef Status: Started Snapshot Count: 0 Number of Bricks: 1 Transport-type: tcp Bricks: Brick1: xxx:/home/datacenter/gluster-bricks/backups Options Reconfigured: performance.readdir-ahead: on
Volume Name: iso Type: Distribute Volume ID: c47ef09e-c383-4952-9b94-f243c40b019b Status: Started Snapshot Count: 0 Number of Bricks: 1 Transport-type: tcp Bricks: Brick1: xxx:/home/datacenter/gluster-bricks/iso Options Reconfigured: performance.readdir-ahead: on Volume Name: templates Type: Distribute Volume ID: 287346b6-679d-4ff5-a73f-1dabd6a9147e Status: Started Snapshot Count: 0 Number of Bricks: 1 Transport-type: tcp Bricks: Brick1: xxx:/home/datacenter/gluster-bricks/templates Options Reconfigured: performance.readdir-ahead: on

- The output of the gluster volume status command:

Status of volume: backups-h9 Gluster process TCP Port RDMA Port Online Pid

Brick xxx:/home/datacenter/gluster-bricks/backups 49152 0 Y 1557 NFS Server on localhost N/A N/A N N/A

Task Status of Volume backups

There are no active volume tasks

Status of volume: iso Gluster process TCP Port RDMA Port Online Pid

Brick xxx :/home/datacenter/gluster-bricks/iso 49153 0 Y 2391 NFS Server on localhost N/A N/A N N/A

Task Status of Volume iso

There are no active volume tasks

Status of volume: templates Gluster process TCP Port RDMA Port Online Pid

Brick xxx:/home/datacenter/gluster-bricks/templates 49154 0 Y 2764 NFS Server on localhost N/A N/A N N/A

Task Status of Volume templates

There are no active volume tasks

- The output of the gluster volume heal command:

Not issued.

Additional info:

- The operating system / glusterfs version:

centos-release-gluster6-1.0-1.el7.centos.noarch glusterfs-fuse-6.10-1.el7.x86_64 glusterfs-libs-6.10-1.el7.x86_64 glusterfs-client-xlators-6.10-1.el7.x86_64 glusterfs-api-6.10-1.el7.x86_64 glusterfs-server-6.10-1.el7.x86_64 libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.5.x86_64 glusterfs-6.10-1.el7.x86_64 glusterfs-cli-6.10-1.el7.x86_64

Note: Please hide any confidential data which you don't want to share in public like IP address, file name, hostname or any other configuration

kripper avatar Feb 22 '23 12:02 kripper