6.6. Creating Striped Volumes
Important
Striped volume is a technology preview feature. Technology Preview features are not fully supported under Red Hat subscription level agreements (SLAs), may not be functionally complete, and are not intended for production use. However, these features provide early access to upcoming product innovations, enabling customers to test functionality and provide feedback during the development process.
This type of volume stripes data across bricks in the volume. Use striped volumes only in high concurrency environments, accessing very large files.
Note
The number of bricks must be equal to the stripe count for a striped volume.
Figure 6.6. Illustration of a Striped Volume
Create a Striped Volume
Use
gluster volume create
to create a striped volume, and gluster volume info
to verify successful volume creation.
Pre-requisites
- 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 create
command 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 istcp
. Other options can be passed such asauth.allow
orauth.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.
- Run
# gluster volume start VOLNAME
to start the volume.# gluster volume start test-volume Starting test-volume has been successful
- Run
gluster volume info
command to optionally display the volume information.