Vorbereitung Upgrade auf PVE 6

grefabu

Well-Known Member
May 23, 2018
239
14
58
50
Moin,

mal zwei Fragen zur Vorbereitung zum Update auf PVE 6:

1. Den Vorbereitenden Upgrade von Corosync kann ich bei Laufenden Betrieb der 5.4er Installationen durchführen. Nur HA Funktionalitäten müssten, falls vorhanden vorher deaktiviert werden?

2. Ich habe eine Fehlermeldung/Warnung auf einem System beim Durchlauf von pve5to6:
Checking nodelist entries..
WARN: hosrv03: ring0_addr 'hosrv03' resolves to '10.0.2.4'.
Consider replacing it with the currently resolved IP address.
WARN: hosrv01: ring0_addr 'hosrv01' resolves to '10.0.2.2'.
Consider replacing it with the currently resolved IP address.
WARN: HOSRV02: ring0_addr 'HOSRV02' resolves to '10.0.2.3'.
Consider replacing it with the currently resolved IP address.
Die Groß/Kleinschreibung war ein Fehler ganz am Anfang beim Installieren. Das sehe ich nicht kritisch.
Die resolve Meldung kommt aber, weil es wirklich in unserem DNS mal eine Doppelbelegung bei einem Hostnamen gab. Der DNS Eintrag ist aber bereinigt:

$host hosrv01.peiker-cee.de
hosrv01.peiker-cee.de has address 10.0.2.2
$ host hosrv02.peiker-cee.de
hosrv02.peiker-cee.de has address 10.0.2.3
$ host hosrv03.peiker-cee.de
hosrv03.peiker-cee.de has address 10.0.2.4

Ich habe aber auch noch die IP Adressen in die jeweils lokalen /etc/hosts Dateien geschrieben:
root@hosrv03:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.0.2.2 hosrv01.peiker-cee.de hosrv01
10.0.2.3 hosrv02.peiker-cee.de hosrv02
10.0.2.4 hosrv03.peiker-cee.de hosrv03 pvelocalhost

Hier noch ergänzende Informationen:

root@HOSRV02:~# pvecm nodes

Membership information
----------------------
Nodeid Votes Name
4 1 hosrv01
2 1 HOSRV02 (local)
1 1 hosrv03
root@hosrv03:~# pvecm status
Quorum information
------------------
Date: Mon Aug 26 10:42:53 2019
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 0x00000001
Ring ID: 4/296
Quorate: Yes

Votequorum information
----------------------
Expected votes: 3
Highest expected: 3
Total votes: 3
Quorum: 2
Flags: Quorate

Membership information
----------------------
Nodeid Votes Name
0x00000004 1 10.0.2.2
0x00000002 1 10.0.2.3
0x00000001 1 10.0.2.4 (local)

Kann es sein dass ich die Hostnamen in der Datei /etc/pve/corosync.conf durch die IP Adressen ersetzen muss? Wie würde ich da vorgehen?
Reichte es die Datei an einer Maschine per Editor zu bearbeiten?
root@HOSRV02:~# cat /etc/pve/corosync.conf
logging {
debug: off
to_syslog: yes
}

nodelist {
node {
name: HOSRV02
nodeid: 2
quorum_votes: 1
ring0_addr: HOSRV02
}
node {
name: hosrv01
nodeid: 4
quorum_votes: 1
ring0_addr: hosrv01
}
node {
name: hosrv03
nodeid: 1
quorum_votes: 1
ring0_addr: hosrv03
}
}

quorum {
provider: corosync_votequorum
}

totem {
cluster_name: pve-ceecluster
config_version: 9
interface {
bindnetaddr: 10.0.2.4
ringnumber: 0
}
ip_version: ipv4
secauth: on
version: 2
}
 
1. (...). Nur HA Funktionalitäten müssten, falls vorhanden vorher deaktiviert werden?
Important Note: before the upgrade, stop all HA management services first—no matter which way you choose for upgrading to Corosync 3. Stopping all HA services ensures that no cluster nodes get fenced during the upgrade. This also means that there will not be any HA functionality available for the short duration of the Corosync upgrade. (Quelle)


2. (...)
Kann es sein dass ich die Hostnamen in der Datei /etc/pve/corosync.conf durch die IP Adressen ersetzen muss? Wie würde ich da vorgehen?
Reichte es die Datei an einer Maschine per Editor zu bearbeiten?
Muss nicht, aber es ist die weniger fehleranfällige Variante. Mehr Informationen dazu hier. Es reicht corosyn.conf zu bearbeiten, aber nach dieser Anleitung. Vorher natürlich in einem Test-Setup!
 
OK, Danke.

Ich habe die Adressen auch extra in den hosts Files gepflegt, um unabhängig vom DNS zu sein.
 
  • Like
Reactions: Dominic

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!