+++ This bug was initially created as a clone of Bug #1028281 +++ Description of problem: When we try to create volume with bricks in root partition, gluster cli will give following error. But it creates volume successfully in script mode. gluster volume create gv1 sumne.sumne:/gfs/gv1_b1 sumne.sumne:/gfs/gv1_b2 volume create: gv1: failed: The brick sumne.sumne:/gfs/gv1_b1 is is being created in the root partition. It is recommended that you don't use the system's root partition for storage backend. Or use 'force' at the end of the command if you want to override this behavior. How reproducible: 100% Steps to Reproduce: 1. Create volume with bricks dir in root partition gluster volume create gv1 sumne.sumne:/gfs/gv1_b1 sumne.sumne:/gfs/gv1_b2 It will fail with above mentioned error 2. Create volume with script mode gluster volume create gv1 sumne.sumne:/gfs/gv1_b1 sumne.sumne:/gfs/gv1_b2 --mode=script Creates volume successfully. Actual results: Creates volume successfully without any error. Expected results: Script mode should fail if brick dirs are system's root partition.
The idea here was 'force' is inbuilt into the command in script mode. Isn't that expected?
script mode bypasses all warnings and Yes/No kind of prompts. For example "Y" in volume stop. But in this case CLI is throwing error and script mode is succeeding, Problem with this is from UI(ovirt) we can't prevent users from creating bricks in system's root partition.
Verified with glusterfs-3.4.0.51rhs.el6rhs with the following steps: case-1 - without --mode=script ============================== [root@rhss1 ~]# gluster volume create test 10.70.37.86:/rhs/brick3 volume create: test: failed: The brick 10.70.37.86:/rhs/brick3 is a mount point. Please create a sub-directory under the mount point and use that as the brick directory. Or use 'force' at the end of the command if you want to override this behavior. case-2 - with --mode=script =========================== [root@rhss1 ~]# gluster volume create test 10.70.37.86:/rhs/brick3 --mode=script volume create: test: failed: The brick 10.70.37.86:/rhs/brick3 is a mount point. Please create a sub-directory under the mount point and use that as the brick directory. Or use 'force' at the end of the command if you want to override this behavior.
Can you please review the doc text for technical accuracy?
LGTM.
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-0208.html