6.6. Creating Striped Volumes
Figure 6.6. Illustration of a Striped Volume
Create a Striped Volume
gluster volume createto create a striped volume, and
gluster volume infoto verify successful volume creation.
- A trusted storage pool has been created, as described in Section 5.1, “Adding Servers to the Trusted Storage Pool”.
- Understand how to start and stop volumes, as described in Section 6.10, “Starting Volumes”.
- Run the
gluster volume createcommand to create the striped volume.The syntax is
# gluster volume create NEW-VOLNAME [stripe COUNT] [transport tcp | rdma | tcp,rdma] NEW-BRICK...The default value for transport is
tcp. Other options can be passed such as
auth.reject. See Section 8.1, “Configuring Volume Options” for a full list of parameters.
Example 6.8. Striped Volume Across Two Servers
# gluster volume create test-volume stripe 2 transport tcp server1:/exp1/brick server2:/exp2/brick Creation of test-volume has been successful Please start the volume to access data.
# gluster volume start VOLNAMEto start the volume.
# gluster volume start test-volume Starting test-volume has been successful
gluster volume infocommand to optionally display the volume information.