The loopback device serves as a virtual disk to hold the Object Storage service data.
Procedure
- If you are logged out, log back in to the Object Storage service.
- Using SSH, log in to the VMware Integrated OpenStack manager.
- From the VMware Integrated OpenStack manager, use SSH to log in to the controller01 node.
- Switch to root user.
- Create the loopback device.
truncate -s 5GB /srv/swift-disk1
mkfs.xfs /srv/swift-disk1
truncate -s 5GB /srv/swift-disk2
mkfs.xfs /srv/swift-disk2
truncate -s 5GB /srv/swift-disk3
mkfs.xfs /srv/swift-disk3
- Modify the /etc/fstab table file.
/srv/swift-disk1 /srv/node/sdb xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0
/srv/swift-disk2 /srv/node/sdc xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0
/srv/swift-disk3 /srv/node/sdd xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0
- Mount the loopback device.
mkdir -p /srv/node/sdb
mount /srv/node/sdb
mkdir -p /srv/node/sdc
mount /srv/node/sdc
mkdir -p /srv/node/sdd
mount /srv/node/sdd
chown -R swift:swift /srv/node
What to do next
You can now create the rsyncd.conf file to en able the rsync service. See Enable the rsync Service.