Skip to content
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:

  1. modify docker-compose.yml file:
    • add new s3 service (latest minio version)
    • rename old s3 service
    • See example
  2. stop s3 service
    • docker-compose stop s3
  3. pull minio
    • docker-compose pull s3
  4. recreate the s3 services
    • docker-compose up -d s3old s3
  5. install minio-client on a system that has access to the two minio-instances (e.ie. docker-compose host)
  6. 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]
  7. restart server (this creates the buckets on the new s3)
    • docker-compose restart server
  8. copy all the data to the new server
    • mc mirror --watch s3old s3
  9. stop old minio instance
    • docker-compose stop s3old
  10. remove s3old from docker-compose.yml

Example of docker-compose.yml with second minio instance:

  [...]
  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
[...]

Dokumentation

OpenOlitor-Versionen

Doku nach Menupunkten

Doku nach Masken

Doku nach Abläufen

Doku globale Bedienungselemente

Doku Konfigurations-Checkliste

Technische Dokumentation

Documentation (fr)

[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]

Documentation (en)

Technical documentation

Clone this wiki locally