PowerFlex-Upgrade von 3.x auf 4.x schlägt fehl Ein Datenbankbackup schlägt aufgrund eines Problems mit ElasticSearch fehl
Summary: In diesem Artikel wird erläutert, wie Sie den Upgradefehler von 3.x auf 4.x aufgrund eines Backupfehlers und eines Problems mit ElasticSearch beheben.
Symptoms
Das PowerFlex-Upgrade von 3.x auf 4.x schlägt während des Importvorgangs fehl: Ein Datenbankbackup des alten PowerFlex 3.8.3 wird ausgelöst und schlägt fehl.
2025-05-21 15:10:06,299 INFO [backup-1,tid=252] (BackupApplianceCallable.java:216): Executing the script: /opt/Dell/scripts/backup-elasticsearch.py
2025-05-21 15:10:16,779 DEBUG [backup-1,tid=252] (ExecuteSystemCommands.java:103): Last login: Wed May 21 15:10:01 CEST 2025 on cron
2025-05-21 15:10:16,780 ERROR [backup-1,tid=252] (ExecuteSystemCommands.java:127): Non-zero return code running OS command /usr/bin/sudo /opt/Dell/scripts/backup-elasticsearch.py: 3
2025-05-21 15:10:16,781 ERROR [backup-1,tid=252] (ExecuteSystemCommands.java:128): Console output running OS command: Last login: Wed May 21 15:10:01 CEST 2025 on cron
2025-05-21 15:10:16,781 ERROR [backup-1,tid=252] (BackupApplianceCallable.java:225): Error executing the script /opt/Dell/scripts/backup-elasticsearch.py: rc=3
2025-05-21 15:10:16,781 ERROR [backup-1,tid=252] (BackupApplianceCallable.java:246): Unable to backup the database. com.dell.asm.i18n2.exception.AsmCheckedException: The appliance cannot be backed because of an unknown exception.
2025-05-21 15:10:16,785 INFO [backup-1,tid=252] (BackupApplianceCallable.java:73): Executing the script /opt/Dell/scripts/backup-clean.sh
ASM Manager-Protokoll
Line 16272: 2025-05-21 11:32:50,308 DEBUG [backup-1,tid=245] (ExecuteSystemCommands.java:103): rm: cannot remove ‘/var/es-backup/indices’: Directory not empty
Line 16276: 2025-05-21 11:32:50,315 ERROR [backup-1,tid=245] (ExecuteSystemCommands.java:128): Console output running OS command: rm: cannot remove ‘/var/es-backup/indices’: Directory not emptyCleanup of /var/es-backup failed with RC=1Last login: Wed May 21 11:32:35 CEST 2025
Line 18203: 2025-05-21 12:02:54,161 DEBUG [backup-1,tid=245] (ExecuteSystemCommands.java:103): rm: cannot remove ‘/var/es-backup/indices’: Directory not empty
Line 18207: 2025-05-21 12:02:54,165 ERROR [backup-1,tid=245] (ExecuteSystemCommands.java:128): Console output running OS command: rm: cannot remove ‘/var/es-backup/indices’: Directory not emptyCleanup of /var/es-backup failed with RC=1Last login: Wed May 21 12:02:37 CEST 2025Cause
Ein Problem mit den ElasticSearch-Daten
Resolution
Befehle werden in der PowerFlex Manager-CLI mit dem Konto delladmin ausgeführt.
Schritt 1 = Speicherplatz in der Datenbank für elastische Suche freigeben (maximale Größe sollte 5 GB sein)
-
curl 'localhost:9200/_cat/indices?v’
Wenn viele SNMP-Trap-Indizes vorhanden sind, können Sie ältere Traps löschen, wenn Sie damit einverstanden sind:
-
curl -X DELETE localhost:9200/snmp-traps-YYYY.MM.DD (this deletes a specific date)
Oder Sie können sie alle mit dem folgenden Befehl löschen:
-
curl -X DELETE 'http://localhost:9200/syslog* [localhost]'
Schritt 2 = Entfernen Sie die Protokolle der elastischen Suche.
-
sudo systemctl status Elasticsearch sudo systemctl stop Elasticsearch cd /var/log/elasticsearch (note: Do not delete vxfm-es-cluster.log) rm -rf *log.gz* rm -rf *gc.log* rm -rf *showlog.log* Systemctl start Elasticsearch sudo systemctl status Elasticsearch
Schritt 3 = Löschen ALLER Daten in ElasticSearch:
* Warnung: Der Kunde verliert alle historischen Warnmeldungen, Performancemetriken von Ressourcen und Syslog-Daten.
-
curl -XDELETE localhost:9200/_all
Überprüfen Sie den Status und beenden Sie den rsyslog-Service.
systemctl status rsyslog
systemctl stop rsyslog
Versuchen Sie es erneut und starten Sie den Syslog-Service:
systemctl start rsyslog