From 15e4e54a288792e893671fba5a54dd1d50089299 Mon Sep 17 00:00:00 2001 From: Wesley Hershberger Date: Tue, 28 Apr 2026 13:00:18 -0500 Subject: [PATCH] doc: Project-aware member shutdown instructions Fixes #1361 Signed-off-by: Wesley Hershberger --- doc/how-to/member_shutdown.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/how-to/member_shutdown.md b/doc/how-to/member_shutdown.md index da6d427d6..ab0de64aa 100644 --- a/doc/how-to/member_shutdown.md +++ b/doc/how-to/member_shutdown.md @@ -12,12 +12,16 @@ This guide provides instructions to safely shut down a MicroCloud cluster member (howto-member-shutdown-instances)= ## Stop or live-migrate all instances on the cluster member -To shut down a machine that is a MicroCloud cluster member, first ensure that it is not hosting any running LXD instances. +To shut down a machine that is a MicroCloud cluster member, first ensure that it is not hosting any running LXD instances. Check to make sure that no project has any running instances on the target cluster member: -You can stop all instances on a cluster member using the command: +```bash +lxc ls --all-projects +``` + +Explicitly shutting down LXD will shut down all instances running on that cluster member: ```bash -lxc stop --all +sudo snap stop lxd ``` Alternatively, for instances that can be {ref}`live-migrated `, you can migrate them to another cluster member without stopping them. See: {ref}`lxd:howto-instances-migrate` for more information.