This repository was archived by the owner on Mar 20, 2026. It is now read-only.
Repository navigation
decommission
Cesar Celis Hernandez edited this page Jan 30, 2024
·
1 revision
- Create cluster
createcluster nodeport
- install operator
installoperator nodeport
- install tenant lite
installtenant nodeport
- increase from 1 pool to 2 pools
- Wait couple of minutes until is ready:
- Get status:
mc alias set myminio https://localhost:30081 minio minio123 --insecure
mc admin decommission status myminio --insecureExpected:
$ mc admin decommission status myminio --insecure
βββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββ¬βββββββββ
β ID β Pools β Raw Drives Usage β Status β
β 1st β https://myminio-pool-0-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1} β 16.2% (total: 332 GiB) β Active β
β 2nd β https://myminio-pool-1-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1} β 16.2% (total: 332 GiB) β Active β
βββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββ΄βββββββββ- Start Decommission:
mc admin decommission start myminio/ https://myminio-pool-0-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1} --insecureExpected:
$ mc admin decommission start myminio/ https://myminio-pool-0-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1} --insecure
Decommission started successfully for `https://myminio-pool-0-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1}`.
- Monitor until complete:
$ mc admin decommission status myminio/ --insecure
βββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββ¬βββββββββββ
β ID β Pools β Raw Drives Usage β Status β
β 1st β https://myminio-pool-0-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1} β 16.2% (total: 332 GiB) β Complete β
β 2nd β https://myminio-pool-1-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1} β 16.2% (total: 332 GiB) β Active β
βββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββ΄βββββββββββ- Remove decommissioned pool from tenant spec
k edit tenant storage-lite -n tenant-lite
Cesars-MacBook-Pro:~ cniackz$ k edit tenant storage-lite -n tenant-lite
tenant.minio.min.io/storage-lite edited
- Operator log:
I0130 15:18:40.193678 1 event.go:298] Event(v1.ObjectReference{Kind:"Tenant", Namespace:"tenant-lite", Name:"myminio", UID:"58a44125-aff4-4b93-8b7f-95367bc4fceb", APIVersion:"minio.min.io/v2", ResourceVersion:"2509", FieldPath:""}): type: 'Normal' reason: 'PoolRemoved' Tenant pool myminio-pool-0 removed
- Status:
$ mc admin decommission status myminio --insecure
βββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββ¬βββββββββ
β ID β Pools β Raw Drives Usage β Status β
β 2nd β https://myminio-pool-1-{0...3}.myminio-hl.tenant-lite.svc.cluster.local/export{0...1} β 14.9% (total: 332 GiB) β Active β
βββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββ΄βββββββββ
- Pods from pool 0 are gone, pods from pool 1 are present:
$ k get pods -n tenant-lite
NAME READY STATUS RESTARTS AGE
myminio-pool-1-0 2/2 Running 0 9m40s
myminio-pool-1-1 2/2 Running 0 9m43s
myminio-pool-1-2 2/2 Running 0 9m46s
myminio-pool-1-3 2/2 Running 0 10m
- Decommission worked in 4.5.8
- Decommission worked in 5.0.11