Bug 1223201 - Simplify creation and set-up of meta-volume (shared storage)
Summary: Simplify creation and set-up of meta-volume (shared storage)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: snapshot
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: RHGS 3.1.0
Assignee: Avra Sengupta
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: Scheduler
Depends On: 1222013 1228181
Blocks: 1202842 1223636
TreeView+ depends on / blocked
 
Reported: 2015-05-20 05:59 UTC by Avra Sengupta
Modified: 2016-09-17 12:52 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.7.1-1
Doc Type: Bug Fix
Doc Text:
Clone Of: 1222013
Environment:
Last Closed: 2015-07-29 04:43:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description Avra Sengupta 2015-05-20 05:59:13 UTC
+++ This bug was initially created as a clone of Bug #1222013 +++

Description of problem:
The creation and setting up (mounting on nodes) of meta-volume(gluster_shared_storage) should be made simpler for the admin.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Anand Avati on 2015-05-15 09:52:45 EDT ---

REVIEW: http://review.gluster.org/10793 (glusterd/shared_storage: Provide a volume set option to create and mount the shared storage) posted (#1) for review on master by Avra Sengupta (asengupt)

--- Additional comment from Anand Avati on 2015-05-18 07:53:00 EDT ---

REVIEW: http://review.gluster.org/10793 (glusterd/shared_storage: Provide a volume set option to create and mount the shared storage) posted (#2) for review on master by Avra Sengupta (asengupt)

--- Additional comment from Anand Avati on 2015-05-19 11:00:46 EDT ---

REVIEW: http://review.gluster.org/10793 (glusterd/shared_storage: Provide a volume set option to create and mount the shared storage) posted (#3) for review on master by Avra Sengupta (asengupt)

--- Additional comment from Anand Avati on 2015-05-19 11:12:34 EDT ---

REVIEW: http://review.gluster.org/10793 (glusterd/shared_storage: Provide a volume set option to create and mount the shared storage) posted (#4) for review on master by Avra Sengupta (asengupt)

Comment 3 Avra Sengupta 2015-06-05 09:39:48 UTC
Upstream Url: http://review.gluster.org/#/c/10793/
Release 3.7 Branch Url: http://review.gluster.org/#/c/11086/
RHGS 3.1 Branch Url: https://code.engineering.redhat.com/gerrit/50103

Comment 4 senaik 2015-06-17 10:36:03 UTC
Version :glusterfs-3.7.1-3.el6rhs.x86_64

1) Create a 2 node cluster
 
2) Run gluster v set all  cluster.enable-shared-storage enable

3) Check gluster v info. 1x2 volume is created and mounted on 
/var/run/gluster/shared_storage 

gluster_shared_storage
Type: Replicate
Volume ID: ec529eb4-a43c-4c48-a64e-3c1e0634a3ae
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: rhs-arch-srv2.lab.eng.blr.redhat.com:/var/run/gluster/ss_brick
Brick2: 10.70.34.50:/var/run/gluster/ss_brick
Options Reconfigured:
performance.readdir-ahead: on
cluster.enable-shared-storage: enable

 df |grep shared
10.70.34.50:/gluster_shared_storage
                       27058304 2429952   23247104  10% /var/run/gluster/shared_storage

4)Initialise snap_scheduler from all nodes 

5)Enable snap_scheduler from one node

6)Add a job which creates snapshots every 5 mins 
 snap_scheduler.py add "Job1" "*/5 * * * * " "vol0"
snap_scheduler: Successfully added snapshot schedule

7)Check gluster snapshot list after sometime . Snapshots were created successfully.
 gluster snapshot list
Scheduled-Job1-vol0_GMT-2015.06.17-09.15.01
Scheduled-Job1-vol0_GMT-2015.06.17-09.20.01
Scheduled-Job1-vol0_GMT-2015.06.17-09.25.01

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Run cluster.enable-shared-storage option on a 4 node cluster , it creates a 1x3 shared storage volume. 

gluster v set all cluster.enable-shared-storage enable
volume set: success
[root@inception scripts]# gluster v info 
 
Volume Name: gluster_shared_storage
Type: Replicate
Volume ID: aa0943db-1eef-462a-8af2-b8ac3da7ff06
Status: Started
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Bricks:
Brick1: rhs-arch-srv2.lab.eng.blr.redhat.com:/var/run/gluster/ss_brick
Brick2: rhs-arch-srv3.lab.eng.blr.redhat.com:/var/run/gluster/ss_brick
Brick3: 10.70.34.50:/var/run/gluster/ss_brick
Options Reconfigured:
performance.readdir-ahead: on
cluster.enable-shared-storage: enable

Added jobs and snapshots were created successfully 

Marking the bug 'Verified'

Comment 5 errata-xmlrpc 2015-07-29 04:43:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1495.html


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