remount ceph disk on diff machine

tad

New Member
Jan 14, 2016
25
1
1
40
Hi,

I am wondering how I can remount a cephdisk if proxmox server is crashed and you want to startup the VM on a different proxmox host.

Reconstructing the VM is easy, but I cannot find how to reassign the disk.

Is there anyone who can help me with this?
 
Ceph osd's you can take from one Cluster-member and stick em into another Cluster-member without doing anything.
That is because all those nodes on that ceph cluster run with the same cluster/keys.

Now AFAIK what you'd need to do to reconstruct a Ceph-Cluster from a Proxmox server that has crashed is to have backups of the following files:

  • /etc/pve/ceph.conf <-- or replicate it based on your fsid
  • /etc/pve/storage.cfg <-- or replicate it
  • /etc/ceph/ceph.client.admin.keyring

you'd then recreate your ceph-cluster, plug the osd in and thats about it.


ps.: I have never done this, since all i ever do is restore a backup or plug the OSD into a working node of the same cluster to resolve such an issue.

Or consider the data not restore-worthy (no backup of node OS, no other cluster members)
 
@Q-wulf, that is not really what I mean I think.

We have a solid ceph cluster (not managed by proxmox) of 22 nodes with 2 osd disks each. 145TB redundant storage.

My question is, what happens when a proxmox server crashed (totally, not recoverable)?

Normally with an iscsi target, you can remount iscsi and see all the disks/files (same for NFS). But you cannot browse ceph RBD as far as I know. And even if you can, how can I mount a existing (ceph) disk to a new VM and rebuild the proxmox server manually?

 
oh i see.

well, if you keep a copy of the VMID.conf, you can just plug the appropriate ceph pool back into a new proxmox-node, then copy the vmID.conf over, then bring up the the VM.

you'd need to make sure to name the pool the same you have named it in the first proxmoxnode. (compare /etc/pve/storage.cfg)


you migth also wan't to read this:
http://docs.ceph.com/docs/hammer/man/8/rados/


ps.: i'd just keep a copy/backup of the working proxmox-node and/or have a working 3-node Proxmox HA-Cluster (so the necessary Configs are kept in sync) in case you loose a proxmox node. with 22 Ceph nodes, i doubt that would be too much of a burden :p, then you'd just follow the proxmox wiki, by wiping the broke node, installing a new node and then joining to the cluster. (then move the Vm back from the node where proxmox-HA has restarted it. )
 
@Q-wulf, Thanks for your answer! If I understand you correctly, the proxmox server will re-map the rbd automatically when it has been disconnected?

We will setup a cluster :) But it is also good to understand how it works before we run into problems :)
 

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!