NAS Neustart & Portainer

  • Hi,

    ich würde gerne wissen, was hier die "best practise" ist, wenn man das NAS neustarten will und verschiedene Dienste in Portainer laufen hat.

    Vermutlich wäre es besser, die erstmal manuell alle zu stoppen vorher, oder?

    VG

  • Das stoppen der Container organisiert das NAS von selbst, einfach die reguläre Funktion "Neu starten" nutzen :).

    This image is available to members.
    Register for free to see all images in full size.

  • Ja ich frag mich nur ob das nicht ein etwas zu harter "cut" ist. Wenn da Datenbanken laufen kenn ich das eigentlich so, dass man so etwas wie einen soft shutdown mit grace period hat.

  • Eigentlich nicht, ich habe 2 Synology und 2 UGREEN NAS. (siehe meine Signatur)

    Auf allen 4 läuft Docker und bei keiner habe ich beim reboot, oder aus / ein Schalten darauf geachtet. Da gab es deshalb bisher noch nie Probleme.

    Meine Hardware

    iDX6011Pro 64GB RAM, 3x12 TB SG Enterpr., 2x2TB NVME Lexar NM790 Raid1,

    DXP4800+, 64GB RAM Kingst, 2x8TB WDRedPl. NVME 2x512GB Samsg 970EvoPlus

    DXP2800 1x12TB WDRedPl, 16GB RAM Crucial, NVME 2x256GB Samsg.Raid1,

    DS1525+, 2x8TB WD, 1x12TB SG IronWolf, 1x3TB WDRedPlus, 2x2TB NVME Lexar NM790 Raid1, 40GB ECC RAM

    DS720+ 2x3TB WDRedPl, 2x250GB NVME Samsg. 16GB RAM Crucial,

    DS218+ 1x12TB WD, 1x500GB SSD, RAM 10GB

    USV US3000, EatonEllip.PRO 850DIN, Zyxel XMG-108 8 x 2,5GB, Zyxel GS1200-8 x 1GB,

  • Da wird ja auch kein harter shutdown ausgeführt. Das System beendet den Docker Dienst, dabei werden alle Docker Container vorher normal beendet und erst dann geht das NAS aus.

  • Nun gut, das ist gut zu hören, jedoch nur weil in deinem Fall noch keine Probleme aufgetreten sind, heißt es für mich jetzt ehrlich gesagt nicht, dass das tatsächlich die sicherste Methode oder best practice ist.

    Hier gibts z.B. bei ner Oracle Datenbank Parameter, die man für nen Shutdown übergeben kann.

    Code
    SQL> SHUTDOWN [mode]

    The mode is normal, immediate, or abort.

    In a normal shutdown, Oracle Database waits for all currently connected users to disconnect and disallows any new connections before shutting down. This is the default mode.

    In an immediate shutdown, Oracle Database terminates and rolls back active transactions, disconnects clients, and shuts down.

    In an abort shutdown, Oracle Database terminates active transactions and disconnects users; it does not roll back transactions. The database performs automatic recovery and rollback the next time it is started. Use this mode only in emergencies.

    Administrator's Reference
    Learn how to start and shut down a database with SQL *Plus.
    docs.oracle.com

    MySQL, Postgres usw haben sicher auch ähnliche Methoden. Wenn die Datenbanken dann über Portainer laufen, welcher Befehl wird da gesendet, das frage ich mich halt.

    Nur um Risiken auszuschließen und nicht mit ner kaputten Datenbank oder korrupten Daten aufzuwachen.

  • Wenn ein Docker Container normal gestoppt wird, dann wird ein sigterm gesendet und in der PostgreSQL Doku steht folgendes

    Da gibt es also gar keine Probleme mit.

Participate now!

Join our community of more than 11,000 NAS users!

With a free account, you can ask your own questions, see all images in full size, download files and get notified as soon as someone replies.