Skip to main content

Move to 3.2 with Center 3.0.3–3.2.0

This page is for a cluster with Center 3.0.3–3.2.0 (the vstack-center package on the management VM) and vStack OS 3.0, 3.1 or 3.2.0 nodes. For how to check this, see Choose a path to 3.2. The upgrade is performed as a single piece of work in three stages:

  • nodes 3.0, 3.1 and 3.2.0 → 3.2.6, one at a time (window A);
  • Center → 3.2.0 with the update kit (window B); virtual machines (VMs) keep running all this time;
  • right after it — enabling Internal Fabric, the network between the cluster nodes over which a VM on another node gets its disks from the node of its pool; with it, Center starts VMs on any node.

Before you begin​

  • You have key-based SSH access with root privileges to all nodes and to the management VM — the VM that runs Center.
  • You have the BMC console of each node and a management VM console that bypasses Center: on the node where its pool runs, cu -l /dev/nmdm0B.
  • You have a Center account with the Cluster master role.
  • The workstation has sh, ssh, curl and jq.

How to read the steps​

How to read the steps and what "stop" means — Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, "How to read the steps". Run workstation commands from the directory where you unpacked the script kit (step 2). Step 2 sets the VAPI_URL, VAPI_CRED, NODES and KEY variables; in a new terminal, set them again, from the same directory.

NotationWhat it is
<node>the management address of the node that you use for SSH
<N>the node number in the cluster — Node ID in the ccrd_cli output
<zNN>a storage pool, for example z01; the pools of a node — zpool list on it
<MGMT>the external address of the management VM; the Center web interface opens at it
<OWN>the node where the pool with the management VM currently runs: on it, zfs list | grep '/.vm_V4/000000000$' returns non-empty output
<fabric>, <tag>the first three octets of the Internal Fabric subnet (for example, 192.0.2) and its VLAN number — step 5
<fabric_if>, <buffers>the Internal Fabric interface on the nodes and the SPDK memory in gigabytes — step 6

Preparation — 1–3 days before window A, without downtime​

The VMs do not stop, and all changes are reversible.

1. Check that the cluster fits​

  • Where: management VM; each node.

On the management VM — the Center dispatcher version:

pkg query '%v' vstack-center-dispatcher

On each node — the node version:

freebsd-version -k # node version
sysctl -n kern.bootfile # /boot/kernel.GENERIC_PROD/kernel
pkg query '%v' FreeBSD-runtime # 14.2…

Which Center and node versions correspond to what — the tables in Choose a path to 3.2, checks 1 and 2.

Expected result: the dispatcher version is in the table — record it; 0.0.96 means Center is already 3.2.0, so skip window B. The nodes are 3.0, 3.1 or 3.2.0, the kernel is kernel.GENERIC_PROD, and FreeBSD-runtime is 14.2….

If not:

  • kernel 13.… — nodes of the 2.x line: stop, this transition is performed together with vStack support;
  • another kernel — stop;
  • the FreeBSD-runtime line is empty — the node was installed from installation media, and the update script will not update it: stop;
  • …-vstack-3.2.4-… or …-vstack-3.2.5-… on all nodes — Update nodes to 3.2.6;
  • already …-vstack-3.2.6-… on all nodes: with dispatcher 0.0.96, enable Internal Fabric using the page Enable Internal Fabric; with a lower dispatcher version — preparation steps 2, 4, 8 and 9, then window B, then step 1 of the page Enable Internal Fabric.

2. Prepare the workstation: scripts and account​

  • Where: workstation.
  1. Download the transition script kit and the checksums, verify the archive and unpack it:

    curl -O https://docs.vstack.com/hcp/3.2/files/upgrade-3.0-to-3.2/upgrade-3.0-to-3.2-tools.tar.gz
    curl -O https://docs.vstack.com/hcp/3.2/files/upgrade-3.0-to-3.2/SHA256SUMS
    grep tools.tar.gz SHA256SUMS | shasum -a 256 -c - # upgrade-3.0-to-3.2-tools.tar.gz: OK
    tar xzf upgrade-3.0-to-3.2-tools.tar.gz
  2. Write the login and password of the Center account with the Cluster master role to a file that only the owner can read:

    printf '%s\n%s\n' '<login>' '<password>' > center.cred
    chmod 600 center.cred
  3. Set the variables:

    export VAPI_URL=https://<MGMT>
    export VAPI_CRED=$PWD/center.cred
    export NODES="<node 1 address> <node 2 address> …"
    export KEY=~/.ssh/<node key> # if the key is not ~/.ssh/id_ed25519
  4. Check the API call and the duplicate search:

    sh tools/vapi.sh vm-list '{}' | jq '.result.data | length' # number of VMs in the cluster
    sh tools/dupcheck.sh # DUPLICATES: none

Expected result: OK for the archive, the tools/ and upgrade-to-3.2-r2/ directories, the number of VMs in the cluster, DUPLICATES: none.

If not: FAILED for the archive — download it again; FAILED again — stop. login failed — check the login and password in center.cred. A duplicate — Troubleshooting, the "A VM runs on two nodes at once" row.

You will need these commands later:

CommandWhat it does
sh tools/vapi.sh vms-stop '{"id":<id>,"hard_timeout":90}'stops a VM through Center
sh tools/vapi.sh vms-start '{"id":<id>,"node_id":<Center node id>}'starts a VM on the specified node
sh tools/vapi.sh wait <id> 1waits until the VM stops; with 3 instead of 1, until it starts
sh tools/dupcheck.shlooks for VMs started twice; must show DUPLICATES: none

The node configuration collection script from the kit is tools/vstackos.config-backup.sh; you need it in step 7.

3. Check whether VMs run outside the node of their pool​

  • Where: workstation.
sh tools/vapi.sh vm-list '{}' | jq '[.result.data[] | select(.rstart == 1)] | length'

Expected result: you have recorded the number of VMs that run outside the node of their pool.

0 — the standard order of work. More than 0 — VM disk sharing over NVMe-oF already works on the cluster. The order of work is the same, with a caveat: from the first reboot in window A until Internal Fabric is enabled (step 21), start VMs only with the node of their pool selected (node_id of the pool owner node), and warn the VM owners (step 9). Agree on the work plan with vStack support before you go through the nodes.

4. Check access to the release repositories​

  • Where: each node; management VM.

On the nodes, this is step 2 of the page Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6. On the management VM:

fetch -T 10 -qo /dev/null https://repo.vstack.com/center/3.2.0/repo/meta.conf && echo center-OK

Expected result: os-OK on each node, center-OK on the management VM.

If not:

  • Host does not resolve on the management VM — save a copy with cp -p /etc/resolv.conf /root/resolv.conf.pre-324, replace the nameserver lines in /etc/resolv.conf with nameserver <address> lines that use the node resolvers (cat /etc/resolv.conf on the node shows them), and check with diff /root/resolv.conf.pre-324 /etc/resolv.conf that only the nameserver lines have changed. Repeat the check.
  • Otherwise, open outgoing HTTPS from the nodes and the management VM to repo.vstack.com.
  • If access is open but there is no OK, send vStack support the external addresses that the nodes and the management VM use for outbound connections.

The work is impossible without access to the repositories.

5. Get the Internal Fabric network — a precondition​

  • Where: network engineers.

The Internal Fabric network is a separate VLAN on lagg20 and a separate /24 subnet for the cluster nodes only. For the requirements to pass to the network engineers, see Enable Internal Fabric. Record <fabric> and <tag>.

Expected result: the network is provided, and <fabric> and <tag> are known.

If not: there is no network — stop: do not start the work.

6. Pre-configure Internal Fabric​

Perform steps 3–5 of the page Enable Internal Fabric: the fabric VLAN on the nodes, the pool addresses in the cluster manager configuration, and the SPDK memory. Do not reboot the nodes: the settings take effect at the reboot in window A.

The node reserves the SPDK memory at boot, and this memory is not available to VMs. So an upgraded node has <buffers> gigabytes less memory for VMs.

7. Prepare each node​

On each node, perform steps 1–5 of the page Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, including steps 1a and 1b: record the state of the NVMe-oF target, check the telegraf settings, disable early microcode loading, download and verify the update script, do a dry run and back up the node configuration. In step 5, specify tools/vstackos.config-backup.sh instead of vstackos.config-backup.sh.

Expected result: the dry run shows the same plan on all nodes, and the configuration copy of each node is verified.

8. Prepare the Center update script​

  • Where: workstation; the commands run on the management VM.

Skip this step if the dispatcher version in step 1 is 0.0.96.

cd upgrade-to-3.2-r2 && scp -r mgmtvm-update root@<MGMT>:/root/ && cd ..
ssh root@<MGMT> 'sh -s' <<'EOF'
cd /root/mgmtvm-update && sha256sum -c SHA256SUMS && cp mgmtvm-update.sh mgmtvm-update-oldgen.sh /root/
test -f /usr/local/etc/vstack/settings.yml && echo settings-OK
sh /root/mgmtvm-update.sh --source release --version 3.2.0 > /root/mu-plan.txt 2>&1; echo plan-rc=$?
grep -E 'generation|plan:|ERROR' /root/mu-plan.txt
sh /root/mgmtvm-update.sh --source release --version 3.2.0 --dry-run > /root/mu-dry.txt 2>&1; echo dry-rc=$?
grep -E 'Number of packages|would be REMOVED|ERROR' /root/mu-dry.txt
df -h /
EOF

Expected result: mgmtvm-update.sh: OK and mgmtvm-update-oldgen.sh: OK; settings-OK; plan-rc=0 and dry-rc=0; the plan shows generation center and plan: world(reboot) app finish or plan: app finish; the dry run shows Number of packages lines; at least 4 GB is free on /.

If not: no settings-OK — stop. A code other than 0, another generation in the plan, or an ERROR line — stop; for the meaning of the codes, see Center update script exit codes.

9. Warn the VM owners​

  • Where: VM owners and cluster users; Center web interface.

Tell the VM owners the following, and add it to the work plan:

  • Window A. The VMs of a pool are stopped while the pool is transferred. The pool with the management VM is transferred twice, and while it is being transferred, the web interface is unavailable. Windows VMs are forcibly powered off unless the owner shuts them down; shut down database servers from inside, as agreed with the owner.
  • Window B. The Center web interface and API are unavailable; the VMs keep running.
  • From the first pool transfer until Internal Fabric is enabled right after window B, VMs are not started or restarted from the web interface or from external systems — self-service panels and automation that work through the Center API. If a VM must be started, an engineer does it through the API, selecting the node of its pool.

Before window A, resume suspended Windows VMs or, as agreed with the owner, stop them.

Window A — nodes one at a time, <OWN> last​

Upgrade the nodes one at a time, and the <OWN> node last. For each node, perform steps 10–14. Proceed to the next node only after the work on the current node is complete.

Until Internal Fabric is enabled, start VMs only through the API with a node selected

From the first pool transfer until step 21, start VMs only through the API, with the node_id of the node where their pool currently is — step 12. Do not start them from the web interface: Start selects a node without checking whether the fabric is enabled, and Start at node is hidden until the fabric is enabled.

  • Do not return a pool that has already run on a 3.2.6 node to a node that is not upgraded.
  • Transfer pools with the VMs stopped — Hard Transfer, step 11. Transfer a pool with Windows VMs between nodes of different versions only this way. A pool transfer with VM suspension, without rebooting the guests, is done only with vStack support.
  • Do not run zpool upgrade during the rolling upgrade or after it.

If a step says stop — Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, "If a step says stop". VMs whose start failed with code -440 wait for their pool to return; for them, you can wait for the support response.

10. Record the running VMs of the node's pools​

  • Where: node; workstation.

The node's pools — on the node:

ccrd_cli --service --command status | grep zpool_ | grep "node: *<N>;"

For each pool, on the workstation (P is the pool name, G is its guid):

P=<zNN>; G=$(ssh root@<node> "zpool get -H -o value guid $P"); echo $G
sh tools/vapi.sh vm-list '{}' | jq -r --arg g "$G" '.result.data[] | select(.pool==$g and .oper_status==3) | .vm_id' > running-$P.txt
wc -l running-$P.txt

Expected result: each pool of the node has a running-<pool>.txt file; wc -l showed how many VMs of the pool are running.

11. Drain the node​

Drain the node in the web interface — step 6 of the page Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6. Transfer the pools with the Transfer pool action in the Hard Transfer mode: the VMs of the pool stop.

vStack support transfers the pool with the management VM. With Center 3.0.3–3.0.5, after this pool is transferred, Center does not detect its new owner automatically — the owner is written to the Center database; inform support about this.

Expected result: the checks of step 6 of the page "Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6" have passed.

12. Start the VMs of the transferred pools​

  • Where: management VM; workstation.
  1. Find out which node the pool is on now — on the management VM:

    cd /tmp; su -m postgres -c "psql -At -d vstack -c \"select name, current_node from storage.pool where name = '<zNN>'\"" # <zNN>|<Center node id>

    With Center 3.0.3–3.0.5, repeat the query until the id of the new pool owner appears in the second column.

  2. Start the pool's VMs on this node — on the workstation, in batches of four:

    xargs -n 4 < running-$P.txt | while read batch; do
    for id in $batch; do sh tools/vapi.sh vms-start "{\"id\":$id,\"node_id\":<Center node id>}" | jq -c '.error // empty'; done
    for id in $batch; do sh tools/vapi.sh wait $id 3 >/dev/null || echo "$id NOT STARTED"; done
    done
    sh tools/dupcheck.sh

Expected result: no NOT STARTED lines, DUPLICATES: none.

If not: the error code is in the {"code":…} line before NOT STARTED. -440 — these VMs wait for the pool to return, step 14. Other errors (-452, -5, a duplicate) — Troubleshooting.

13. Upgrade the node​

Perform steps 7–11 of the page Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, including steps 8a and 8b: start the update, check before the reboot, install the 3.2 line components, switch the NVMe-oF target to spdk_tgt, reboot, and check the kernel, the version, the services and the fabric pre-configuration.

14. Return the node, pools and VMs​

  1. Return the workload — step 12 of the page Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6. Transfer the pools with Hard Transfer, and start the VMs as in step 12 of this page. A Windows VM occasionally hangs at the first start — stop it and start it again.
  2. Check the fabric addresses of the pools — step 12a of the page Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6.

Expected result: all VMs from running-<pool>.txt are running; data recovery has finished on all pools; DUPLICATES: none; the fabric addresses of the pools are assigned.

Window B — Center to 3.2.0​

Skip this window if the dispatcher version in step 1 is 0.0.96. The Center web interface and API are unavailable from step 17; the VMs run all the time.

If a step in window B says stop. The VMs run, and the nodes are on 3.2.6. Do not perform the next steps. Do not reboot the management VM with a reset, and if the script printed do NOT reboot, do not reboot it at all; do not run pkg manually and do not enable Center services manually. The meaning of the Center update script code — Center update script exit codes; Center rollback — Rollback, "Center in window B". Give vStack support the step number, the check output, and /var/log/mgmtvm-update.log and /var/log/vstack_center.log from the management VM — Collect data for support.

15. Check the cluster before you start​

  • Where: any node; workstation.

All nodes are on 3.2.6, and step 14 is done on each of them. Check the nodes, the pools and the duplicates:

ccrd_cli | grep -c ONLINE # on any node: number of nodes
for h in $NODES; do echo "== $h"; ssh -n root@$h 'zpool status -x; zpool status | grep -E "pool:|scan:"'; done
sh tools/dupcheck.sh # DUPLICATES: none

Resume suspended VMs or, as agreed with the owner, stop them.

Expected result: the number of ONLINE lines equals the number of nodes; each node shows all pools are healthy or no pools available; no scan: line contains in progress; DUPLICATES: none.

If not: data recovery (resilver) is in progress — wait and repeat. A node is not ONLINE or a pool is unhealthy — stop. A duplicate — Troubleshooting.

16. Take snapshots of the management VM​

  • Where: workstation; the commands run on <OWN>.
