Sheepdog and dedicated nic

webfrank

Member
May 28, 2011
38
1
6
Hi, Im experimenting with sheepdog and I would like to know if is it possible to redirect sheepdog traffic over dedicated nic. Sheepdog relies on corosync and I think all cluster traffic should go on same nic, or not?
 
Question has been asked on sheepdog ml and answer is to modify corosync configuration to have totem listening on desired ip address/interface but on proxmox this is not possible as cluster configuration in managed differently. Also changing cluster config I could not find a way to have corosync heartbeat on a nic and sheepdog replication on another one.
 
I ran into this same quandary while playing with sheepdog the last couple of days. I had a thought on this: my motivation is to remove sheepdog replication traffic from the nics the guests on my 2-node proxmox cluster use for their network traffic. So, given that, instead of a dedicated link for that purpose, have a dedicated link for corosync (and therefore sheepdog). It would have to be visible to my workstation, but I can live with that. So something like this: nic0 => subnet 10.0.1.0/24 for corosync/sheepdog and nic1 => subnet 10.0.0.0/24 (current subnet) for guest traffic.
 
Im not sure how sheepdog works, but the "normal linux" approach should work since proxmox is a normal linux installation after all. What I mean by that is the following:

I assume you use (a) dedicated IP address/es to access the sheepdog cluster, yes? If so you can give the interface you want the traffic to go over an IP address in the same subnet/vlan and use the linux routing table to ensure that traffic for the sheepdog address/es uses said interface (by giving that route the lowest metric)
 
sheepdog seems to just use the same interface as corosync. So I am wondering if I can change *that* address (well subnet) to use the dedicated interface. My main concern is I still need to be able to get to the management interface, but it looks like that is listening on the wildcard address, so that might 'just work'. I'll post my findings later...
 

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!