Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 1489439: Allows multiple disks per volume group. #450

Merged
merged 2 commits into from Oct 18, 2017

Conversation

devyanikota
Copy link
Contributor

Fixes bug 1489439, allowing multiple disks per volume group.
One can use the following config file:

[hosts]
node 1

[pv]
action=create
devices=vdb,vdc

[vg1]
action=create
vgname=RHS_vg1
pvname=vdb,vdc

@sac Can you please review the patch. Thanks.

Signed-off-by: Devyani Kota <devyanikota@gmail.com>
if section_dict['one-to-one'] == 'no':
vgnames *= len(pvnames)
else:
if section_dict['one-to-one'] == 'yes':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devyanikota you can remove this one-to-one option altogether.
Because now we provide provision to add more than one pv to a vg by default.

So it is one-to-one if vgnames == pvnames (which we do anyway)
Else if vgnames == 1 and < pvnames we aggregrate.

So, one-to-one does not carry use except checking an extra condition. Can you review and remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sac initially I thought we would be losing the feature of providing just one vgname and getting two vgs with their respective pvs, but there is no such feature in the manual creation either.
Now that I rethink, I think its best to remove this condition in order to avoid confusion, keeping in sync with the manual options.
Thank you.

Copy link
Member

@sac sac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments inline.

Removing the feature where we provide a single common vg name RHS_vg,
with two pvs vdb, vdc to create 2 vgs RHS_vg1 and RHS_vg2, since
we already provide the provision of one-to-one mapping where
vgnames = pvnames.

Signed-off-by: Devyani Kota <devyanikota@gmail.com>
@sac sac merged commit 08b6823 into gluster:master Oct 18, 2017
@devyanikota devyanikota deleted the vgs branch October 23, 2017 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants