Public bug reported:
On Ubuntu 26.04, a sanlock lockspace initialized with -Z 4096 -A 8M on a
512-byte-logical / 4096-byte-physical (512e) device can’t be read back
with sanlock client read; it fails with read error -225. The same
sequence passes on Ubuntu 22.04 (sanlock 3.8.4) and 24.04 (sanlock
3.8.5). Because -Z 4096 -A 8M is what lvmlockd uses for 512e disks, this
breaks lockspace use for lvmlockd shared VGs on 512e storage.
Environment
22.04.5 24.04.5 26.04.1
sanlock 3.8.4-1build2 3.8.5-2build3 4.2.0-1build1
lvm2 2.03.11-2.1ubuntu5 2.03.16-3ubuntu3.2 2.03.31-2ubuntu3
Test devices are emulated with the scsi_debug kernel module (VMs, 1 GiB
devices). Real 512e hardware has the same problem.
Steps to reproduce
Install sanlock and lvm2, and make sure wdmd and sanlock are running.
Load a 512e emulated disk (modprobe scsi_debug needs
linux-modules-extra-$(uname -r)): modprobe scsi_debug sector_size=512
physblk_exp=3 dev_size_mb=1024
Initialize the lockspace: sanlock direct init -s t:0:/dev/sdX:0 -Z 4096 -A 8M
Read it back: sanlock client read -s t:1:/dev/sdX:0
The full script is attached as test.sh; it runs all three cases
automatically.
Expected result
sanlock client read succeeds, as it does on 22.04 and 24.04 and as it
does on 26.04 for the other two cases.
Actual result (26.04 only)
== 512e, 4096/8M (lvmlockd's) on /dev/sdc: /512/4096
header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
RESULT: FAIL (read error -225)
Results matrix
Case 22.04 (3.8.4) 24.04 (3.8.5) 26.04 (4.2.0)
512e, sanlock defaults PASS PASS PASS
512e, -Z 4096 -A 8M PASS PASS FAIL (-225)
4K native, defaults PASS PASS PASS
Additional info
- test.sh (above) and its full output on all three releases.
- journalctl -u sanlock -u wdmd and sanlock client log_dump from 26.04 after
the failure.
- This reproduces on real 512e hardware.
- Real-world impact: I can't create a shared volume group on a 512e disk.
---
root@ubuntu2204:~# grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
root@ubuntu2204:~# cat > test.sh
#!/bin/bash
# Needs: sanlock, wdmd running, scsi_debug module (linux-modules-extra-$(uname
-r) on Ubuntu)
set -u
systemctl start wdmd sanlock
echo "sanlock: $(dpkg-query -W -f='${Version}' sanlock) lvm2: $(dpkg-query -W
-f='${Version}' lvm2)"
find_dbg() { lsblk -dno NAME,MODEL | awk '$2=="scsi_debug"{print
"/dev/"$1; exit}'; }
run_case() { # args: label, modprobe args, init flags
local label=$1 mp=$2 flags=$3
modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
sleep 1; local dev; dev=$(find_dbg)
echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
sanlock direct init -s t:0:$dev:0 $flags >/dev/null
echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
sleep 1
modprobe -r scsi_debug
}
run_case "512e, sanlock default " "sector_size=512 physblk_exp=3
dev_size_mb=1024" ""
run_case "512e, 4096/8M (lvmlockd's) " "sector_size=512 physblk_exp=3
dev_size_mb=1024" "-Z 4096 -A 8M"
run_case "4K native, default " "sector_size=4096 dev_size_mb=1024" ""
root@ubuntu2204:~# chmod +x test.sh
root@ubuntu2204:~# ./test.sh
sanlock: 3.8.4-1build2 lvm2: 2.03.11-2.1ubuntu5
== 512e, sanlock default on /dev/sdc: /512/4096
header: 10 20 21 12 04 00 03 00 10 00 00 00 00 02 00 00
RESULT: PASS
== 512e, 4096/8M (lvmlockd's) on /dev/sdc: /512/4096
header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
RESULT: PASS
== 4K native, default on /dev/sdc: /4096/4096
header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
RESULT: PASS
root@ubuntu2404:~# grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Ubuntu 24.04.5 LTS"
root@ubuntu2404:~# cat > test.sh
#!/bin/bash
# Needs: sanlock, wdmd running, scsi_debug module (linux-modules-extra-$(uname
-r) on Ubuntu)
set -u
systemctl start wdmd sanlock
echo "sanlock: $(dpkg-query -W -f='${Version}' sanlock) lvm2: $(dpkg-query -W
-f='${Version}' lvm2)"
find_dbg() { lsblk -dno NAME,MODEL | awk '$2=="scsi_debug"{print
"/dev/"$1; exit}'; }
run_case() { # args: label, modprobe args, init flags
local label=$1 mp=$2 flags=$3
modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
sleep 1; local dev; dev=$(find_dbg)
echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
sanlock direct init -s t:0:$dev:0 $flags >/dev/null
echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
sleep 1
modprobe -r scsi_debug
}
run_case "512e, sanlock default " "sector_size=512 physblk_exp=3
dev_size_mb=1024" ""
run_case "512e, 4096/8M (lvmlockd's) " "sector_size=512 physblk_exp=3
dev_size_mb=1024" "-Z 4096 -A 8M"
run_case "4K native, default " "sector_size=4096 dev_size_mb=1024" ""
root@ubuntu2404:~# chmod +x test.sh
root@ubuntu2404:~# ./test.sh
sanlock: 3.8.5-2build3 lvm2: 2.03.16-3ubuntu3.2
== 512e, sanlock default on /dev/sdb: /512/4096
header: 10 20 21 12 04 00 03 00 10 00 00 00 00 02 00 00
RESULT: PASS
== 512e, 4096/8M (lvmlockd's) on /dev/sdb: /512/4096
header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
RESULT: PASS
== 4K native, default on /dev/sdb: /4096/4096
header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
RESULT: PASS
root@ubuntu2604:~# grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Ubuntu 26.04.1 LTS"
root@ubuntu2604:~# cat > test.sh
#!/bin/bash
# Needs: sanlock, wdmd running, scsi_debug module (linux-modules-extra-$(uname
-r) on Ubuntu)
set -u
systemctl start wdmd sanlock
echo "sanlock: $(dpkg-query -W -f='${Version}' sanlock) lvm2: $(dpkg-query -W
-f='${Version}' lvm2)"
find_dbg() { lsblk -dno NAME,MODEL | awk '$2=="scsi_debug"{print
"/dev/"$1; exit}'; }
run_case() { # args: label, modprobe args, init flags
local label=$1 mp=$2 flags=$3
modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
sleep 1; local dev; dev=$(find_dbg)
echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
sanlock direct init -s t:0:$dev:0 $flags >/dev/null
echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
sleep 1
modprobe -r scsi_debug
}
run_case "512e, sanlock default " "sector_size=512 physblk_exp=3
dev_size_mb=1024" ""
run_case "512e, 4096/8M (lvmlockd's) " "sector_size=512 physblk_exp=3
dev_size_mb=1024" "-Z 4096 -A 8M"
run_case "4K native, default " "sector_size=4096 dev_size_mb=1024" ""
root@ubuntu2604:~# chmod +x test.sh
root@ubuntu2604:~# ./test.sh
sanlock: 4.2.0-1build1 lvm2: 2.03.31-2ubuntu3
== 512e, sanlock default on /dev/sdc: /512/4096
header: 10 20 21 12 00 00 04 00 10 00 00 00 00 02 00 00
RESULT: PASS
== 512e, 4096/8M (lvmlockd's) on /dev/sdc: /512/4096
header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
RESULT: FAIL (read error -225)
== 4K native, default on /dev/sdc: /4096/4096
header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
RESULT: PASS
root@ubuntu2604:~# journalctl -u sanlock -u wdmd | grep 'Nov 19 14:24'
Nov 19 14:24:39 kvm2.local sanlock[821]: 2026-11-19 14:24:39 1607 [821]: client
connection 3 11 -1 recv msg header rv -1 errno 104
Nov 19 14:24:39 kvm2.local sanlock[821]: 2026-11-19 14:24:39 1607 [821]: client
connection 3 11 -1 recv msg header rv -1 errno 104
Nov 19 14:24:42 kvm2.local sanlock[821]: 2026-11-19 14:24:42 1610 [831]:
read_sectors read_lockspace_sector_size offset 0 rv -22 /dev/sdc
root@ubuntu2604:~# sanlock client log_dump | grep '2026-11-19 14:24'
2026-11-19 14:24:39 1607 [821]: client connection 3 11 -1 recv msg header rv -1
errno 104
2026-11-19 14:24:39 1607 [821]: client connection 3 11 -1 recv msg header rv -1
errno 104
2026-11-19 14:24:42 1610 [831]: worker0 aio collect RD
0x7e262c000880:0x7e262c000890:0x7e262c003000 result -22:0 match res
2026-11-19 14:24:42 1610 [831]: read_sectors read_lockspace_sector_size offset
0 rv -22 /dev/sdc
** Affects: sanlock (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "test.sh"
https://bugs.launchpad.net/bugs/2175077/+attachment/6019488/+files/test.sh
** Description changed:
On Ubuntu 26.04, a sanlock lockspace initialized with -Z 4096 -A 8M on a
512-byte-logical / 4096-byte-physical (512e) device can’t be read back
with sanlock client read; it fails with read error -225. The same
sequence passes on Ubuntu 22.04 (sanlock 3.8.4) and 24.04 (sanlock
3.8.5). Because -Z 4096 -A 8M is what lvmlockd uses for 512e disks, this
- may break lockspace use for lvmlockd shared VGs on 512e storage. I
- haven’t tested lvmlockd itself yet.
+ breaks lockspace use for lvmlockd shared VGs on 512e storage.
Environment
- 22.04.5 24.04.5 26.04.1
+ 22.04.5 24.04.5 26.04.1
sanlock 3.8.4-1build2 3.8.5-2build3 4.2.0-1build1
lvm2 2.03.11-2.1ubuntu5 2.03.16-3ubuntu3.2 2.03.31-2ubuntu3
Test devices are emulated with the scsi_debug kernel module (VMs, 1 GiB
- devices). Real 512e hardware has not been tested.
+ devices). Real 512e hardware has the same problem.
Steps to reproduce
Install sanlock and lvm2, and make sure wdmd and sanlock are running.
Load a 512e emulated disk (modprobe scsi_debug needs
linux-modules-extra-$(uname -r)): modprobe scsi_debug sector_size=512
physblk_exp=3 dev_size_mb=1024
Initialize the lockspace: sanlock direct init -s t:0:/dev/sdX:0 -Z 4096 -A 8M
Read it back: sanlock client read -s t:1:/dev/sdX:0
The full script is attached as test.sh; it runs all three cases
automatically.
Expected result
sanlock client read succeeds, as it does on 22.04 and 24.04 and as it
does on 26.04 for the other two cases.
Actual result (26.04 only)
== 512e, 4096/8M (lvmlockd's) on /dev/sdc: /512/4096
- header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
- RESULT: FAIL (read error -225)
+ header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
+ RESULT: FAIL (read error -225)
Results matrix
Case 22.04 (3.8.4) 24.04 (3.8.5) 26.04 (4.2.0)
512e, sanlock defaults PASS PASS PASS
512e, -Z 4096 -A 8M PASS PASS FAIL (-225)
4K native, defaults PASS PASS PASS
Additional info
- test.sh (above) and its full output on all three releases.
- journalctl -u sanlock -u wdmd and sanlock client log_dump from 26.04 after
the failure.
- This reproduces on real 512e hardware.
- Real-world impact: I can't create a shared volume group on a 512e disk.
---
root@ubuntu2204:~# grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
root@ubuntu2204:~# cat > test.sh
#!/bin/bash
# Needs: sanlock, wdmd running, scsi_debug module
(linux-modules-extra-$(uname -r) on Ubuntu)
set -u
systemctl start wdmd sanlock
echo "sanlock: $(dpkg-query -W -f='${Version}' sanlock) lvm2: $(dpkg-query
-W -f='${Version}' lvm2)"
find_dbg() { lsblk -dno NAME,MODEL | awk '$2=="scsi_debug"{print
"/dev/"$1; exit}'; }
run_case() { # args: label, modprobe args, init flags
- local label=$1 mp=$2 flags=$3
- modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
- sleep 1; local dev; dev=$(find_dbg)
- echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
- sanlock direct init -s t:0:$dev:0 $flags >/dev/null
- echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
- if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
- else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
- sleep 1
- modprobe -r scsi_debug
+ local label=$1 mp=$2 flags=$3
+ modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
+ sleep 1; local dev; dev=$(find_dbg)
+ echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
+ sanlock direct init -s t:0:$dev:0 $flags >/dev/null
+ echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
+ if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
+ else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
+ sleep 1
+ modprobe -r scsi_debug
}
run_case "512e, sanlock default " "sector_size=512 physblk_exp=3
dev_size_mb=1024" ""
run_case "512e, 4096/8M (lvmlockd's) " "sector_size=512 physblk_exp=3
dev_size_mb=1024" "-Z 4096 -A 8M"
run_case "4K native, default " "sector_size=4096 dev_size_mb=1024" ""
root@ubuntu2204:~# chmod +x test.sh
root@ubuntu2204:~# ./test.sh
sanlock: 3.8.4-1build2 lvm2: 2.03.11-2.1ubuntu5
== 512e, sanlock default on /dev/sdc: /512/4096
- header: 10 20 21 12 04 00 03 00 10 00 00 00 00 02 00 00
- RESULT: PASS
+ header: 10 20 21 12 04 00 03 00 10 00 00 00 00 02 00 00
+ RESULT: PASS
== 512e, 4096/8M (lvmlockd's) on /dev/sdc: /512/4096
- header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
- RESULT: PASS
+ header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
+ RESULT: PASS
== 4K native, default on /dev/sdc: /4096/4096
- header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
- RESULT: PASS
-
+ header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
+ RESULT: PASS
root@ubuntu2404:~# grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Ubuntu 24.04.5 LTS"
root@ubuntu2404:~# cat > test.sh
#!/bin/bash
# Needs: sanlock, wdmd running, scsi_debug module
(linux-modules-extra-$(uname -r) on Ubuntu)
set -u
systemctl start wdmd sanlock
echo "sanlock: $(dpkg-query -W -f='${Version}' sanlock) lvm2: $(dpkg-query
-W -f='${Version}' lvm2)"
find_dbg() { lsblk -dno NAME,MODEL | awk '$2=="scsi_debug"{print
"/dev/"$1; exit}'; }
run_case() { # args: label, modprobe args, init flags
- local label=$1 mp=$2 flags=$3
- modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
- sleep 1; local dev; dev=$(find_dbg)
- echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
- sanlock direct init -s t:0:$dev:0 $flags >/dev/null
- echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
- if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
- else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
- sleep 1
- modprobe -r scsi_debug
+ local label=$1 mp=$2 flags=$3
+ modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
+ sleep 1; local dev; dev=$(find_dbg)
+ echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
+ sanlock direct init -s t:0:$dev:0 $flags >/dev/null
+ echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
+ if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
+ else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
+ sleep 1
+ modprobe -r scsi_debug
}
run_case "512e, sanlock default " "sector_size=512 physblk_exp=3
dev_size_mb=1024" ""
run_case "512e, 4096/8M (lvmlockd's) " "sector_size=512 physblk_exp=3
dev_size_mb=1024" "-Z 4096 -A 8M"
run_case "4K native, default " "sector_size=4096 dev_size_mb=1024" ""
root@ubuntu2404:~# chmod +x test.sh
root@ubuntu2404:~# ./test.sh
sanlock: 3.8.5-2build3 lvm2: 2.03.16-3ubuntu3.2
== 512e, sanlock default on /dev/sdb: /512/4096
- header: 10 20 21 12 04 00 03 00 10 00 00 00 00 02 00 00
- RESULT: PASS
+ header: 10 20 21 12 04 00 03 00 10 00 00 00 00 02 00 00
+ RESULT: PASS
== 512e, 4096/8M (lvmlockd's) on /dev/sdb: /512/4096
- header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
- RESULT: PASS
+ header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
+ RESULT: PASS
== 4K native, default on /dev/sdb: /4096/4096
- header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
- RESULT: PASS
-
+ header: 10 20 21 12 04 00 03 00 80 00 00 00 00 10 00 00
+ RESULT: PASS
root@ubuntu2604:~# grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Ubuntu 26.04.1 LTS"
root@ubuntu2604:~# cat > test.sh
#!/bin/bash
# Needs: sanlock, wdmd running, scsi_debug module
(linux-modules-extra-$(uname -r) on Ubuntu)
set -u
systemctl start wdmd sanlock
echo "sanlock: $(dpkg-query -W -f='${Version}' sanlock) lvm2: $(dpkg-query
-W -f='${Version}' lvm2)"
find_dbg() { lsblk -dno NAME,MODEL | awk '$2=="scsi_debug"{print
"/dev/"$1; exit}'; }
run_case() { # args: label, modprobe args, init flags
- local label=$1 mp=$2 flags=$3
- modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
- sleep 1; local dev; dev=$(find_dbg)
- echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
- sanlock direct init -s t:0:$dev:0 $flags >/dev/null
- echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
- if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
- else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
- sleep 1
- modprobe -r scsi_debug
+ local label=$1 mp=$2 flags=$3
+ modprobe -r scsi_debug 2>/dev/null; modprobe scsi_debug $mp || { echo
"$label: modprobe failed"; return; }
+ sleep 1; local dev; dev=$(find_dbg)
+ echo "== $label on $dev: $(lsblk -dno LOG-SEC,PHY-SEC $dev | tr -s ' ' '/')"
+ sanlock direct init -s t:0:$dev:0 $flags >/dev/null
+ echo " header: $(hexdump -e '16/1 "%02x " "\n"' -n 16 $dev)"
+ if sanlock client read -s t:1:$dev:0 >/dev/null 2>&1; then echo " RESULT:
PASS"
+ else echo " RESULT: FAIL ($(sanlock client read -s t:1:$dev:0 2>&1))"; fi
+ sleep 1
+ modprobe -r scsi_debug
}
run_case "512e, sanlock default " "sector_size=512 physblk_exp=3
dev_size_mb=1024" ""
run_case "512e, 4096/8M (lvmlockd's) " "sector_size=512 physblk_exp=3
dev_size_mb=1024" "-Z 4096 -A 8M"
run_case "4K native, default " "sector_size=4096 dev_size_mb=1024" ""
root@ubuntu2604:~# chmod +x test.sh
root@ubuntu2604:~# ./test.sh
sanlock: 4.2.0-1build1 lvm2: 2.03.31-2ubuntu3
== 512e, sanlock default on /dev/sdc: /512/4096
- header: 10 20 21 12 00 00 04 00 10 00 00 00 00 02 00 00
- RESULT: PASS
+ header: 10 20 21 12 00 00 04 00 10 00 00 00 00 02 00 00
+ RESULT: PASS
== 512e, 4096/8M (lvmlockd's) on /dev/sdc: /512/4096
- header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
- RESULT: FAIL (read error -225)
+ header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
+ RESULT: FAIL (read error -225)
== 4K native, default on /dev/sdc: /4096/4096
- header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
- RESULT: PASS
+ header: 10 20 21 12 00 00 04 00 80 00 00 00 00 10 00 00
+ RESULT: PASS
root@ubuntu2604:~# journalctl -u sanlock -u wdmd | grep 'Nov 19 14:24'
Nov 19 14:24:39 kvm2.local sanlock[821]: 2026-11-19 14:24:39 1607 [821]:
client connection 3 11 -1 recv msg header rv -1 errno 104
Nov 19 14:24:39 kvm2.local sanlock[821]: 2026-11-19 14:24:39 1607 [821]:
client connection 3 11 -1 recv msg header rv -1 errno 104
Nov 19 14:24:42 kvm2.local sanlock[821]: 2026-11-19 14:24:42 1610 [831]:
read_sectors read_lockspace_sector_size offset 0 rv -22 /dev/sdc
root@ubuntu2604:~# sanlock client log_dump | grep '2026-11-19 14:24'
2026-11-19 14:24:39 1607 [821]: client connection 3 11 -1 recv msg header rv
-1 errno 104
2026-11-19 14:24:39 1607 [821]: client connection 3 11 -1 recv msg header rv
-1 errno 104
2026-11-19 14:24:42 1610 [831]: worker0 aio collect RD
0x7e262c000880:0x7e262c000890:0x7e262c003000 result -22:0 match res
2026-11-19 14:24:42 1610 [831]: read_sectors read_lockspace_sector_size
offset 0 rv -22 /dev/sdc
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175077
Title:
sanlock 4.2.0 on 26.04: lockspace initialized with -Z 4096 -A 8M
(lvmlockd’s parameters) on a 512e disk cannot be read back (read error
-225); works on 22.04/24.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sanlock/+bug/2175077/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs