Bug 1378815 - [Arbiter] Unable to create file/directory on root of the mount pt. when two bricks are down of a subvolume. (4x2+1)
Summary: [Arbiter] Unable to create file/directory on root of the mount pt. when two b...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: arbiter
Version: rhgs-3.2
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Ravishankar N
QA Contact: Karan Sandha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-23 10:08 UTC by Karan Sandha
Modified: 2016-09-23 11:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-23 11:32:18 UTC
Target Upstream Version:


Attachments (Terms of Use)
server (7.02 MB, application/x-xz)
2016-09-23 10:08 UTC, Karan Sandha
no flags Details
client (6.24 MB, application/x-xz)
2016-09-23 10:10 UTC, Karan Sandha
no flags Details
server (6.90 MB, application/x-xz)
2016-09-23 10:11 UTC, Karan Sandha
no flags Details
server (7.02 MB, application/x-xz)
2016-09-23 10:12 UTC, Karan Sandha
no flags Details

Description Karan Sandha 2016-09-23 10:08:53 UTC
Created attachment 1204094 [details]
server

Description of problem:
Volume goes into read only mode when two bricks are down from an arbiter subvolume of 4*(2+1) volume. Files cannot be created on root of the mounted directory.

Version-Release number of selected component (if applicable):

[root@dhcp46-231 3.8.2server]# gluster --version
glusterfs 3.8.4 built on Sep 20 2016 07:17:14
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.


How reproducible:
100%


Steps to Reproduce:
1. Create a 4x(2+1) arbiter volume - testvol
2. Mount it on client
3. Create 10 files and a directory on the mount point.
4. Now kill 2 bricks from the first subvolume i.e Data & Arbiter brick.
5. Create new files on the / of the mount point. 

Actual results:
Mount point goes into read-only mode. No files can be created after killing the bricks.

Expected results:
File creation should work for other bricks except the killed bricks subvolume.

Additional info:
if we create a directory and create files in that directory  it succeed. 
tried this on 2*3 volume and directory creation is successful.

Comment 2 Karan Sandha 2016-09-23 10:10:46 UTC
Created attachment 1204095 [details]
client

Comment 3 Karan Sandha 2016-09-23 10:11:42 UTC
Created attachment 1204096 [details]
server

Comment 4 Karan Sandha 2016-09-23 10:12:33 UTC
Created attachment 1204097 [details]
server

Comment 5 Ravishankar N 2016-09-23 11:32:18 UTC
The volume was initially created as a plain arbiter, i.e. 1x(2+1) and bricks were added to make it distributed. Since no rebalace/ fix layout was carried out, all creates were going to replicate-0 and hence failing. Things worked fine after a fix layout was performed.


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