-
Notifications
You must be signed in to change notification settings - Fork 6
MinioMigration
Alwin edited this page Nov 24, 2022
·
6 revisions
Minio changed the way it stores data in local datastores (your disk). Unfortunately there is no direct migration path. But creating a new minio instance and copying the content is straight forward. Here is how to do this:
- modify docker-compose.yml file:
- add new s3 service (latest minio version)
- rename old s3 service
- See example
- stop s3 service
docker-compose stop s3
- pull minio
docker-compose pull s3
- recreate the s3 services
docker-compose up -d s3old s3
- install minio-client on a system that has access to the two minio-instances (e.ie. docker-compose host)
- connect minio-client to the two systems (credentials as in docker-compose.yml)
mc alias set s3old http://localhost:9050 [minio-user] [minio-pwd]
mc alias set s3 http://localhost:9060 [minio-user] [minio-pwd]
- restart server (this creates the buckets on the new s3)
docker-compose restart server
- copy all the data to the new server
mc mirror --watch s3old s3
- stop old minio instance
docker-compose stop s3old
- remove s3old from
docker-compose.yml
[...]
s3old:
image: minio/minio:RELEASE.2022-10-24T18-35-07Z
restart: unless-stopped
volumes:
- ./data/s3:/data
environment:
- MINIO_ROOT_USER=[minio-user]
- MINIO_ROOT_PASSWORD=[minio-pwd]
- TZ=UTC
command: server /data
## depending on network setup
ports:
- "9050:9000"
healthcheck:
test: ["CMD", "curl", "-f", "http://s3old:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
ooNet:
ipv4_address: 172.16.0.3
s3:
image: minio/minio
restart: unless-stopped
volumes:
- ./data/s3new:/data
environment:
- MINIO_ROOT_USER=[minio-user]
- MINIO_ROOT_PASSWORD=[minio-pwd]
- TZ=UTC
command: server /data
## depending on network setup
ports:
- "9060:9000"
healthcheck:
test: ["CMD", "curl", "-f", "http://s3:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
ooNet:
ipv4_address: 172.16.0.33
[...]
Verein OpenOlitor www.openolitor.org
Doku globale Bedienungselemente
Doku Konfigurations-Checkliste
[Docu selon rubriques de menu]
[Docu selon masques]
Docu en fonction des processus de travail
[Docu des éléments globaux d'utilisation]
Docu check-list de configuration
[Docu des composantes du serveur]
[Docu des composantes Web]