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