# installing fixed package version from -proposed
root@qau22c13n1:~# sudo apt-get install multipath-tools/jammy-proposed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '0.8.8-1ubuntu1.22.04.2' (Ubuntu:22.04/jammy-proposed [amd64]) for 'multipath-tools'
The following additional packages will be installed:
kpartx
Suggested packages:
multipath-tools-boot
The following packages will be upgraded:
kpartx multipath-tools
2 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
Need to get 359 kB of archives.
After this operation, 3072 B disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 kpartx amd64 0.8.8-1ubuntu1.22.04.2 [28.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 multipath-tools amd64 0.8.8-1ubuntu1.22.04.2 [331 kB]
Fetched 359 kB in 1s (502 kB/s)
(Reading database ... 62716 files and directories currently installed.)
Preparing to unpack .../kpartx_0.8.8-1ubuntu1.22.04.2_amd64.deb ...
Unpacking kpartx (0.8.8-1ubuntu1.22.04.2) over (0.8.8-1ubuntu1.22.04.1) ...
Preparing to unpack .../multipath-tools_0.8.8-1ubuntu1.22.04.2_amd64.deb ...
Unpacking multipath-tools (0.8.8-1ubuntu1.22.04.2) over (0.8.8-1ubuntu1.22.04.1) ...
Setting up kpartx (0.8.8-1ubuntu1.22.04.2) ...
Setting up multipath-tools (0.8.8-1ubuntu1.22.04.2) ...
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
Removing obsolete conffile /etc/init.d/multipath-tools ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Hi
Please find the successful test logs below:
# multipathd config
find_multipath s yes
user_friendly_ names no
reservation_ key file
root@qau22c13n1:~# cat /etc/multipath.conf
defaults {
}
blacklist {
vendor "VBOX"
product "HARDDISK"
devnode "^drbd[0-9]"
device {
}
}
blacklist_ exceptions {
vendor "FreeNAS"
product "iSCSI Disk"
device {
}
}
# iscsi disk seen through 2 paths 73fa706138358cd 511 dm-15 TrueNAS,iSCSI Disk 'service- time 0' prio=0 status=active 'service- time 0' prio=0 status=enabled
root@qau22c13n1:~# multipath -l /dev/dm-15
36589cfc0000000
size=16M features='0' hwhandler='1 alua' wp=rw
|-+- policy=
| `- 17:0:0:43 sdag 66:0 active undef running
`-+- policy=
`- 16:0:0:43 sdab 65:176 active undef running
# no reservation key on disk
root@qau22c13n1:~# mpathpersist -i -k /dev/dm-15
PR generation=0x0, 0 registered reservation key.
# check for installed version 22.04.1 22.04.1 22.04.1 500 us.archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages us.archive. ubuntu. com/ubuntu jammy-security/main amd64 Packages dpkg/status us.archive. ubuntu. com/ubuntu jammy/main amd64 Packages
root@qau22c13n1:~# apt-cache policy multipath-tools
multipath-tools:
Installed: 0.8.8-1ubuntu1.
Candidate: 0.8.8-1ubuntu1.
Version table:
*** 0.8.8-1ubuntu1.
500 http://
500 http://
100 /var/lib/
0.8.8-1ubuntu1 500
500 http://
# first try is failing as expected sark=0x21487283 1593209 /dev/dm-15 73fa706138358cd 511: adding new path sdag 73fa706138358cd 511: adding new path sdab 73fa706138358cd 511: pr message=map 36589cfc0000000 73fa706138358cd 511 setprkey key 214872831593209 73fa706138358cd 511: message=map 36589cfc0000000 73fa706138358cd 511 setprkey key 214872831593209 reply=map 36589cfc0000000 73fa706138358cd 511 setprkey key 214872831593209: Missing argument
root@qau22c13n1:~# mpathpersist -v2 --out --register-ignore --param-
689.167643 | 36589cfc0000000
689.170397 | 36589cfc0000000
689.170519 | 36589cfc0000000
689.170784 | 36589cfc0000000
multipath-tools v0.8.8 (03/12, 2021)
CLI commands reference:
list|show paths
list|show paths format $format
list|show paths raw format $format
list|show path $path
list|show maps|multipaths
list|show status
list|show daemon
list|show maps|multipaths status
list|show maps|multipaths stats
list|show maps|multipaths format $format
list|show maps|multipaths raw format $format
list|show maps|multipaths topology
list|show topology
list|show maps|multipaths json
list|show map|multipath $map topology
list|show map|multipath $map format $format
list|show map|multipath $map raw format $format
list|show map|multipath $map json
list|show config local
list|show config
list|show blacklist
list|show devices
list|show wildcards
reset maps|multipaths stats
reset map|multipath $map stats
add path $path
remove|del path $path
add map|multipath $map
remove|del map|multipath $map
remove|del maps|multipaths
switch|switchgroup map|multipath $map group $group
reconfigure
reconfigure all
suspend map|multipath $map
resume map|multipath $map
resize map|multipath $map
reload map|multipath $map
reset map|multipath $map
reinstate path $path
fail path $path
disablequeueing map|multipath $map
restorequeueing map|multipath $map
disablequeueing maps|multipaths
restorequeueing maps|multipaths
quit|exit
shutdown
getprstatus map|multipath $map
setprstatus map|multipath $map
unsetprstatus map|multipath $map
forcequeueing daemon
restorequeueing daemon
getprkey map|multipath $map
setprkey map|multipath $map key $key
unsetprkey map|multipath $map
setmarginal path $path
unsetmarginal path $path
unsetmarginal map|multipath $map
689.171680 | 36589cfc0000000 73fa706138358cd 511: failed to set prkey for multipathd.
PR out: command failed
root@qau22c13n1:~# echo $?
13
# enabling -proposed packages sources. list.d/ ubuntu- $(lsb_release -cs)-proposed.list archive. ubuntu. com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe
root@qau22c13n1:~# cat <<EOF >/etc/apt/
# Enable Ubuntu proposed archive
deb http://
EOF
# updating apt cache archive. ubuntu. com/ubuntu jammy-proposed InRelease [270 kB] /ppa.launchpadc ontent. net/linbit/ linbit- drbd9-stack/ ubuntu jammy InRelease us.archive. ubuntu. com/ubuntu jammy InRelease us.archive. ubuntu. com/ubuntu jammy-updates InRelease archive. ubuntu. com/ubuntu jammy-proposed/ restricted amd64 Packages [147 kB] archive. ubuntu. com/ubuntu jammy-proposed/ restricted Translation-en [26.2 kB] archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages [124 kB] us.archive. ubuntu. com/ubuntu jammy-backports InRelease archive. ubuntu. com/ubuntu jammy-proposed/main Translation-en [31.2 kB] archive. ubuntu. com/ubuntu jammy-proposed/ multiverse amd64 Packages [23.4 kB] archive. ubuntu. com/ubuntu jammy-proposed/ multiverse Translation-en [7804 B] archive. ubuntu. com/ubuntu jammy-proposed/ universe amd64 Packages [50.4 kB] archive. ubuntu. com/ubuntu jammy-proposed/ universe Translation-en [23.3 kB] us.archive. ubuntu. com/ubuntu jammy-security InRelease
root@qau22c13n1:~# apt update
Get:1 http://
Hit:2 https:/
Hit:3 http://
Hit:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Hit:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Hit:14 http://
Fetched 704 kB in 1s (1045 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
32 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@qau22c13n1:~# apt-cache policy multipath-tools 22.04.1 22.04.2 8.8-1ubuntu1. 22.04.2 500 archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages 22.04.1 500 us.archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages us.archive. ubuntu. com/ubuntu jammy-security/main amd64 Packages dpkg/status us.archive. ubuntu. com/ubuntu jammy/main amd64 Packages
multipath-tools:
Installed: 0.8.8-1ubuntu1.
Candidate: 0.8.8-1ubuntu1.
Version table:
0.
500 http://
*** 0.8.8-1ubuntu1.
500 http://
500 http://
100 /var/lib/
0.8.8-1ubuntu1 500
500 http://
# installing fixed package version from -proposed tools/jammy- proposed 1ubuntu1. 22.04.2' (Ubuntu: 22.04/jammy- proposed [amd64]) for 'multipath-tools' tools-boot archive. ubuntu. com/ubuntu jammy-proposed/main amd64 kpartx amd64 0.8.8-1ubuntu1. 22.04.2 [28.7 kB] archive. ubuntu. com/ubuntu jammy-proposed/main amd64 multipath-tools amd64 0.8.8-1ubuntu1. 22.04.2 [331 kB] 0.8.8-1ubuntu1. 22.04.2_ amd64.deb ... 1ubuntu1. 22.04.2) over (0.8.8- 1ubuntu1. 22.04.1) ... tools_0. 8.8-1ubuntu1. 22.04.2_ amd64.deb ... 1ubuntu1. 22.04.2) over (0.8.8- 1ubuntu1. 22.04.1) ... 1ubuntu1. 22.04.2) ... 1ubuntu1. 22.04.2) ... deb-systemd- invoke line 142. d/multipath- tools ...
root@qau22c13n1:~# sudo apt-get install multipath-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '0.8.8-
The following additional packages will be installed:
kpartx
Suggested packages:
multipath-
The following packages will be upgraded:
kpartx multipath-tools
2 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
Need to get 359 kB of archives.
After this operation, 3072 B disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Fetched 359 kB in 1s (502 kB/s)
(Reading database ... 62716 files and directories currently installed.)
Preparing to unpack .../kpartx_
Unpacking kpartx (0.8.8-
Preparing to unpack .../multipath-
Unpacking multipath-tools (0.8.8-
Setting up kpartx (0.8.8-
Setting up multipath-tools (0.8.8-
Could not execute systemctl: at /usr/bin/
Removing obsolete conffile /etc/init.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Restarting services...
systemctl restart multipathd.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
# no key registered
root@qau22c13n1:~# mpathpersist -i -k /dev/dm-15
PR generation=0x0, 0 registered reservation key.
# second try is working fine sark=0x21487283 1593209 /dev/dm-15 73fa706138358cd 511: adding new path sdag 73fa706138358cd 511: adding new path sdab 73fa706138358cd 511: pr message=setprkey map 36589cfc0000000 73fa706138358cd 511 key 214872831593209 73fa706138358cd 511: message=setprkey map 36589cfc0000000 73fa706138358cd 511 key 214872831593209 reply=ok
root@qau22c13n1:~# mpathpersist -v2 --out --register-ignore --param-
1104.293640 | 36589cfc0000000
1104.305762 | 36589cfc0000000
1104.306623 | 36589cfc0000000
1104.307574 | 36589cfc0000000
1104.312022 | 36589cfc0000000 73fa706138358cd 511: pr message=setprstatus map 36589cfc0000000 73fa706138358cd 511 73fa706138358cd 511: message=setprstatus map 36589cfc0000000 73fa706138358cd 511 reply=ok
1104.312688 | 36589cfc0000000
root@qau22c13n1:~# echo $?
0
# the key is correctly registered on both paths 593209 593209
root@qau22c13n1:~# mpathpersist -i -k /dev/dm-15
PR generation=0x2, 2 registered reservation keys follow:
0x214872831
0x214872831
root@qau22c13n1:~#