Bucket replication to remote MinIO instance
Use mcli to create aliases for the local and remote instances.
mcli alias set nas-local http://localhost:9000 username password
mcli alias set nas-remote http://ip.addr:9000 username password
Add configuration rule on source bucket for nas-local to nas-remote to replicate all operations in an active-active replication setup.
mcli replicate add nas-local/sourcebucket --remote-bucket nas-remote/targetbucket --priority 1
Show replication status.
mcli replicate status nas-local/sourcebucket
FreeBSD setup
Create a ZFS dataset to store MinIO data.
sudo zfs create naspool/minio_data
Install the MinIO package.
sudo pkg install -y minio
Configure the MinIO daemon settings in /etc/rc.conf.
minio_enable="YES"
minio_disks="/naspool/minio_data"
Set the required permissions on /naspool/minio_data.
sudo chown -R minio:minio /naspool/minio_data
sudo chmod u+rxw /naspool/minio_data
Start the MinIO daemon.
sudo service minio start
Check the logs for any important info.
sudo grep "minio" /var/log/messages