此内容没有您所选择的语言版本。
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/hosts
file, and add storage node IP addresses. Also ensure that all nodes have all addresses in their/etc/hosts
file. - Install the rsync and xinetd packages:
yum install rsync xinetd
# yum install rsync xinetd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the
/etc/rsyncd.conf
file 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/rsync
file, and add the following lines:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the
xinetd
service, and configure it to start at boot time:systemctl start xinetd.service systemctl enable xinetd.service
# systemctl start xinetd.service # systemctl enable xinetd.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow