concept
Erasure Coding
Erasure Coding splits data into data and parity shards. For example, MinIO might use a 4:2 erasure code (should use 6 disks), meaning each object is split into 4 data shards and 2 parity shards.
In a 4:2 erasure coding setup:
4 data shards hold the actual object data.
2 parity shards are created for redundancy.
In this configuration, every object is broken into smaller pieces, with redundancy pieces (parity shards) stored to allow recovery if a disk or node fails.
client
install
1 | curl https://dl.min.io/client/mc/release/linux-amd64/mc \ |
command
- development
1 | add development |
bucket
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20create bucket
mc mb <ALIAS>/<BUCKET>
list bucket
mc ls <ALIAS>
check bucket
mc ls <ALIAS>/<BUCKET>
check object
mc cat <ALIAS>/<BUCKET>/<OBJECT>
delete object
mc rm <ALIAS>/<BUCKET>/<OBJECT>
delete all data
mc rm --recursive --force <ALIAS>/<BUCKET>
force delete bucket
mc rb --force <ALIAS>/<BUCKET>erasure code
1 | set erasure code |