Ce contenu n'est pas disponible dans la langue sélectionnée.
5.4. Creating Distributed Volumes
Figure 5.1. Illustration of a Distributed Volume
Warning
- No in-service upgrades - distributed only volumes need to be taken offline during upgrades.
- Temporary inconsistencies of directory entries and inodes during eventual node failures.
- I/O operations will block or fail due to node unavailability or eventual node failures.
- Permanent loss of data.
Create a Distributed Volume
gluster volume create
command to create different types of volumes, and gluster volume info
command to verify successful volume creation.
Prerequisites
- A trusted storage pool has been created, as described in Section 4.1, “Adding Servers to the Trusted Storage Pool”.
- Understand how to start and stop volumes, as described in Section 5.10, “Starting Volumes”.
- Run the
gluster volume create
command to create the distributed volume.The syntax isgluster volume create NEW-VOLNAME [transport tcp | rdma (Deprecated) | tcp,rdma] NEW-BRICK...
The default value for transport istcp
. Other options can be passed such asauth.allow
orauth.reject
. See Section 11.1, “Configuring Volume Options” for a full list of parameters.Red Hat recommends disabling theperformance.client-io-threads
option on distributed volumes, as this option tends to worsen performance. Run the following command to disableperformance.client-io-threads
:gluster volume set VOLNAME performance.client-io-threads off
# gluster volume set VOLNAME performance.client-io-threads off
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 5.1. Distributed Volume with Two Storage Servers
gluster v create glustervol server1:/rhgs/brick1 server2:/rhgs/brick1
# gluster v create glustervol server1:/rhgs/brick1 server2:/rhgs/brick1 volume create: glutervol: success: please start the volume to access data
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 5.2. Distributed Volume over InfiniBand with Four Servers
gluster v create glustervol transport rdma server1:/rhgs/brick1 server2:/rhgs/brick1 server3:/rhgs/brick1 server4:/rhgs/brick1
# gluster v create glustervol transport rdma server1:/rhgs/brick1 server2:/rhgs/brick1 server3:/rhgs/brick1 server4:/rhgs/brick1 volume create: glutervol: success: please start the volume to access data
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run
# gluster volume start VOLNAME
to start the volume.gluster v start glustervol
# gluster v start glustervol volume start: glustervol: success
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run
gluster volume info
command to optionally display the volume information.The following output is the result of Example 5.1, “Distributed Volume with Two Storage Servers”.Copy to Clipboard Copied! Toggle word wrap Toggle overflow