Bug 928781 - hangs when mount a volume at own brick
Summary: hangs when mount a volume at own brick
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: GlusterFS
Classification: Community
Component: fuse
Version: 3.3.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On: 1040348
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-28 12:38 UTC by gigahoge0001
Modified: 2014-12-14 19:40 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-14 19:40:30 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description gigahoge0001 2013-03-28 12:38:29 UTC
# ifconfig  | grep Bcast
          inet addr:192.168.0.30  Bcast:192.168.0.255  Mask:255.255.255.0

# gluster volume info

Volume Name: html
Type: Replicate
Volume ID: 
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: 192.168.0.30:/var/www/html
Brick2: 192.168.0.44:/var/www/html

# mount -t glusterfs 192.168.0.30:/html /var/www/html/to.gluster

# ls -l /var/www/html/to.gluster

hangs this terminal.

Comment 1 Niels de Vos 2014-09-27 13:47:31 UTC
There should not be any mountpoint on a subdir in a brick. We can add a check in the fuse client to prevent this.

The check would see if the mountpoint or any of its parent directories have the 'trusted.glusterfs.volume-id' extended attribute set. If so, that directory is the root of the brick and mounting should be prevented.

This can get implemented in one, or both of:
- xlators/mount/fuse/src/fuse-bridge.c
- xlators/mount/fuse/utils/mount.glusterfs.in

Comment 2 Niels de Vos 2014-10-06 22:05:25 UTC
This has been fixed in mainline and 3.6 already. Bug 1040348 introduces additional warnings in the mount.glusterfs script.

The patch at http://review.gluster.org/5931 can probably get backported easily. Maybe we should include some related improvements introduced by other patches as well.

Comment 3 Niels de Vos 2014-11-27 14:54:17 UTC
The version that this bug has been reported against, does not get any updates from the Gluster Community anymore. Please verify if this report is still valid against a current (3.4, 3.5 or 3.6) release and update the version, or close this bug.

If there has been no update before 9 December 2014, this bug will get automatocally closed.


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