Skip to content

openmediavault-oar 8.1.0~beta5-1

Pre-release
Pre-release

Choose a tag to compare

@VogelsDev VogelsDev released this 06 Jul 23:03
· 5 commits to main since this release

Critical fix — upgrade immediately if you have a pool created by beta1-beta4.

sgdisk --change-name=<num>:<name> splits its argument on every colon in the string, not just the one separating the partition number from the name. The plugin's GPT partition label format, oar:<pool>:t<NN>, was being silently truncated by real sgdisk to just oar on every disk — verified against GPT fdisk 1.0.9 (Debian 12/bookworm). This meant partlabel-based tier/disk discovery never worked against real hardware for any pool created by this plugin: status/detail showed the pool online but with empty disks/tiers lists, and grow/replace/scrub could not see any pool member. Unit tests never caught this because they exercise the Python layout model directly and never invoke real sgdisk.

Fix: the label separator is now @ instead of :oar@<pool>@t<NN>. Verified that every other character survives sgdisk --change-name intact, including a live relabel of an already-assembled, in-use RAID member partition (blkid/lsblk pick it up immediately — no downtime, no resync, no data risk; only partition boundary changes require a kernel rescan, not the name field).

If you created a pool with beta1-beta4, its member partitions need a one-time relabel. For each member device, find its tier index from mdadm --detail <array> (Name : host:<pool>-t<NN>), then:

sudo sgdisk --change-name=<partnum>:oar@<pool>@t<NN> <disk>

Example, for a pool named Pool, tier 00, member /dev/sdc partition 1:

sudo sgdisk --change-name=1:oar@Pool@t00 /dev/sdc

Repeat for every member partition of every tier. This is metadata-only (no data touched); omv-oar status will show the correct disks/tiers immediately after.

Newly created and grown pools are unaffected once you're on beta5.

Install:

wget https://github.com/carbrf/openmediavault-oar/releases/download/v8.1.0-beta5/openmediavault-oar_8.1.0.beta5-1_all.deb
sudo apt-get install ./openmediavault-oar_8.1.0.beta5-1_all.deb