You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
tobi 1f14846a12 readme 4 months ago
README.md readme 4 months ago
block_storage_2rep.yaml refactor for blog 4 months ago
block_storage_3rep.yaml refactor for blog 4 months ago
busybox.yaml refactor for blog 4 months ago
dashboard.yaml dashboard 4 months ago
fs.yaml readme 4 months ago
fs_storage.yaml readme 4 months ago
pvc-clone.yaml init 4 months ago
pvc.yaml refactor for blog 4 months ago
toolbox-job.yaml toolbox containers 4 months ago
toolbox.yaml toolbox containers 4 months ago

README.md

Basic Ceph yaml files

For some general information checkout my blog post about ceph. Otherwise the Rook.io documentation itself is really good, for prepping your cluster for ceph.

fs.yaml & fs_storage.yaml

Some deployments have the requirement that they can be read from more than one pod. This is where cephfs (fs.yaml) comes in. In ceph you can have object storage (AWS S3 kind of stuff, where you get large binary objects tagged with some meta data), block storage (behaving like a single linux disk that can be mounted on only a single host), cephfs (which is a filesystem layer on top of that, that acts more like a network file system - only this time with all the ceph goodness underneath).

toolbox.yaml & toolbox-job.yaml

list pools

$ ceph osd lspools
1 device_health_metrics
6 myfs-metadata
7 myfs-data0
8 2rep
9 3rep`

list volumes

$ rbd ls 2rep
csi-vol-026ae300-0acc-11eb-9eec-22555fb3e090
csi-vol-09127e78-0b30-11eb-9eec-22555fb3e090
csi-vol-173dd3bf-0b06-11eb-9eec-22555fb3e090
csi-vol-17559d06-0b06-11eb-9eec-22555fb3e090
csi-vol-264f7292-0b29-11eb-9eec-22555fb3e090
csi-vol-852e4c76-175f-11eb-9eec-22555fb3e090
csi-vol-9320336e-0b08-11eb-9eec-22555fb3e090
csi-vol-b3939699-0b09-11eb-9eec-22555fb3e090
csi-vol-b3ab32df-0b09-11eb-9eec-22555fb3e090
csi-vol-dbb1a612-0acc-11eb-9eec-22555fb3e090

backup volume to file

rbd export 2rep/csi-vol-026ae300-0acc-11eb-9eec-22555fb3e090 backup.img
Exporting image: 100% complete...done.