Using VMs as quorum / admin nodes in a GPFS infiniband cluster
Hallo, we do have multiple bare-metal GPFS clusters with infiniband fabric, and I am actually considering adding some VMs in the mix, to perform admin tasks (so that the bare metal servers do not need passwordless ssh keys) and quorum nodes. Has anybody tried this? What could be the drawbacks / issues at GPFS level? Thanks a lot for the insights! cheers leo -- Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland Phone: +41 56 310 3369 leonardo.sala@psi.ch www.psi.ch
Hello, I have seen people do this to move manager node traffic off of the NSD servers, it is one way to help scale the cluster as the manager RPC traffic doesn't need to contend with the NSD servers for bandwidth. If you want the nodes to be able to participate in disk maintenance (mmfsck, mmrestripefs) make sure they have enough pagepool as a small pagepool could impact the performance of these operations. Jim Doherty On Monday, June 7, 2021, 08:55:49 AM EDT, Leonardo Sala <leonardo.sala@psi.ch> wrote: Hallo, we do have multiple bare-metal GPFS clusters with infiniband fabric, and I am actually considering adding some VMs in the mix, to perform admin tasks (so that the bare metal servers do not need passwordless ssh keys) and quorum nodes. Has anybody tried this? What could be the drawbacks / issues at GPFS level? Thanks a lot for the insights! cheers leo -- Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland Phone: +41 56 310 3369 leonardo.sala@psi.ch www.psi.ch _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi Leo, We use VMs for Spectrum Scale all of the time (including VM-based NAS clusters that span multiple sites) and all of the cloud-based offerings do as well, so it’s pretty clearly a thing that people are using. (Note: all of my experience is on Ethernet fabrics, so keep that in mind when I’m discussing networking.) But you’re right that there are a few pitfalls, such as… 1. Licensing. The traditional PVU license model discouraged adding machines to clusters and encouraged the concentration of server roles in a way that didn’t align with best practices. If you’re on capacity based licensing then this issue is moot. (We’ve been in that model for ages, and so consequently we have years of experience with GPFS and VMs. But with PVUs we probably wouldn’t have gone this way.) 2. Virtualized networking can be flaky. In particular, I’ve found SR-IOV to be unreliable. Suddenly in the middle of a TCP session you might see GPFS complain about “Unexpected data in message. Header dump: cccccccc cccc cccc…” from a VM whose virtual network interface has gone awry and necessitates a reboot, and which can leave corrupted data on disk when this happens, requiring you to offline mmfsck and/or spelunk through a damaged filesystem and backups to recover. Based on this, I would recommend the following: a. Do NOT use SR-IOV. If you’re using KVM then just stick with virtio (vnet and bridge interfaces). b. DO enable all of the checksum protection you can get on the cluster (e.g. nsdCksumTraditional=yes). This can act as a backstop against network reliability issues and in practice on modern machines doesn’t appear to be as big of a performance hit as it once was. (I’d recommend this for everyone honestly.) c. Think about increasing your replication factor if you’re running filesystems with only one copy of data/metadata. One of the strengths of GPFS is its support for replication, both as a throughput scaling mechanism and for redundancy, and that redundancy can buy you a lot of forgiveness if things go wrong. 3. Sizing. Do not be too stingy with RAM and CPU allocations for your guest nodes. Scale is excellent at multithreading for things like parallel inode scan, prefetching, etc, and remember that your quorum nodes will be token managers by default unless you assign the manager roles elsewhere, and may need to have enough RAM to support their share of the token serving workload. A stable cluster is one in which the servers aren’t thrashing for a lack of resources. Others may have additional experience and best practices to share, which would be great since I don’t see this trend going away any time soon. Good luck, Paul From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Leonardo Sala Sent: Monday, June 7, 2021 08:47 To: gpfsug-discuss@spectrumscale.org Subject: [gpfsug-discuss] Using VMs as quorum / admin nodes in a GPFS infiniband cluster This message was sent by an external party. Hallo, we do have multiple bare-metal GPFS clusters with infiniband fabric, and I am actually considering adding some VMs in the mix, to perform admin tasks (so that the bare metal servers do not need passwordless ssh keys) and quorum nodes. Has anybody tried this? What could be the drawbacks / issues at GPFS level? Thanks a lot for the insights! cheers leo -- Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland Phone: +41 56 310 3369 leonardo.sala@psi.ch<mailto:leonardo.sala@psi.ch> www.psi.ch<http://www.psi.ch>
On 07/06/2021 13:46, Leonardo Sala wrote:
Hallo,
we do have multiple bare-metal GPFS clusters with infiniband fabric, and I am actually considering adding some VMs in the mix, to perform admin tasks (so that the bare metal servers do not need passwordless ssh keys) and quorum nodes. Has anybody tried this? What could be the drawbacks / issues at GPFS level?
Unless you are doing some sort of pass through of Infiniband adapters to the VM's you will need to create an Infiniband/Ethernet router. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
I’ve done this a few times. Once with IPoIB as daemon network, and then created a separate routed network on the hypervisor to bridge (?) between VM and IPoIB network. Example RHEL config where bond0 is an IP-over-IB bond on the hypervisor: ———————— To give the VMs access to the daemon network, we need create an internal network for the VMs, that is then routed into the IPoIB network on the hypervisor. ~~~ # cat <<EOF > routed34.xml <network> <name>routed34</name> <forward mode='route' dev='bond0'/> <bridge name='virbr34' stp='on' delay='2'/> <ip address='10.0.0.1' netmask='255.255.255.0'> <dhcp> <range start='10.0.0.128' end='10.0.0.254'/> </dhcp> </ip> </network> EOF # virsh net-define routed34.xml Network routed34 defined from routed34.xml # virsh net-start routed34 Network routed34 started # virsh net-autostart routed34 Network routed34 marked as autostarted # virsh net-list --all Name State Autostart Persistent ---------------------------------------------------------- default active yes yes routed34 active yes yes ~~~ ————————- I see no issue with it — but beware that the FAQ lists some required tunings if the VM is to host desconly disks (paniconiohang?)… -jf man. 7. jun. 2021 kl. 14:55 skrev Leonardo Sala <leonardo.sala@psi.ch>:
Hallo,
we do have multiple bare-metal GPFS clusters with infiniband fabric, and I am actually considering adding some VMs in the mix, to perform admin tasks (so that the bare metal servers do not need passwordless ssh keys) and quorum nodes. Has anybody tried this? What could be the drawbacks / issues at GPFS level?
Thanks a lot for the insights!
cheers
leo
-- Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland
Phone: +41 56 310 3369leonardo.sala@psi.chwww.psi.ch
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hallo everybody thanks for the feedback! So, what it is suggested is to create on the VM (in my case hosted on vSphere, with only one NIC) a secondary IP within the IPoIP range, and create a route for that IP range to go over the public IP (and create a similar route on my bare-metal servers, so that the VM IPoIB IPs are reached over the public network) - is that correct? The only other options would be to ditch IPoIB as daemon network, right? What happens if some nodes have access to the daemon network over IPoIB, and other not - GPFS goes back to public ip cluster wide, or else? Thanks again! regards leo Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland Phone: +41 56 310 3369 leonardo.sala@psi.ch www.psi.ch On 07.06.21 21:49, Jan-Frode Myklebust wrote:
I’ve done this a few times. Once with IPoIB as daemon network, and then created a separate routed network on the hypervisor to bridge (?) between VM and IPoIB network.
Example RHEL config where bond0 is an IP-over-IB bond on the hypervisor: ————————
To give the VMs access to the daemon network, we need create an internal network for the VMs, that is then routed into the IPoIB network on the hypervisor.
~~~ # cat <<EOF > routed34.xml <network> <name>routed34</name> <forward mode='route' dev='bond0'/> <bridge name='virbr34' stp='on' delay='2'/> <ip address='10.0.0.1' netmask='255.255.255.0'> <dhcp> <range start='10.0.0.128' end='10.0.0.254'/> </dhcp> </ip> </network> EOF # virsh net-define routed34.xml Network routed34 defined from routed34.xml
# virsh net-start routed34 Network routed34 started
# virsh net-autostart routed34 Network routed34 marked as autostarted
# virsh net-list --all Name State Autostart Persistent ---------------------------------------------------------- default active yes yes routed34 active yes yes
~~~
————————-
I see no issue with it — but beware that the FAQ lists some required tunings if the VM is to host desconly disks (paniconiohang?)…
-jf
man. 7. jun. 2021 kl. 14:55 skrev Leonardo Sala <leonardo.sala@psi.ch <mailto:leonardo.sala@psi.ch>>:
Hallo,
we do have multiple bare-metal GPFS clusters with infiniband fabric, and I am actually considering adding some VMs in the mix, to perform admin tasks (so that the bare metal servers do not need passwordless ssh keys) and quorum nodes. Has anybody tried this? What could be the drawbacks / issues at GPFS level?
Thanks a lot for the insights!
cheers
leo
-- Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland
Phone: +41 56 310 3369 leonardo.sala@psi.ch <mailto:leonardo.sala@psi.ch> www.psi.ch <http://www.psi.ch>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org <http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss <http://gpfsug.org/mailman/listinfo/gpfsug-discuss>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
*All* nodes needs to be able to communicate on the daemon network. If they don't have access to this network, they can't join the cluster. It doesn't need to be same subnet, it can be routed. But they all have to be able to reach each other. If you use IPoIB, you likely need something to route between the IPoIB network and the outside world to reach the IP you have on your VM. I don't think you will be able to use an IP address in the IPoIB range for your VM, unless your vmware hypervisor is connected to the IB fabric, and can bridge it.. (doubt that's possible). I've seen some customers avoid using IPoIB, and rather mix an ethernet for daemon network, and dedicate the infiniband network to RDMA. -jf On Thu, Jun 17, 2021 at 8:35 AM Leonardo Sala <leonardo.sala@psi.ch> wrote:
Hallo everybody
thanks for the feedback! So, what it is suggested is to create on the VM (in my case hosted on vSphere, with only one NIC) a secondary IP within the IPoIP range, and create a route for that IP range to go over the public IP (and create a similar route on my bare-metal servers, so that the VM IPoIB IPs are reached over the public network) - is that correct?
The only other options would be to ditch IPoIB as daemon network, right? What happens if some nodes have access to the daemon network over IPoIB, and other not - GPFS goes back to public ip cluster wide, or else?
Thanks again!
regards
leo
Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland
Phone: +41 56 310 3369leonardo.sala@psi.chwww.psi.ch
On 07.06.21 21:49, Jan-Frode Myklebust wrote:
I’ve done this a few times. Once with IPoIB as daemon network, and then created a separate routed network on the hypervisor to bridge (?) between VM and IPoIB network.
Example RHEL config where bond0 is an IP-over-IB bond on the hypervisor: ————————
To give the VMs access to the daemon network, we need create an internal network for the VMs, that is then routed into the IPoIB network on the hypervisor.
~~~ # cat <<EOF > routed34.xml <network> <name>routed34</name> <forward mode='route' dev='bond0'/> <bridge name='virbr34' stp='on' delay='2'/> <ip address='10.0.0.1' netmask='255.255.255.0'> <dhcp> <range start='10.0.0.128' end='10.0.0.254'/> </dhcp> </ip> </network> EOF # virsh net-define routed34.xml Network routed34 defined from routed34.xml
# virsh net-start routed34 Network routed34 started
# virsh net-autostart routed34 Network routed34 marked as autostarted
# virsh net-list --all Name State Autostart Persistent ---------------------------------------------------------- default active yes yes routed34 active yes yes
~~~
————————-
I see no issue with it — but beware that the FAQ lists some required tunings if the VM is to host desconly disks (paniconiohang?)…
-jf
man. 7. jun. 2021 kl. 14:55 skrev Leonardo Sala <leonardo.sala@psi.ch>:
Hallo,
we do have multiple bare-metal GPFS clusters with infiniband fabric, and I am actually considering adding some VMs in the mix, to perform admin tasks (so that the bare metal servers do not need passwordless ssh keys) and quorum nodes. Has anybody tried this? What could be the drawbacks / issues at GPFS level?
Thanks a lot for the insights!
cheers
leo
-- Paul Scherrer Institut Dr. Leonardo Sala Group Leader High Performance Computing Deputy Section Head Science IT Science IT WHGA/036 Forschungstrasse 111 5232 Villigen PSI Switzerland
Phone: +41 56 310 3369leonardo.sala@psi.chwww.psi.ch
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.orghttp://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 17/06/2021 09:29, Jan-Frode Myklebust wrote:
*All* nodes needs to be able to communicate on the daemon network. If they don't have access to this network, they can't join the cluster.
Not strictly true. TL;DR if all your NSD/master nodes are both Ethernet and Infiniband connected then you will be able to join the node to the network. Doing so is not advisable however as you will then start experiencing node evictions left right and centre.
It doesn't need to be same subnet, it can be routed. But they all have to be able to reach each other. If you use IPoIB, you likely need something to route between the IPoIB network and the outside world to reach the IP you have on your VM. I don't think you will be able to use an IP address in the IPoIB range for your VM, unless your vmware hypervisor is connected to the IB fabric, and can bridge it.. (doubt that's possible).
ESXi and pretty much ever other hypervisor worth their salt has been able to do PCI pass through since forever. So wack a Infiniband card in your ESXi node, pass it through to the VM and the jobs a goodun. However it is something a lot of people are completely unaware of, including Infiniband/Omnipath vendors. Conversation goes can I run my fabric manager on a VM in ESXi rather than burn the planet on dedicated nodes for the job. Response comes back the fabric is not supported on ESXi, which shows utter ignorance on behalf of the fabric vendor.
I've seen some customers avoid using IPoIB, and rather mix an ethernet for daemon network, and dedicate the infiniband network to RDMA.
What's the point of RDMA for GPFS, lower CPU overhead? For my mind it creates a lot of inflexibility. If your next cluster uses a different fabric migration is now a whole bunch more complicated. It's also a "minority sport" so something to be avoided unless there is a compelling reason not to. In general you need a machine to act as a gateway between the Ethernet and Infiniband fabrics. The configuration for this is minimal, the following works just fine on RHEL7 and it's derivatives, though you will need to change your interface names to suite enable the kernel to forward IPv4 packets sysctl -w net.ipv4.ip_forward=1 echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf tell the firewall to forward packets between the Ethernet and Infiniband interfaces iptables -A FORWARD -i eth0 -o ib0 -j ACCEPT iptables -A FORWARD -i ib0 -o eth0 -j ACCEPT echo "-P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -A FORWARD -i eth0 -o ib0 -j ACCEPT -A FORWARD -i ib0 -o eth0 -j ACCEPT" > /etc/sysconfig/iptables enable and start the firewall systemctl enable --now firewalld However this approach has "issues", as you now have a single point of failure on your system. TL;DR if the gateway goes away for any reason node ejections abound, so you can't restart it to apply security updates. On our system it is mainly a plain Ethernet (minimum 10Gbps) GPFS fabric using plain TCP/IP. However the teaching HPC cluster nodes only have 1Gbps Ethernet and 40Gbps Infiniband (they where kept from a previous system that used Lustre over Infiniband), so the storage goes over Infiniband and we hooked a spare port on the ConnectX-4 cards on the DSS-G nodes to the Infiniband fabric. So the Ethernet/Infiniband gateway is only used as the nodes chat to one another. Further when a teaching node responds on the daemon network to a compute node it actually goes out the ethernet network of the node. You could fix that but it's complicated configuration. This leads to the option of running a pair of nodes that will route between the networks and then running keepalived on the ethernet side to provide redundancy using VRRP to shift the gateway IP between the two nodes. You might be able to do the same for the Infiniband I have never tried, but in general it unnecessary IMHO. I initially wanted to run this on the DSS-G nodes themselves because the amount of bridged traffic is tiny, 110 days since my gateway was last rebooted have produced a bit under 16GB of forwarded traffic. The DSS-G nodes are ideally placed to do the routing having loads of redundant Ethernet connectivity. However it turns out running keepalived on the DSS-G nodes is not allowed :-( So I still have a single point of failure on the system and debating what to do next. Given RHEL8 has removed the driver support for the Intel Quickpath Infiniband cards a wholesale upgrade to 10Gbps Ethenet is looking attractive. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
participants (6)
-
Jan-Frode Myklebust -
Jim Doherty -
Jonathan Buzzard -
Leonardo Sala -
Luis Bolinches -
Sanchez, Paul
