Skip to content
Cesar Celis Hernandez edited this page Apr 24, 2023 · 3 revisions

Objective:

To show how a tier can be added:

Steps:

  • Clean MinIO
cd /Volumes/data1
rm -rf *
rm -rf .minio.sys 

cd /Volumes/data2
rm -rf *
rm -rf .minio.sys

cd /Volumes/data3
rm -rf *
rm -rf .minio.sys

cd /Volumes/data4
rm -rf *
rm -rf .minio.sys

cd /Volumes/data5
rm -rf *
rm -rf .minio.sys

cd /Volumes/data6
rm -rf *
rm -rf .minio.sys

cd /Volumes/data7
rm -rf *
rm -rf .minio.sys

cd /Volumes/data8
rm -rf *
rm -rf .minio.sys
  • Run MinIO in Window 1:
MINIO_ROOT_USER=minio MINIO_ROOT_PASSWORD=minio123 minio server /Volumes/data{1...4} --address :9000 --console-address :9001
  • Create ALIAS in Window 2:
mc alias set myminio http://localhost:9000 minio minio123
  • Create Tier:
mc ilm tier add minio myminio WARM-MINIO-TIER                     \
                                --endpoint https://play.min.io      \
                                --access-key Q3AM3UQ867SPQQA43P2F              \
                                --secret-key zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG              \
                                --bucket mybucket                   \
                                --prefix myprefix/                  \
                                --insecure

Expected:

$  mc ilm tier add minio myminio WARM-MINIO-TIER                     \
>                                --endpoint https://play.min.io      \
>                                --access-key Q3AM3UQ867SPQQA43P2F              \
>                                --secret-key zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG              \
>                                --bucket mybucket                   \
>                                --prefix myprefix/                  \
>                                --insecure
Added remote tier WARM-MINIO-TIER of type minio
  • You can list your tiers:
$ mc ilm tier ls myminio
Name             |Type   |Endpoint             |Bucket    |Prefix     |Region  |Storage-Class  
WARM-MINIO-TIER  |minio  |https://play.min.io  |mybucket  |myprefix/  |        |               
Clone this wiki locally