Proxmox ceph quick question

nethfel

Member
Dec 26, 2014
151
0
16
Hi all,

I have my test setup running with my proxmox cluster and my ceph cluster. Everything is working well so far.

I do have one (what will probably seem like a stupid...) question -

Is there a way to, from the command line, view what's in the ceph storage? If I'm sitting on one of my proxmox nodes, in the web interface, I can see my two vm's there, but if I ssh into a node, I don't see a way to navigate there to see it from command line...

I tried rdb showmaps, but it comes back with an error (I guess because of the way proxmox maps the rdb storage? either that or I misunderstood that I could use rdb on a client) and of course mount and df don't show the storage at all...
 
If i am understanding right you want to see list of VM images stored in a particular Ceph pool? In that case you can use the following command:

#rbd -p <pool_name> ls

This will list all files, not objects stored in a pool.
 
I gave that a try on my proxmox ve node that is connected to the ceph storage and I get:

root@proxmox2:~# rbd -p ceph_block ls
2014-12-30 15:15:06.658296 7fdf6f245760 -1 did not load config file, using default settings.
no monitors specified to connect to.
rbd: couldn't connect to the cluster!

If I run it on the actual ceph host system, (well run a similar command)


root@proxceph1:~# rbd list
vm-100-disk-1
vm-101-disk-1

which is what is stored in the ceph storage.

I'd just like to find a way to list the items in ceph from console of the vmhost proxmox system - I can get the info from the gui, but sometimes it's just easier if I'm sitting at the command line to just run it. Plus I was curious as to how the ceph device is actually mounted...?