Comment 3 for bug 2026881

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

Hi Sergio,

Please find the logs below. It works fine with your package.

root@qau22c13n1:~# lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04
root@qau22c13n1:~#
root@qau22c13n1:~# apt-cache policy multipath-tools
multipath-tools:
  Installed: 0.8.8-1ubuntu1.22.04.2~ppa1
  Candidate: 0.8.8-1ubuntu1.22.04.2~ppa1
  Version table:
 *** 0.8.8-1ubuntu1.22.04.2~ppa1 500
        500 https://ppa.launchpadcontent.net/sergiodj/multipath-tools/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     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
     0.8.8-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
root@qau22c13n1:~#
root@qau22c13n1:~# mpathpersist -i -k /dev/mapper/36589cfc0000007507940a4aaf05aead6
  PR generation=0x5e, 0 registered reservation key.
root@qau22c13n1:~#
root@qau22c13n1:~# mpathpersist -v2 --out --register-ignore --param-sark=0x214872831593209 /dev/mapper/36589cfc0000007507940a4aaf05aead6
468.142907 | 36589cfc0000007507940a4aaf05aead6: adding new path sdy
468.145936 | 36589cfc0000007507940a4aaf05aead6: adding new path sdx
468.146779 | 36589cfc0000007507940a4aaf05aead6: pr message=setprstatus map 36589cfc0000007507940a4aaf05aead6
468.146850 | 36589cfc0000007507940a4aaf05aead6: message=setprstatus map 36589cfc0000007507940a4aaf05aead6 reply=ok

root@qau22c13n1:~# echo $?
0
root@qau22c13n1:~# mpathpersist -i -k /dev/mapper/36589cfc0000007507940a4aaf05aead6
  PR generation=0x60, 2 registered reservation keys follow:
    0x214872831593209
    0x214872831593209
root@qau22c13n1:~#

=> the key is correctly registered on both paths

root@qau22c13n1:~# mpathpersist -v2 --out --register-ignore --param-rk=0x214872831593209 /dev/mapper/36589cfc0000007507940a4aaf05aead6
500.425873 | 36589cfc0000007507940a4aaf05aead6: adding new path sdy
500.429693 | 36589cfc0000007507940a4aaf05aead6: adding new path sdx
500.430421 | 36589cfc0000007507940a4aaf05aead6: pr message=unsetprstatus map 36589cfc0000007507940a4aaf05aead6
500.430491 | 36589cfc0000007507940a4aaf05aead6: message=unsetprstatus map 36589cfc0000007507940a4aaf05aead6 reply=ok

500.430527 | 36589cfc0000007507940a4aaf05aead6: pr message=unsetprkey map 36589cfc0000007507940a4aaf05aead6
500.430598 | 36589cfc0000007507940a4aaf05aead6: message=unsetprkey map 36589cfc0000007507940a4aaf05aead6 reply=ok

root@qau22c13n1:~#
root@qau22c13n1:~# mpathpersist -i -k /dev/mapper/36589cfc0000007507940a4aaf05aead6
  PR generation=0x62, 0 registered reservation key.
root@qau22c13n1:~#

=> the key is unregistered on both paths

Thanks a lot for the quick resolution.