Comment 16 for bug 2026881

Revision history for this message
Arnaud Veron (arnaudveron) wrote :

Hi,

please find below the successful tests logs:

root@jammy1:~# apt-cache policy multipath-tools
multipath-tools:
  Installed: (none)
  Candidate: 0.8.8-1ubuntu1.22.04.3
  Version table:
     0.8.8-1ubuntu1.22.04.3 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
     0.8.8-1ubuntu1.22.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.8-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

root@jammy1:~# dpkg -l multipath-tools
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-======================-============-======================================
ii multipath-tools 0.8.8-1ubuntu1.22.04.3 amd64 maintain multipath block device access

root@jammy1:~# disk=/dev/mapper/36589cfc000000bcbd288e641f97f89f9

root@jammy1:~# multipath -l $disk
36589cfc000000bcbd288e641f97f89f9 dm-9 TrueNAS,iSCSI Disk
size=1.0G features='0' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=0 status=active
| `- 16:0:0:9 sdk 8:160 active undef running
`-+- policy='service-time 0' prio=0 status=enabled
  `- 17:0:0:9 sdab 65:176 active undef running

root@jammy1:~# mpathpersist -i -k $disk
  PR generation=0x0, 0 registered reservation key.

root@jammy1:~# mpathpersist -v2 --out --register-ignore --param-sark=0x214123412341234 $disk
742.932845 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdk
742.940158 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdab
742.942874 | 36589cfc000000bcbd288e641f97f89f9: pr message=setprstatus map 36589cfc000000bcbd288e641f97f89f9
742.943865 | 36589cfc000000bcbd288e641f97f89f9: message=setprstatus map 36589cfc000000bcbd288e641f97f89f9 reply=ok

root@jammy1:~# echo $?
0

root@jammy1:~# mpathpersist -i -k $disk
  PR generation=0x2, 2 registered reservation keys follow:
    0x214123412341234
    0x214123412341234
root@jammy1:~# mpathpersist -v2 --out --register-ignore --param-rk=0x214123412341234 $disk
829.476514 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdk
829.490961 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdab
829.495288 | 36589cfc000000bcbd288e641f97f89f9: pr message=unsetprstatus map 36589cfc000000bcbd288e641f97f89f9
829.495765 | 36589cfc000000bcbd288e641f97f89f9: message=unsetprstatus map 36589cfc000000bcbd288e641f97f89f9 reply=ok

829.495865 | 36589cfc000000bcbd288e641f97f89f9: pr message=unsetprkey map 36589cfc000000bcbd288e641f97f89f9
829.500900 | 36589cfc000000bcbd288e641f97f89f9: message=unsetprkey map 36589cfc000000bcbd288e641f97f89f9 reply=ok

root@jammy1:~# echo $?
0

root@jammy1:~# mpathpersist -i -k $disk
  PR generation=0x4, 0 registered reservation key.

root@jammy1:~# lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04