Hi Everyone,
Getting into using the CEPH RBD command because I need to identify storage usage in my CEPH cluster. When issuing the command below, it almost appears as though my snapshots are using an immense amount of space:
Excerpt of one VM:
So I tried issuing two commands, one to calculate all usage of everything including snapshots, and the other to calculate all images without snapshots (or MiB because there's only a couple of small disks that are in the MiB).
Both of those didn't seem quite right so then I tried issuing a command to calculate "provisioned" in case they are not thin-provisioned like on VM-Ware:
And now I'm simply not sure how my cluster is using 3.8TiB when all of my disks only add up to 2.654 TiB. I'm pretty certain that the rest is either being used by CEPH for redundancy, or is possibly the snapshots. I just don't feel like I have a clear enough understanding of what is using my storage.
Thanks for any guidance from more experienced members of the community or staff.
Tmanok
Getting into using the CEPH RBD command because I need to identify storage usage in my CEPH cluster. When issuing the command below, it almost appears as though my snapshots are using an immense amount of space:
Code:
rbd -p pool du
Excerpt of one VM:
Code:
Provisioned Used
vm-111-disk-1@Aug5thWindowsUpdates 245 GiB 213 GiB
vm-111-disk-1@PostReboot 245 GiB 213 GiB
vm-111-disk-1 245 GiB 41 GiB
Code:
rados -p pool df
Code:
total_objects 520496
total_used 3.8 TiB
total_avail 3.4 TiB
total_space 7.3 TiB
So I tried issuing two commands, one to calculate all usage of everything including snapshots, and the other to calculate all images without snapshots (or MiB because there's only a couple of small disks that are in the MiB).
Code:
rbd -p pool du | grep GiB | awk '{print $4}' | awk '{s+=$1} END {print s}'
4615.8 GiB
Code:
rbd -p pool du | grep GiB | grep -v -e Aug -e Post -e Pre | awk '{print $4}' | awk '{s+=$1} END {print s}'
2419.7 GiB
Both of those didn't seem quite right so then I tried issuing a command to calculate "provisioned" in case they are not thin-provisioned like on VM-Ware:
Code:
rbd -p pool du | grep GiB | grep -v -e Aug -e Post -e Pre | awk '{print $2}' | awk '{s+=$1} END {print s}'
2654 GiB
And now I'm simply not sure how my cluster is using 3.8TiB when all of my disks only add up to 2.654 TiB. I'm pretty certain that the rest is either being used by CEPH for redundancy, or is possibly the snapshots. I just don't feel like I have a clear enough understanding of what is using my storage.
Thanks for any guidance from more experienced members of the community or staff.
Tmanok