-
Notifications
You must be signed in to change notification settings - Fork 0
tier s3
Cesar Celis Hernandez edited this page Apr 27, 2023
·
11 revisions
To show how a tier can be added and content observed:
- 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 s3 myminio WARM-TIER \
--endpoint https://s3.amazonaws.com \
--access-key <1password> \
--secret-key <1password> \
--bucket jhdkajshdajkshdajkshdkajshd \
--insecure
Expected:
Added remote tier WARM-TIER of type s3
- You can list your tiers:
$ mc ilm tier ls myminio
Name |Type |Endpoint |Bucket |Prefix |Region |Storage-Class
WARM-TIER |s3 |https://s3.amazonaws.com |jhdkajshdajkshdajkshdkajshd | | |
- Create ilm rule:
$ mc mb myminio/jhdkajshdajkshdajkshdkajshd --insecure
Bucket created successfully `myminio/jhdkajshdajkshdajkshdkajshd`.
$ mc ilm add myminio/jhdkajshdajkshdajkshdkajshd --transition-days 0 --transition-tier WARM-TIER
Lifecycle configuration rule added with ID `ch5cf3pjr928eq29lidg` to myminio/jhdkajshdajkshdajkshdkajshd.
touch a.txt
echo "Hello MinIO Team, content file is same just name is different" > a.txt
mc cp a.txt myminio/jhdkajshdajkshdajkshdkajshd --insecure
$ touch a.txt
$ echo "Hello MinIO Team, content file is same just name is different" > a.txt
$ mc cp a.txt myminio/jhdkajshdajkshdajkshdkajshd --insecure
/Volumes/data8/a.txt: 62 B / 62 B ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.07
- Then enter in Amazon s3 and you will see your file with a different name: