> Documentation index for agents: /hcp/3.3/en/llms.txt

# Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6

The update script on the node upgrades the OS and the node components. You upgrade nodes one at a time: you prepare a node in advance, without downtime, and then drain it, update it, reboot it, check it and return it to service. The commands on this page are for moving to vStack OS 3.2.6 from versions 3.0, 3.1 and 3.2.0.

The order for the whole cluster depends on which Center runs on the management VM. You identify it by the package on the management VM: `vstack-center` is Center 3.0.3–3.2.0, and the order is in [Move to 3.2 with Center 3.0.3–3.2.0](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md); `vStack-control-pane` is the earlier Center, and the order is in [Move to 3.2 from the earlier Center: overview](/hcp/3.3/en/upgrade/from-earlier/control-pane/overview/index.md). How to check — [Choose a path to 3.2](/hcp/3.3/en/upgrade/from-earlier/choose-path/index.md).

3.2.4 and 3.2.5 nodes are updated using the page [Update nodes to 3.2.6](/hcp/3.3/en/upgrade/update-nodes/index.md).

## Before you begin

- You have SSH access with `root` privileges to the node and access to its console over IPMI or BMC, in case the node does not come back on the network.
- The addresses that the nodes use to connect to the outside are on the allowlist of the vStack release repository. vStack support requests that they be added; without this, the script exits with code `2`.
- The previously upgraded node has returned to service, and data recovery has finished on all pools.
- An upgrade between major versions of vStack OS is done only together with vStack support.
- The preparation from the page of your scenario is done, including the Internal Fabric pre-configuration — [Choose a path to 3.2](/hcp/3.3/en/upgrade/from-earlier/choose-path/index.md).

## How to read the steps

- **Where** — the machine to run the step on:

  - **workstation** — your computer with `sh` and `ssh`. Run the commands in `sh` or `bash`, not in `zsh`. You start a `ssh root@<node> 'sh -s' <<'EOF'` … `EOF` block on the workstation, and it runs on the node;
  - **node** — the node over SSH. After you log in to the node, type `sh` first;
  - **management VM** — the virtual machine (VM) that runs Center, over SSH; you need it on the scenario pages for moving to 3.2.

- A comment after `#` shows what the command must print.

- **Expected result** — the result if everything is fine.

- **If not** — what to do. **Stop** — do not go on: record the step number and the output, and contact vStack support — [Collect data for support](/hcp/3.3/en/troubleshooting/collect-for-support/index.md). If the result is different and the step has no "If not", that is also a stop.

| Notation | What 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 |
| `<fabric>` | the first three octets of the Internal Fabric subnet, for example `192.0.2` |
| `<fabric_if>` | the Internal Fabric interface on the nodes, `vlan<tag>`; the same on all nodes |
| `<buffers>` | the SPDK memory on the node, in gigabytes |

