Description of problem: ======================= we decided to fail the snapshot create when any of the brick is down until force is applied to the CLI. But when a brick is down, I am able to create a snapshot of a volume. [root@snapshot09 ~]# gluster volume status vol3 Status of volume: vol3 Gluster process Port Online Pid ------------------------------------------------------------------------------ Brick snapshot09.lab.eng.blr.redhat.com:/brick3/b3 49155 Y 12498 Brick snapshot10.lab.eng.blr.redhat.com:/brick3/b3 N/A N 9069 Brick snapshot11.lab.eng.blr.redhat.com:/brick3/b3 49155 Y 5187 Brick snapshot12.lab.eng.blr.redhat.com:/brick3/b3 49155 Y 5082 NFS Server on localhost 2049 Y 13272 Self-heal Daemon on localhost N/A Y 13279 NFS Server on snapshot10.lab.eng.blr.redhat.com 2049 Y 9761 Self-heal Daemon on snapshot10.lab.eng.blr.redhat.com N/A Y 9768 NFS Server on snapshot11.lab.eng.blr.redhat.com 2049 Y 5842 Self-heal Daemon on snapshot11.lab.eng.blr.redhat.com N/A Y 5849 NFS Server on snapshot12.lab.eng.blr.redhat.com 2049 Y 5738 Self-heal Daemon on snapshot12.lab.eng.blr.redhat.com N/A Y 5745 Task Status of Volume vol3 ------------------------------------------------------------------------------ There are no active volume tasks [root@snapshot09 ~]# gluster snapshot create rrr1 vol3 snapshot create: rrr1: snap created successfully [root@snapshot09 ~]# [root@snapshot09 ~]# [root@snapshot09 ~]# gluster snapshot list vol3 rrr1 [root@snapshot09 ~]# Version-Release number of selected component (if applicable): ============================================================= glusterfs-libs-3.5qa2-0.340.gitc193996.el6rhs.x86_64 How reproducible: ================= 1/1 Steps to Reproduce: =================== 1. Create and start volume 2. Kill one of the brick of volume 3. Create a snapshot of a volume Actual results: =============== Snapshot creation is successful. Expected results: ================= Snapshot creation should fail until force is applied.
Marking snapshot BZs to RHS 3.0.
Fixed in http://review.gluster.org/#/c/7520/
*** Bug 1089531 has been marked as a duplicate of this bug. ***
Setting flags required to add BZs to RHS 3.0 Errata
Version : glusterfs-3.6.0.4-1.el6rhs.x86_64 ======== When one brick is down, snapshot creation fails with the below message : gluster snap create snap2 vol0 snapshot create: failed: brick 10.70.44.54:/brick0/b0 is not started. Please start the stopped brick and then issue snapshot create command or use [force] option in snapshot create to override this behavior. Snapshot command failed Marking the bug as '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. http://rhn.redhat.com/errata/RHEA-2014-1278.html