+++ 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)
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
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'
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