The `<fabric>`, `<fabric_if>` and `<buffers>` values are set during the Internal Fabric pre-configuration — [Enable Internal Fabric](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#fabric-vlan), steps 3–5.

## Preparation — in advance, without downtime

Steps 1–5 do not stop VMs. Perform them on each node before the upgrade starts.

### 1. Record the state of the NVMe-oF target

- **Where:** node.

```sh
pgrep -lf '^/usr/local/bin/(spdk|nvmf)_tgt'   # NVMe-oF target
```

**Expected result:** you have recorded whether `spdk_tgt` is running on the node. You check the node against this record after the update — step 11.

The NVMe-oF target used to be called `nvmf_tgt`; in 3.2, it is `spdk_tgt`. Also check which targets are enabled:

```sh
grep -E '^(nvmf_tgt|spdk_tgt)_' /etc/rc.conf.local     # which targets are enabled
```

Record whether there is an `nvmf_tgt_enable="YES"` line and whether the `/usr/local/bin/nvmf_tgt` process is running. If there are no `nvmf_tgt_…` lines, skip step 8b on this node. If there is `nvmf_tgt_enable="YES"`, this node needs step 8b.

### 1a. Check the telegraf metrics collector settings

- **Where:** node.

```sh
grep -n -A3 'inputs.smart' /usr/local/etc/telegraf.conf
```

**Expected result:** the `[[inputs.smart]]` block has no `path = …` line.

**If not:** in `/usr/local/etc/telegraf.conf`, replace the `path = …` line of this block with `path_smartctl = "/usr/local/sbin/smartctl"`.

### 1b. Disable early microcode loading

- **Where:** node.

```sh
cp -p /boot/loader.conf.local /boot/loader.conf.local.pre-ucode-$(date +%Y%m%d)
sysrc -f /boot/loader.conf.local cpu_microcode_load=NO     # cpu_microcode_load: YES -> NO
```

**Expected result:** `cpu_microcode_load: YES -> NO`, or an empty value on the left if the line did not exist.

### 2. Check access to the release repository

- **Where:** node.

```sh
fetch -T 10 -qo /dev/null https://repo.vstack.com/os/3.2.6/update.sh && echo os-OK
```

**Expected result:** `os-OK`.

**If not:** open outgoing HTTPS from the node to `repo.vstack.com`. The node addresses must be on the allowlist — see "Before you begin".

### 3. Download and verify the update script

- **Where:** workstation.

Take the script from the release that you upgrade to: it is signed with the same key as the packages. The block downloads the `update.sh` script, its signature and the public key to `/root/upgrade-326` on the node, and checks the key fingerprint and the script signature. If the key is not yet at the standard path `/usr/share/keys/vstack/vstackos.pub`, the block puts it there.

```sh
ssh root@<node> 'sh -s' <<'EOF'
D=/root/upgrade-326; K=/usr/share/keys/vstack/vstackos.pub
mkdir -p $D; cd $D || exit 1
for f in update.sh update.sh.sig poudriere.pub; do
  fetch -q -o $f https://repo.vstack.com/os/3.2.6/$f || { echo "FETCH-FAIL $f"; exit 1; }
done
echo "key $(sha256 -q poudriere.pub)"
[ "$(sha256 -q poudriere.pub)" = ddf6ca993798a1120f8f5febdab293b9b2a279a888172422fbe510ccb0d82bb4 ] || { echo KEY-MISMATCH; exit 1; }
openssl dgst -sha256 -verify poudriere.pub -signature update.sh.sig update.sh || exit 1
if [ -e $K ]; then echo "pinned $(sha256 -q $K)"
else mkdir -p /usr/share/keys/vstack && install -m 0644 poudriere.pub $K && echo "pinned installed"; fi
EOF
```

**Expected result:** `key ddf6ca993798a1120f8f5febdab293b9b2a279a888172422fbe510ccb0d82bb4`, `Verified OK`, and `pinned installed` or `pinned` with the same fingerprint `ddf6ca99…82bb4`.

**If not:** `FETCH-FAIL` — go back to step 2. `KEY-MISMATCH` or no `Verified OK` — stop: do not run the script. `pinned` with a different fingerprint — stop: a different key is at the standard path.

The script, its signature and the key are published in the vStack release repository: <https://repo.vstack.com/>.

### 4. Do a dry run

- **Where:** workstation.

The block changes nothing on the node: it checks the time and shows the package installation plan.

```sh
ssh root@<node> 'sh -s' <<'EOF'
cd /root/upgrade-326 || exit 1
ntpq -pn | grep '^\*' || echo 'NTP: not synchronized'
rc=0; sh update.sh --controllers --base --source release --version 3.2.6 --dry-run > dry.out 2>&1 || rc=$?
echo dry-rc=$rc
grep -m1 -E 'using pinned pubkey|pubkey missing' dry.out
grep -E 'upgraded|reinstalled|to be installed|REMOVED|ERROR|would switch' dry.out | tail -20
EOF
```

**Expected result:** an NTP line with `*`, `dry-rc=0`, the `using pinned pubkey /usr/share/keys/vstack/vstackos.pub` line. The plan is the same as on the other nodes of the cluster. The `swap would switch to geli onetime` line is expected.

**If not:** `pubkey missing, fetching` — go back to step 3. `NTP: not synchronized` — fix the time on the node before the upgrade starts. `dry-rc` is not `0` — see the meaning of the code in [Update script exit codes](#exit-codes). The plan differs between nodes — stop: sort it out with support before the upgrade starts.

### 5. Back up the node configuration

- **Where:** workstation. The `vstackos.config-backup.sh` collection script is in the current directory: copy it there from the `tools/` directory of the script kit. How to download the kit — [Back up the node configuration](/hcp/3.3/en/upgrade/config-backup/index.md).

The block collects the configuration on the node, fetches the latest collection archive, unpacks it and verifies it against the manifest. Unpack it where the file system is case-sensitive — [Back up the node configuration](/hcp/3.3/en/upgrade/config-backup/index.md#case-sensitive).

```sh
ssh root@<node> 'sh -s -- --tag to-3.2.6 --tar' < vstackos.config-backup.sh
ssh root@<node> 'sh -s' <<'EOF' > vstackos-config-backup-<node>.tar.gz
cat $(ls -t /root/vstackos-config-backup/*/*/vstackos-config-backup-$(hostname -s)-*.tar.gz | head -1)
EOF
mkdir -p check-<node> && tar xzf vstackos-config-backup-<node>.tar.gz -C check-<node>
sh vstackos.config-backup.sh --verify check-<node>/<node name>
```

`<node name>` is what `hostname -s` prints on the node.

**Expected result:** `mismatched 0`.

**If not:** `FAIL` in the collection output or `MISMATCH` in the verification — stop.

## Update — the node is drained

Steps 6–12 are done one node at a time. Start the next node only when you have finished with this one.

### 6. Drain the node

First make sure that no VM runs on two nodes — [View the cluster state on a node](/hcp/3.3/en/os-cluster/cluster-state/index.md), step 4. A VM number on two nodes means stop.

Move the pools and the running VMs off the node to other nodes. How you do it depends on which Center runs on the management VM:

- **Center 3.0.3–3.2.0** — the node is drained in the web interface — [Drain a node before maintenance](/hcp/3.3/en/guides/drain-node/index.md). Transfer pools only with the **Transfer pool** action in the **Hard Transfer** mode. **Soft transfer** suspends the VMs of the pool, and on nodes before 3.2.5, suspending a pool with several VMs can crash the node — this is fixed in 3.2.5. A pool transfer with VM suspension is done only with vStack support. Until Internal Fabric is enabled, the VMs that the transfer left powered off are started through the API, as in step 12 of the page [Move to 3.2 with Center 3.0.3–3.2.0](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md#start-vms).
- **The earlier Center** — the node is drained using a separate page: [Drain a node with the earlier Center](/hcp/3.3/en/upgrade/from-earlier/control-pane/drain-node/index.md).

Then check the node and the cluster:

1. On the node, `vstack-cluster status` shows no `zpool_…` services under the line of this node. The `cluster-management` service can remain: it moves to another node by itself.
2. No VM is running on the node: `ls /dev/vmm` returns `No such file or directory` or an empty list.
3. On each node that holds pools, `zpool status | grep -E 'pool:|state:|scan:'` shows `state: ONLINE` for all pools, and the `scan:` lines do not show `resilver in progress`.

To learn how to read the output of these commands, see [View the cluster state on a node](/hcp/3.3/en/os-cluster/cluster-state/index.md).

### 7. Start the update

- **Where:** workstation. The reboot comes later, in step 9.

The block starts the update script on the node in the background. `--controllers` updates the vStack packages, `--base` updates the base system and the kernel, and `--no-restart` does not restart the services, because a reboot follows. The script writes the exit code to `update.rc` and the log to `update.log`.

```sh
ssh root@<node> 'sh -s' <<'EOF'
cd /root/upgrade-326 || exit 1
cat > run.sh <<'S'
#!/bin/sh
cd /root/upgrade-326
sh update.sh --controllers --base --source release --version 3.2.6 --no-restart --log /root/upgrade-326/update.log > update.out 2>&1
echo $? > update.rc
S
chmod 700 run.sh; rm -f update.rc; daemon -f /root/upgrade-326/run.sh; echo started
EOF
```

Wait until `update.rc` appears:

```sh
until ssh -n root@<node> 'test -f /root/upgrade-326/update.rc'; do sleep 10; done; echo done
```

**Expected result:** `started`, then `done`.

**If not:** no `started` — stop. If the wait takes longer than 15 minutes, check the progress: `ssh root@<node> 'tail /root/upgrade-326/update.log'`.

Before the update, the script saves `/etc`, `/usr/local/etc`, the boot files and `vstack-env.conf` to `/var/backups/etc-<time>`; after the update, it restores the accounts and the SSH, NTP and boot settings. The run summary is in `/var/backups/update-summary-<time>.txt`.

You set your own update mirror with the `--repo-url` option, only as instructed by vStack support — [Node utilities](/hcp/3.3/en/os-cli/cli/index.md).

### 8. Check before the reboot

- **Where:** workstation.

The block checks the update script exit code, the `ERROR` lines of the log, the microcode and the SPDK memory:

```sh
ssh root@<node> 'sh -s' <<'EOF'
cd /root/upgrade-326
echo "rc=$(cat update.rc) ERROR=$(grep -c ERROR update.log)"
grep cpu_microcode_load /boot/loader.conf.local
grep contigmem /boot/loader.conf.local
EOF
```

**Expected result:**

| Line | Expected |
| - | - |
| `rc=… ERROR=…` | `rc=0 ERROR=0`. `rc=8` with one `ERROR` line about swap — you can continue as well |
| `cpu_microcode_load` | `cpu_microcode_load="NO"` — step 1b |
| `contigmem` | three SPDK memory lines from the Internal Fabric pre-configuration — [Enable Internal Fabric, step 5](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#fabric-contigmem) |

For the meaning of the codes, see [Update script exit codes](#exit-codes).

**If not:** stop, and do not reboot the node.

### 8a. Install the 3.2 line components

- **Where:** workstation.

The block installs the 3.2 line packages on the node — the microcode, SPDK, the NVMe-oF initiator, the storage controller, and the VM and node metrics collectors — and enables the collectors.

```sh
ssh root@<node> 'sh -s' <<'EOF'
set -e
pkg install -y -r vstack-os cpu-microcode vStack-spdk vStack-nvmf-initiator vStack-storage-san vStack-vm-perfdata vStack-host-perfdata
sysrc -f /etc/rc.conf.local vstack_vm_perfdata_enable=YES vstack_host_perfdata_enable=YES
pkg info -e cpu-microcode-rc vStack-spdk vStack-nvmf-initiator && echo pkgs-OK
EOF
```

Then, on the node, check whether the previous VM metrics collectors remain:

```sh
grep -E '^vStackVMperfdata(CPU)?feeder_enable' /etc/rc.conf.local
```

If there are lines, stop the previous collectors and remove their lines:

```sh
service vStackVMperfdatafeeder stop
service vStackVMperfdataCPUfeeder stop
sysrc -f /etc/rc.conf.local -x vStackVMperfdatafeeder_enable vStackVMperfdataCPUfeeder_enable
```

**Expected result:** `pkgs-OK`; `/etc/rc.conf.local` has no `vStackVMperfdata(CPU)?feeder_enable` lines. The new VM metrics collector is checked after the reboot — step 11.

**If not:** stop.

### 8b. Switch the NVMe-oF target to `spdk_tgt`

- **Where:** node. Only on nodes that had the `nvmf_tgt_enable="YES"` line in step 1. Skip this step on the other nodes.

The change takes effect at the reboot in step 9; the `nvmf_tgt` that is running now stops with the reboot.

1. Check that the settings of the two targets match:

   ```sh
   cmp /usr/local/etc/nvmf_tgt.json /usr/local/etc/spdk_tgt.json && echo json-same
   ```

   `json-same` — go on. If the files differ or one of them is missing — stop: switch the target together with vStack support.

2. See what is enabled:

   ```sh
   grep -E '^(nvmf_tgt|spdk_tgt)_' /etc/rc.conf.local
   ```

3. If only `nvmf_tgt` is enabled (there is no `spdk_tgt_enable="YES"` line), and the `nvmf_tgt` process was running in step 1, enable `spdk_tgt` with the flags of the previous target and remove the `nvmf_tgt` lines:

   ```sh
   sysrc -f /etc/rc.conf.local spdk_tgt_flags="$(sysrc -f /etc/rc.conf.local -n nvmf_tgt_flags)"
   sysrc -f /etc/rc.conf.local spdk_tgt_enable=YES
   sysrc -f /etc/rc.conf.local -x nvmf_tgt_enable nvmf_tgt_flags
   ```

   If there is an `nvmf_tgt_rpc_addr` line, move it as well:

   ```sh
   sysrc -f /etc/rc.conf.local spdk_tgt_rpc_addr="$(sysrc -f /etc/rc.conf.local -n nvmf_tgt_rpc_addr)"
   sysrc -f /etc/rc.conf.local -x nvmf_tgt_rpc_addr
   ```

4. If only `nvmf_tgt` is enabled but its process was not running in step 1, or both targets are enabled, remove the `nvmf_tgt` lines and leave `spdk_tgt` as is:

   ```sh
   sysrc -f /etc/rc.conf.local -x nvmf_tgt_enable nvmf_tgt_flags
   ```

   If there is an `nvmf_tgt_rpc_addr` line, remove it too: `sysrc -f /etc/rc.conf.local -x nvmf_tgt_rpc_addr`.

   The `sysrc: unknown variable 'nvmf_tgt_flags'` response means that there was no such line; the other lines are removed.

5. Check:

   ```sh
   grep -E '^(nvmf_tgt|spdk_tgt)_' /etc/rc.conf.local
   ```

**Expected result:** there are no `nvmf_tgt_…` lines. If `nvmf_tgt` was running or both targets were enabled, there are `spdk_tgt_enable="YES"` and `spdk_tgt_flags`. If it was not running, there are no `spdk_tgt_…` lines either.

**If not:** stop.

### 9. Reboot the node

> **Caution**
>
> Reboot the node only if it has no pools and no running VMs — step 6. Otherwise, the reboot works like a node failure: the pools fail over to other nodes, the VMs power off, and Center brings them up again with downtime — [Planned reboot and return of a node](/hcp/3.3/en/mechanics/node-reboot-return/index.md).

- **Where:** workstation; keep the BMC console of the node in front of you.

```sh
ssh root@<node> 'sync; shutdown -r now'
```

While the node reboots, each pool of the cluster runs without one disk.

**Expected result:** after a few minutes, the node accepts SSH connections.

**If not:**

- the node hangs at the boot loader prompt — reset it from the BMC console. The next boot goes to the previous kernel — after it, stop;
- the console shows `!!!! X64 Exception` after the boot loader — in the boot loader menu, select **3**, then enter `disable-module cpu_microcode`, `set kernel=kernel.GENERIC_PROD`, `boot`. After the boot, repeat step 1b.

### 10. Check the kernel first

- **Where:** node.

```sh
sysctl -n kern.bootfile                               # /boot/kernel.GENERIC_PROD/kernel
grep "$(hostname -s) vstack_boot_marker" /var/log/messages | tail -2   # … boot on kernel.GENERIC_PROD confirmed, temporary fallback default removed
```

Check the kernel only this way: `uname -r` and `/etc/os-release` do not show the previous kernel.

**Expected result:** a path without `_prev`; the `boot on … confirmed` line.

**If not:** a path with `_prev`, the `NODE IS RUNNING THE FALLBACK KERNEL` line, or no `confirmed` line — stop, and do not return the node to service — [Troubleshooting](#troubleshooting).

### 11. Check the version and services

- **Where:** node.

```sh
freebsd-version -kru                         # 14.2-RELEASE-vstack-3.2.6-… three times
ccrd_cli | grep 'Node ID: *<N>;'             # ONLINE
for s in vStackNodeside vStackVMctrl vStackStorageCtrl vstack_net_daemon; do
  service $s status >/dev/null && echo "$s up" || echo "$s DOWN"
done
pgrep -lf '^/usr/local/bin/(spdk|nvmf)_tgt'  # NVMe-oF target
```

**Expected result:** three `…-vstack-3.2.6-…` lines, `ONLINE`, four `up`. `spdk_tgt` is running if it was running before the update — step 1.

**If not:** the version is not 3.2.6 — stop. A service is `DOWN` — stop. `spdk_tgt` must be running but is not — the cause is in `/var/log/spdk_tgt.log`; stop.

Then check the microcode, the VM metrics collector and the Internal Fabric pre-configuration:

```sh
pkg info -e cpu-microcode-rc && echo microcode-OK
pgrep -lf /usr/local/sbin/vstack-vm-perfdata          # the process exists
pgrep -lf 'vStack-vm-perfdata-.*feeder'               # empty
sysctl hw.contigmem.num_buffers                       # <buffers> — SPDK memory
ifconfig <fabric_if> | grep 'inet '                   # <fabric>.<100+N>
```

Check the NVMe-oF target by its process, not with `service spdk_tgt status`.

**Expected result:** `microcode-OK`; the new VM metrics collector is running, and the previous ones are not; `num_buffers` is your number; the node address in the fabric network is up. The NVMe-oF target is as before the update, under the new name: if `nvmf_tgt` was running, `spdk_tgt` is running; if it was not, `spdk_tgt` is not running. There is no `nvmf_tgt` in the `pgrep` output.

**If not:** `nvmf_tgt` in the output — stop: the node has two targets, or step 8b was not done. `num_buffers` is empty, `0` or not the right number — stop. There is no node address in the fabric network — stop. Anything else — stop.

### 12. Return the workload

1. Wait until data recovery finishes on all pools: on each node with pools, `zpool status | grep -E 'pool:|state:|scan:'` shows `state: ONLINE` and no `resilver in progress`.

2. Return the pools and VMs to the node — depending on which Center runs on the management VM:

   - **Center 3.0.3–3.2.0** — pools only with **Hard Transfer**; VMs not from the web interface but through the API, as in step 12 of the page [Move to 3.2 with Center 3.0.3–3.2.0](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md#start-vms). Then go to step 12a.
   - **The earlier Center** — the node, the pools and the VMs are returned using the page [Drain a node with the earlier Center](/hcp/3.3/en/upgrade/from-earlier/control-pane/drain-node/index.md#node-enable). Then go to step 12a.

   Pools do not return by themselves to a node that came back. vStack support opens a node that is closed to VM placement.

Only after that, move on to the next node.

### 12a. Check the fabric addresses of the pools

- **Where:** the node that the pools returned to.

```sh
ifconfig <fabric_if> | grep 'inet '     # one <fabric>.<200+NN> address per pool of the node
```

`NN` is the pool number: the `z01` pool corresponds to the `<fabric>.201` address. The pool addresses are recorded in the `nvmf-addresses.tsv` file during the fabric pre-configuration — [Enable Internal Fabric, step 4](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#fabric-ccrd).

**Expected result:** each pool of the node has its own fabric address up.

**If not:** stop.

## If a step says stop

The node stays drained, and its pools stay on other nodes. Do not return the node to service, and do not start the next node. After a stop in steps 7–8b, 10 and 11, do not reboot the node. Do not return a pool that has already run on a 3.2.6 node to a node that is not upgraded. Give vStack support the step number, the check output, the `/root/upgrade-326/update.log` log and the `/var/backups/update-summary-*.txt` summary from the node — [Collect data for support](/hcp/3.3/en/troubleshooting/collect-for-support/index.md).

## Troubleshooting

| What you see | What to do |
| - | - |
| The node booted on `kernel.GENERIC_PROD_prev`, and `/var/log/messages` shows `NODE IS RUNNING THE FALLBACK KERNEL` | Do not return the node to service. With the BMC console in front of you, run `nextboot -k kernel.GENERIC_PROD; shutdown -r now` and watch where the boot stops. If the node boots, the fallback kernel is removed by itself. If not, reset the node (the previous kernel comes back) and send a screenshot to support |
| After the boot, `/var/log/messages` has no `vstack_boot_marker … confirmed` line | Do not return the node to service; contact support with `update.log` |
| `service spdk_tgt status` reports success, but there is no `spdk_tgt` process | Check the process: `pgrep -lf '^/usr/local/bin/spdk_tgt'`; the cause is in `/var/log/spdk_tgt.log` |
| After the reboot, both `nvmf_tgt` and `spdk_tgt` are running | Do not return the node to service; contact support |
| `spdk_tgt` does not come up, and `/var/log/spdk_tgt.log` shows `EAL: could not read sysctl hw.contigmem.num_buffers` | The SPDK memory is not set — [Enable Internal Fabric, step 5](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#fabric-contigmem) |
| The script on the node prints its help (usage), and an empty file with a name like `3.2.6` appears in `/root`; or you get the `Illegal variable name` or `Ambiguous output redirect` errors | Run the scripts only this way: `ssh root@<node> 'sh -s -- <arguments>' < <script>` or `ssh root@<node> 'sh -s' <<'EOF'`. Delete the extra file |

Problems with pool transfers and VM starts through the API are covered on the scenario pages: [Move to 3.2 with Center 3.0.3–3.2.0](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md#troubleshooting), [Move to 3.2 from the earlier Center: reference](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md#troubleshooting).

## Update script exit codes

The script writes the code to `update.rc` (step 7), and the cause to the `ERROR` lines of the `update.log` log. In this procedure, you may reboot the node only with code `0`, or with code `8` and one `ERROR` line about swap — step 8.

| Code | What it means |
| - | - |
| `0` | the update completed |
| `1` | an error in the arguments |
| `2` | the repository or the version is unavailable, the signing key was not obtained, or an upgrade between major versions was requested without `--allow-major-upgrade` |
| `3` | a package installation error or a new kernel check error; there will be no reboot |
| `4` | the configuration could not be saved or restored: `/etc`, `/usr/local/etc`, `vstack-env.conf`, the boot files in `/boot` |
| `5` | an installed service did not restart |
| `6` | the update completed, but the `root` shell is not executable: without a fix, `root` cannot log in over SSH after the reboot |
| `7` | the update completed, but the write to `/boot` is not confirmed: **do not reboot** until you sort it out with support |
| `8` | the update completed, but the swap partition stays disabled until the reboot |

## Rollback

If the node does not boot on the new kernel, it comes up on the previous one, but do not return it to service: restore it together with vStack support, from the configuration copy of step 5.

The script does not roll back packages. The previous kernel remains in the boot loader menu, and configuration copies remain in `/var/backups`; the last five are kept. You can restore the whole node by reinstalling it from installation media and restoring it from the configuration copy. Rollback is done together with vStack support.

If a failure occurs before the reboot, in steps 7–8b, do not reboot the node and do not return it to service; investigate together with vStack support. The rollback of the Internal Fabric pre-configuration is described on the page of your scenario.

## What not to do

- **Do not upgrade two nodes at once.** A pool that is still recovering data loses a second disk; with redundancy 1, it does not survive this.
- **Do not run `zpool upgrade`** during the upgrade or after it.
- **Do not return a pool from an upgraded node to a node that is not upgraded** until you upgrade all nodes.
- **Do not move Windows VMs from an upgraded node to a node that is not upgraded** until you upgrade all nodes: an upgraded node enables the Hyper-V clock for Windows VMs, and a node without the upgrade does not accept such a VM.
- **Do not use the `--no-fallback`, `--no-esp`, `--no-kernel-backup` and `--allow-major-upgrade` options** unless support instructs you to.

## Next

- [Choose a path to 3.2](/hcp/3.3/en/upgrade/from-earlier/choose-path/index.md) — the order for the whole cluster.
- [Move to 3.2 with Center 3.0.3–3.2.0](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md)
- [Move to 3.2 from the earlier Center: overview](/hcp/3.3/en/upgrade/from-earlier/control-pane/overview/index.md)
- [Update nodes to 3.2.6](/hcp/3.3/en/upgrade/update-nodes/index.md) — 3.2.4 and 3.2.5 nodes.
- [Back up the node configuration](/hcp/3.3/en/upgrade/config-backup/index.md)
- [Node utilities](/hcp/3.3/en/os-cli/cli/index.md) — update script options.
- [View the cluster state on a node](/hcp/3.3/en/os-cluster/cluster-state/index.md)
