Este conteúdo não está disponível no idioma selecionado.
4.2. Configure rsyncd
To ensure replication, you must set up
rsyncd for your filesystems before you install and configure the Object Storage service. The following procedure must be performed on each storage node, while logged in as the root user. The procedure assumes that at least two XFS storage disks have been mounted on each storage node.
Example 4.2. Sample /etc/fstab Entry for Two XFS Storage Disks
/dev/sdb1 /srv/node/d1 xfs inode64,noatime,nodiratime 0 0 /dev/sdb2 /srv/node/d2 xfs inode64,noatime,nodiratime 0 0
/dev/sdb1 /srv/node/d1 xfs inode64,noatime,nodiratime 0 0
/dev/sdb2 /srv/node/d2 xfs inode64,noatime,nodiratime 0 0
Procedure 4.1. Configuring rsyncd
- Copy addresses from the controller's
/etc/hostsfile, and add storage node IP addresses. Also ensure that all nodes have all addresses in their/etc/hostsfile. - Install the rsync and xinetd packages:
yum install rsync xinetd
# yum install rsync xinetdCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the
/etc/rsyncd.conffile in a text editor, and add the following lines:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Multiple account, container, and object sections can be used. - Open the
/etc/xinetd.d/rsyncfile, and add the following lines:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the
xinetdservice, and configure it to start at boot time:systemctl start xinetd.service systemctl enable xinetd.service
# systemctl start xinetd.service # systemctl enable xinetd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow