Red Hat Bugzilla – Bug 829673
VDSM: No handling for creating a brick in a directory that doesn't exist
Last modified: 2013-07-03 02:06:09 EDT
Created attachment 590139 [details]
When trying to create a brick in a sub-directory of a directory that doesn't exist, the brick creation fails. For example, try to create a brick in /dir1/dir2 while /dir1 doesn't exist.
Created attachment 590140 [details]
This is the behavior of GlusterFS, and user is expected to create appropriate brick directories before issuing the command. GlusterFS creates only the leaf level directories if required.
This will be documented in the current release. In the long term, we plan to provide a GUI where user selects disks / partitions in which the bricks are to be created, and in that case, the system will take care of creating appropriate directories before invoking the gluster command.
Since there is no response to above comment for quite some time, I assume that the explanation is acceptable.