hyperreal.coffee

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 password

Add 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 1

Show replication status.

1mcli replicate status nas-local/sourcebucket

FreeBSD setup

Create a ZFS dataset to store MinIO data.

1sudo zfs create naspool/minio_data

Install the MinIO package.

1sudo pkg install -y minio

Configure 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_data

Start the MinIO daemon.

1sudo service minio start

Check the logs for any important info.

1sudo grep "minio" /var/log/messages

Reply to this post by email ↪