Map rbd image on multiple nodes...

Vassilis Kipouros

Active Member
Nov 2, 2016
54
6
28
48
Good day,

I have a small three node proxmox cluster with ceph.
Running CTs that all need access to a folder inside an rbd image.

Currently I use a fileserver VMfileserver,
that mounts the rbd image as second hd, exports nfs shares,
and all nodes mount the shared directory under /mnt/storage.

The CTs use mp: to access it. And since the folder is available to all nodes,
I can migrate my containers to any node.

I was thinking that maybe I could get rid of the fileserver VM and map rbd localy using:

# rbd -p [poolname] map [imagename]
# rbd showmapped
id pool image snap device
0 [poolname] [imagename] – /dev/rbd0
# mount /dev/rbd0 /mnt/storage

Since I want to migrate my containers between nodes, my question is:

- Can the rbd image be mapped and mounted simultaneously on all nodes?
- And if so, what would be the way to go about making the map&mount
of the rbd image automatic after reboot?

Any ideas/suggestions welcome.

Regards
 
I use btrfs or ext4...

So what do you propose I do?
Keep the fileserver vm?
Is there another way to give access on the image filesystem on multiple CTs?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!