Bug 1034151 - AFR : "read-subvolume" volume option can be used only on pure replicate volumes.
Summary: AFR : "read-subvolume" volume option can be used only on pure replicate volumes.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: replicate
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Bug Updates Notification Mailing List
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 10:50 UTC by spandura
Modified: 2016-09-17 12:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-03 17:19:44 UTC
Embargoed:


Attachments (Terms of Use)

Description spandura 2013-11-25 10:50:07 UTC
Description of problem:
=======================
On a distribute-replicate volume set "read-subvolume" volume option to a brick from one of the replicate subvolumes. The same value is applied to rest of the subvolumes also. 

Option: cluster.read-subvolume
Default Value: (null)
Description: inode-read fops happen only on one of the bricks in replicate. Afr will prefer the one specified using this option if it is not stale. Option value must be one of the xlator names of the children. Ex: <volname>-client-0 till <volname>-client-<number-of-bricks - 1>


Expected result:-
=====================
"read-subvolume" volume option should be sub-volume level not for the entire volume 

root@rhs-client11 [Nov-25-2013-10:38:32] >gluster v info vol2
 
Volume Name: vol2
Type: Distributed-Replicate
Volume ID: 459988a6-ae4d-4ac2-ac7d-31282ef446f7
Status: Created
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: rhs-client11:/rhs/bricks/vol2-b1
Brick2: rhs-client12:/rhs/bricks/vol2-b1-rep
Brick3: rhs-client11:/rhs/bricks/vol2-b2
Brick4: rhs-client12:/rhs/bricks/vol2-b2-rep
Options Reconfigured:
cluster.read-subvolume: vol2-client-0

Fuse vol file contents:
========================
volume vol2-replicate-0
    type cluster/replicate
    option read-subvolume vol2-client-0
    subvolumes vol2-client-0 vol2-client-1
end-volume

volume vol2-replicate-1
    type cluster/replicate
    option read-subvolume vol2-client-0
    subvolumes vol2-client-2 vol2-client-3
end-volume

Here "vol2-client-0" brick is not applicable for "vol2-replicate-1" subvolume. 

Version-Release number of selected component (if applicable):
==============================================================
glusterfs 3.4.0.43.1u2rhs built on Nov 12 2013 07:38:20

Comment 2 Vivek Agarwal 2015-12-03 17:19:44 UTC
Thank you for submitting this issue for consideration in Red Hat Gluster Storage. The release for which you requested us to review, is now End of Life. Please See https://access.redhat.com/support/policy/updates/rhs/

If you can reproduce this bug against a currently maintained version of Red Hat Gluster Storage, please feel free to file a new report against the current release.


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