ssh root@<OWN> 'sh -s' <<'EOF'
V=$(zfs list -H -o name -t filesystem,volume | grep '/.vm_V4/000000000$'); echo $V
zfs list -H -o name -r $V | grep -v "^$V\$" | tee /root/mgmtvm-volumes.txt
for t in $(cat /root/mgmtvm-volumes.txt); do zfs snapshot $t@pre-center32 || { echo "FAIL $t"; break; }; done
zfs list -t snapshot -o name -r $V | grep pre-center32
EOF

Expected result: each volume has the @pre-center32 snapshot, and there is no FAIL. This is the Center rollback point; step 17 follows right after it.

17. Upgrade Center​

  • Where: management VM.

From this step on, the web interface and API are unavailable.

sh /root/mgmtvm-update.sh --source release --version 3.2.0 --snapshots-taken --reboot --detach

If the plan of step 8 contains world(reboot), the management VM reboots by itself. When it is available over SSH again, run the same command once more. To see the progress of the update:

sh /root/mgmtvm-update.sh --status > /tmp/st.txt; head -3 /tmp/st.txt

Expected result: phase: done.

If not: for the meaning of the code and what to do, see Center update script exit codes. Between the reboot and the repeated run, the Center services do not work — this is expected.

18. Check Center​

  • Where: management VM.
freebsd-version -kru
for s in postgresql rabbitmq influxd angie grafana vstack_center_dispatcher vstack_center_endpoint vstack_center_image_distributor; do printf "%s: " $s; service $s status >/dev/null 2>&1 && echo up || echo DOWN; done
grep _enable /etc/rc.conf.local
tail -1 /var/log/vstack_center.log # … finished … (exit=0)
fetch -qo /dev/null --no-verify-peer --no-verify-hostname https://127.0.0.1/ && echo web-OK
pkg query '%v' vstack-center-dispatcher # 0.0.96
cd /tmp; su -m postgres -c "psql -At -d vstack -c \"select o.value, p.deprecated_id, p.name from management.cluster_options o left join vm.os_profile p on p.id::text = o.value where o.an_option = 'Edges_profile_id'\""

Expected result: all services are up; the autostart of the Center services is YES; exit=0; web-OK; the dispatcher version is 0.0.96; the last line is <uuid>|105|EdgeOS 0.8 (the router OS profile, the vStack Edge v8 image); a regular user signs in to the web interface, and the VMs and nodes are in place.

If not: if 105|| is printed instead of <uuid>|105|EdgeOS 0.8, there is no v8 router profile, and Center will not create a single router. Add the profile on the management VM:

cd /tmp
cat > /root/edge-v8-profile.sql <<'SQL'
\set ON_ERROR_STOP 1
BEGIN;
DO $$ BEGIN
IF NOT EXISTS (SELECT 1 FROM vm.os_profile WHERE deprecated_id = 102) THEN RAISE EXCEPTION 'no edge profile 102 — STOP'; END IF;
END $$;
INSERT INTO vm.os_profile (deprecated_id, name, description, type_id, min_size, sector_size_logical, sector_size_physical, zvol, incarnation,
os_name, owner, guest_customization, def_hv_flt_sigabort_interval, def_hv_flt_sigabort_restarts, uefi, private, id, state,
net_link_pattern, zero_based_link, default_shell, is_cluster_shared)
SELECT 105, 'EdgeOS 0.8', 'vStack Edge 13.0 v8', type_id, 2147483648, 512, 4096, '.vm_images/vStack-edge-13.0-v8', to_timestamp(1750000000),
os_name, owner, guest_customization, def_hv_flt_sigabort_interval, def_hv_flt_sigabort_restarts, uefi, private, '019f7eeb-a99c-7787-ba49-dad7b687321b', 'active',
net_link_pattern, zero_based_link, default_shell, is_cluster_shared
FROM vm.os_profile WHERE deprecated_id = 102
AND NOT EXISTS (SELECT 1 FROM vm.os_profile WHERE deprecated_id = 105 OR zvol = '.vm_images/vStack-edge-13.0-v8');
UPDATE management.cluster_options SET value = (SELECT id::text FROM vm.os_profile WHERE deprecated_id = 105) WHERE an_option = 'Edges_profile_id';
COMMIT;
SQL
su -m postgres -c "psql -X -v ON_ERROR_STOP=1 -d vstack" < /root/edge-v8-profile.sql; echo rc=$?
service vstack_center_dispatcher restart

