- Run command
$ kubectl edit directpvdrives <NEW-DRIVE-ID>
and adddirectpv.min.io.volume/pvc-12345678
in the finalizer - Run command
$ kubectl directpv cordon <NEW-DRIVE-ID>
- Run command
$ kubectl edit directpvdrives <NEW-DRIVE-ID>
and remove thedirectpv.min.io.volume/pvc-12345678
finalizer - Run command
$ ./replace.sh <OLD-DRIVE-ID> <NEW-DRIVE-ID>
Drive CRD object is marked as Unavailable
, if drive met one of the following condition at startup or added at runtime or dynamic discovery sync.
- device size is less than 16 MiB.
- device is in readonly state.
- device contains partitions.
- device is used as swap space in linux.
- device is used in LVM, linux RAID or LUKS device.
- device is mounted somewhere else i.e. outside of
/var/lib/directcsi
.
As MinIO needs the CN to have the policy name and original mkcert
does not support this, download updated mkcert
from https://github.com/kanagarajkm/mkcert/releases/download/v1.4.3-1/mkcert
- Generate certificate files
mkcert localhost
- Copy generated
localhost-key.pem
andlocalhost.pem
tocerts
directory of minio server.
cp -avi localhost-key.pem ~/.minio/certs/private.key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import os | |
import subprocess | |
def _read_file(filename): | |
try: | |
with open(filename) as file: | |
return file.read().strip() |
Objects can be set to immutable using object lock. Once an object is uploaded, this feature is manageable by below APIs.
A bucket can be set to have default object lock configuration using below API.
Server1: minio server --address localhost:9001 https://localhost:9001/tmp/minio01/disk0{1..4} https://localhost:9002/tmp/minio02/disk0{1..4} https://localhost:9003/tmp/minio03/disk0{1..4} https://localhost:9004/tmp/minio04/disk0{1..2} https://localhost:9005/tmp/minio05/disk0{1..2}
Server2: minio server --address localhost:9002 https://localhost:9001/tmp/minio01/disk0{1..4} https://localhost:9002/tmp/minio02/disk0{1..4} https://localhost:9003/tmp/minio03/disk0{1..4} https://localhost:9004/tmp/minio04/disk0{1..2} https://localhost:9005/tmp/minio05/disk0{1..2}
Server3: minio server --address localhost:9003 https://localhost:9001/tmp/minio01/disk0{1..4} https://localhost:9002/tmp/minio02/disk0{1..4} https://localhost:9003/tmp/minio03/disk0{1..4} https://localhost:9004/tmp/minio04/disk0{1..2} https://localhost:9005/tmp/minio05/disk0{1..2}
Server4: minio server --address localhost:9004 https://localhost:9001/tmp/minio01/disk0{1..4} https://localhost:9002/tmp/minio02/disk0{1..4} https://localhost:9003
NewerOlder