directpv
Table of Content
directpv¶
clean up log¶
❯ kubectl get ns
NAME STATUS AGE
calico-apiserver Active 123d
calico-system Active 123d
default Active 124d
directpv Active 95d
kube-dashboard Active 86d
kube-node-lease Active 124d
kube-public Active 124d
kube-system Active 124d
metallb-system Active 122d
tigera-operator Active 123d
# all resources using pv/pvc from directpv were removed along with namespace
❯ kubectl directpv list volumes
No matching resources found
❯ kubectl directpv list drives
┌────────┬──────┬────────────────────────────┬─────────┬─────────┬─────────┬────────┐
│ NODE │ NAME │ MAKE │ SIZE │ FREE │ VOLUMES │ STATUS │
├────────┼──────┼────────────────────────────┼─────────┼─────────┼─────────┼────────┤
│ livaz2 │ sdb1 │ I-O_DATA_SSPL-UT (Part 1) │ 466 GiB │ 466 GiB │ - │ Ready │
│ nb5 │ sdb1 │ I-O_DATA SSPA-USC (Part 1) │ 466 GiB │ 466 GiB │ - │ Ready │
└────────┴──────┴────────────────────────────┴─────────┴─────────┴─────────┴────────┘
# remove all nodes/drives
❯ kubectl directpv remove --all
Removing livaz2/sdb1
Removing nb5/sdb1
# uninstall directpv
❯ kubectl directpv uninstall
DirectPV uninstalled successfully
❯ kubectl get ns
NAME STATUS AGE
calico-apiserver Active 123d
calico-system Active 123d
default Active 124d
kube-dashboard Active 86d
kube-node-lease Active 124d
kube-public Active 124d
kube-system Active 124d
metallb-system Active 122d
tigera-operator Active 123d