How to Set Up a Redundant Ceph Network??

root@pvetest1:~# cat /etc/pve/ceph.conf
[global]
auth_client_required = cephx
auth_cluster_required = cephx
auth_service_required = cephx
cluster_network = ['192.168.11.71/24,192.168.71.71/24']
fsid = 51bf76ca-9a65-425a-9100-222ca869f015
mon_allow_pool_delete = true
mon_host = 192.168.11.71
ms_bind_ipv4 = true
ms_bind_ipv6 = false
osd_pool_default_min_size = 2
osd_pool_default_size = 3
public_network = ['192.168.11.71/24,192.168.71.71/24']

[client]
keyring = /etc/pve/priv/$cluster.$name.keyring

[mon.pvetest1]
public_addr = 192.168.11.71
 
root@pvetest1:~# cat /etc/pve/corosync.conf
logging {
debug: off
to_syslog: yes
}

nodelist {
node {
name: pvetest1
nodeid: 1
quorum_votes: 1
ring0_addr: 192.168.71.71
ring1_addr: 192.168.11.71
}
node {
name: pvetest2
nodeid: 2
quorum_votes: 1
ring0_addr: 192.168.71.72
ring1_addr: 192.168.11.72
}
node {
name: pvetest3
nodeid: 3
quorum_votes: 1
ring0_addr: 192.168.71.73
ring1_addr: 192.168.11.73
}
}

quorum {
provider: corosync_votequorum
}

totem {
cluster_name: pve
config_version: 3
interface {
linknumber: 0
}
interface {
linknumber: 1
}
ip_version: ipv4-6
link_mode: passive
secauth: on
version: 2
}
 
the docs only talk about 'comma separated subnets' so the line
cluster_network = ['192.168.11.71/24,192.168.71.71/24']
should probably be:

Code:
cluster_network = 192.168.11.71/24,192.168.71.71/24
 
AFAIR, having multiple public or cluster Ceph networks will not magically provide switch failover. Multiple netwworks will merely tell Ceph daemons where to listen to and which networks will be used to talk both with Ceph daemons and clients, no more, no less. In fact, you will need to route both networks so a daemon can talk to every other Ceph component on either two networks.

To accomplish switch redundacy you must use link aggregation / bonding [1] (ideally LACP if your switch support stacking), then use a single public network and (optionally but recomended) a single cluster network.

[1] https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_bond
 

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!