Expected result: UPDATE 1, rc=0, and the query above now prints <uuid>|105|EdgeOS 0.8.

If any other check result does not match — stop.

19. Switch external systems to the new OS profile IDs​

  • Where: management VM; owners of external systems.

In Center 3.2, an OS profile is specified by UUID; Center no longer accepts the previous number (-253). The "previous number → UUID" table:

cd /tmp; su -m postgres -c "psql -X -At -F ';' -d vstack -c 'select deprecated_id, id, name from vm.os_profile where deprecated_id is not null order by 1'" > /root/os-profile-uuid-map.csv

Give the table to the owners of external systems that create VMs through the API: they must replace the profile numbers with UUIDs.

20. Check that the nodes receive commands​

  • Where: management VM; workstation.
env HOME=/var/db/rabbitmq rabbitmqctl -q list_connections user | sort | uniq -c
grep 'VMs should be started' /var/log/vstack-center-dispatcher/$(date +%F).log | tail -1

On the workstation, run sh tools/dupcheck.sh.

Expected result: vm_controller, storage_user, nodeside_ctrl, net_user — as many of each as there are nodes; 0 VMs should be started; DUPLICATES: none.

If not: stop.

Enabling Internal Fabric — right after window B​

Enable the fabric immediately after window B, without a break and before you announce the end of the work. There are no reboots, and the VMs keep running.

If a step says stop while you enable the fabric. The nodes, Center and the VMs run as after window B. Start VMs only through the API, selecting the node of their pool; do not announce the end of the work. If the check on a Linux VM fails — Rollback, "Fabric". Give vStack support the step number, the check output, /var/log/nodes-run.log from the management VM and /var/log/spdk_tgt.log from the node.

21. Enable Internal Fabric​

Perform steps 7–10 of the page Enable Internal Fabric: the Center nodes role on the nodes, starting SPDK, the pool addresses in Center, and the check on one Linux VM.

Expected result: the Linux VM started on another node and returned to its own.

22. Announce the end of the work​

All nodes are on 3.2.6, Center is 3.2.0, and Internal Fabric is enabled (step 21). Announce the end of the work to the VM owners. From now on, VMs are started as usual, without selecting a node.

Acceptance — after 2–3 days of operation​

23. Accept the work and remove the snapshots​

  • Where: workstation; node; Center web interface.

After several days of normal operation, check:

  • that VM and node metrics are received;
  • the SPDK memory on the most loaded node — step 11 of the page Enable Internal Fabric.

Then, on the <OWN> node, delete the @pre-center32 snapshots of the management VM volumes (step 16); delete the snapshots left after the transfer of the management VM pool as instructed by support.

If not: determine the cause using the Troubleshooting section. Do not delete the snapshots until the cause is resolved.

Center update script exit codes​

The cause is in the last ERROR line of the /var/log/mgmtvm-update.log log on the management VM.

CodeWhat it meansWhat to do
2a precondition or the source: the repository is unavailable, there is no settings.yml, not enough space, another pkg is running, a major version change without --allow-major-upgradenothing has changed: fix the cause and retry
3pkg or the kernelif the message says do NOT reboot, do not reboot, and roll back with the snapshots — Rollback, "Center in window B"; otherwise, fix the cause and run the same command again
4copying /etc failednothing has changed: free up space on /var and retry
5after the app phase, not all services came upcheck the service log in /var/log/<service> and run the same command again
6, 7the root shell, /bootdo not reboot; roll back with the snapshots
8the application: database dump or restore, deploymentcheck /var/log/vstack_center.log, fix the cause and run the same command again. If the database restore has already completed, do not repeat it
10human action is required: check the draft settings, reboot, the previous kernel bootedfollow the message

