Bug 1223201

Summary: Simplify creation and set-up of meta-volume (shared storage)
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Avra Sengupta <asengupt>
Component: snapshotAssignee: Avra Sengupta <asengupt>
Status: CLOSED ERRATA QA Contact: storage-qa-internal <storage-qa-internal>
Severity: unspecified Docs Contact:
Priority: high    
Version: rhgs-3.0CC: asrivast, rcyriac, rhs-bugs, rjoseph, senaik, storage-qa-internal, vagarwal
Target Milestone: ---Keywords: Triaged
Target Release: RHGS 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Scheduler
Fixed In Version: glusterfs-3.7.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1222013 Environment:
Last Closed: 2015-07-29 04:43:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1222013, 1228181    
Bug Blocks: 1202842, 1223636    

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