Upgrade cetrafs
Upgrade between releases of one on-disk format node by node, or move a volume to a new format version by evacuating, reformatting and restoring. 0.9.x to 0.10 is a format change.
What an upgrade involves depends on whether the on-disk format version changes. The release notes say; so does version in properties.
| From | To | Format | What to do |
|---|---|---|---|
| 0.10.1 to 0.10.5 | 0.10.6 | 0x000A, unchanged | Node by node |
| 0.9.x | 0.10.6 | 0x0009 → 0x000A | Evacuate, reformat and restore |
| a release of one format | another release of the same format | unchanged | Node by node |
Upgrading within a format version
Nodes running different builds, or different kernels, of one format version can share a volume. So an upgrade that keeps the format can be done one node at a time, with the VMs kept running on the others:
- Install the new
cetrafs-dkmsandcetrafs-toolson every node. Install the tools too, not just the module. - On one node: migrate its VMs away, unmount the volume, reload the module or reboot, and mount again.
- Repeat on the next node.
A new cetrafs-dkms builds the new module, but a mounted volume keeps running the old one until it is unmounted and the module reloaded. Rebooting the node is the simplest way.
Upgrading across a format change
A module of one format version doesn’t mount a volume of another, and there is no in-place migration. Moving to a new format means evacuating the data, reformatting and restoring. 0.9.x to 0.10.6 is such a change: 0.10 doesn’t mount 0x0009 volumes, and 0.9.x doesn’t mount 0x000A ones.
- Evacuate the data. Move the VM disks to other storage, with
qm disk moveon Proxmox VE,qemu-img convert, orcp --sparse=always. Or make sure an array-level backup exists that you have tested restoring. - Unmount the volume on every node. With the Proxmox storage plugin, disable the storage first (
pvesm set <storage> --disable 1), orpvestatdmounts it again within seconds. - Install the new module and tools on every node, and reload the module or reboot. Tools and module must come from the same release.
- Reformat with the new tools, on one node:
mkfs.cetra <dev> -f. Review the new options first;-Asets the data alignment, and Zone Groups now default to one per node. - Mount on every node (or
pvesm set <storage> --disable 0) and move the data back.
cp --sparse=always, tar -S and qemu-img convert all keep thin images thin through SEEK_HOLE/SEEK_DATA.
Reclaiming space fsck can’t recover
The same evacuate-and-reformat procedure applies to a volume carrying a leak that fsck.cetra -r can’t reclaim.
Last updated