The copy of /etc, /usr/local/etc and the boot files from /boot, and the package list are in /var/backups/mgmtvm-update/world-<time>/. For the script options, run sh /root/mgmtvm-update.sh --help.

Troubleshooting​

Problems of the node itself — kernel, boot, NVMe-oF targets, SPDK memory — Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, "Troubleshooting". Node update script codes — Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, "Update script exit codes".

What you seeWhat to do
A VM runs on two nodes at once: two bhyve: <id> processes, dupcheck.sh shows a duplicateDo nothing with the VM and contact vStack support immediately: two copies write to the same disk — View the cluster state on a node
VM start: VM does not exist or -5, although the VM directory exists in the poolMake sure that the VM is not running anywhere. Create the state link ln -s /pools/<zNN>/.vm_V4/<9-digit id>/vm.json /pools/<zNN>/.vm_V4_state/<id>.state and start the VM
Mass start after a pool transfer: some VMs respond with -452 Remote … attach errorStart VMs in batches of 3–5; start the VMs that failed to start one at a time, preferably on the pool owner node
/var/log/vstack_nvmf_initiator.log grows by tens of MB per second (IOCTL error / Unknown gctl_cmd: 0), and VM suspension on the node does not completeClear the log immediately: : > /var/log/vstack_nvmf_initiator.log. Do not restart the initiator until the VMs of the pool that run on other nodes are moved to the pool node. Contact support
-461The VM is already running on another node: check dupcheck.sh, do not start it a second time
A Windows VM does not shut down either normally or with hard_timeout: 600; the VM console shows the "Install Windows: The computer restarted unexpectedly… Windows installation cannot proceed" windowRecreate the VM. Do not power off Windows VMs during the initial installation

Rollback​

Where it failedWhat to do
fabric pre-configuration before going through the nodes (step 6)On each node, restore the copies: /usr/local/etc/ccrd/config.json.pre-nvmf to /usr/local/etc/ccrd/config.json, and the earliest /boot/loader.conf.local.pre-contigmem-* to /boot/loader.conf.local. You can leave the fabric VLAN. If the node has not rebooted yet, no reboot is needed
a node before the reboot (step 13: steps 7–8b of the page "Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6")Do not reboot the node and do not return it to service; investigate together with vStack support
a node after the rebootDo not return a node on the previous kernel to service. Restore it together with support, from the configuration copy of step 7 (step 5 of the page "Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6")

Irreversible: a pool that has run on a 3.2.6 node does not return to a node that is not upgraded.

Center in window B​

If steps 17–20 fail, roll Center back with the snapshots of step 16.

If the management VM responds, first copy /var/log/mgmtvm-update.log and /var/log/vstack_center.log from it. Then, on the workstation:

ssh root@<OWN> 'sh -s' <<'EOF'
vstack-vm vm --stop --id=0
while pgrep -qf '^bhyve: 0$'; do sleep 5; done; echo stopped
V=$(zfs list -H -o name -t filesystem,volume | grep '/.vm_V4/000000000$')
test -s /root/mgmtvm-volumes.txt || { echo "no volume list — STOP"; exit 1; }
for t in $(cat /root/mgmtvm-volumes.txt); do zfs list -H -t snapshot -o name $t@pre-center32 >/dev/null || { echo "no snapshot $t"; exit 1; }; done
for t in $(cat /root/mgmtvm-volumes.txt); do zfs rollback $t@pre-center32 || { echo "FAIL $t"; exit 1; }; done; echo rollback-OK
vstack-vm vm --start --id=0
EOF

Expected result: rollback-OK, then the previous web interface opens, and the dispatcher version is the same as in step 1. For external systems already switched to UUIDs (step 19), return the previous numbers.

If not: no rollback-OK — stop: do not start the management VM, and contact vStack support.

After a rollback, repeat window B from step 17: the snapshots of step 16 already exist. Build the table of step 19 again.

Fabric​

Internal Fabric rollback — Enable Internal Fabric, "Rollback". The SPDK memory is released at the next reboot of the node. Reboot the nodes one at a time, draining each one, as in window A.

Next​