The only command that I know of that can delete a partition mapping like this is partx. On mine partx is not in the initrd so it should not be happening there.
So: cd /usr/sbin mv partx partx.exe then create a file:
#!/bin/bash logger "$(/usr/bin/date) kartx run with options $*" /usr/sbin/partx.exe $*
Test with running "partx --help" and make sure a message shows up in messages file from the logger command.
If that finds something doing the delete then add a "ps -elf > somefile" to the script before you execute partx.exe
I have had to use this trick a number of times to figure out what code path was doing something odd.
You might also run "dmsetup table" and see what is referencing device 8:X (sda is :0, sda1: 1 and so on).
On Thu, Mar 4, 2021 at 5:16 AM GianPiero Puccioni gianpiero.puccioni@isc.cnr.it wrote:
On 3/3/21 11:50 PM, Roger Heflin wrote:
the dm-multipath should be ok, so long as multipathd is not there.
grep -i del_part_nodes /lib/udev/rules.d/*
shows the multipath delete rule. I am on 32 and don't see anything else using it.
if you cat the rule with the del_part_nodes code you could see if anything else on 33 uses it.
del_part_nodes appears only in /lib/udev/rules.d/68-del-part-nodes.rules which has at the start:
# To suppress this, use the kernel parameter "dont_del_part_nodes", # or create an udev rule file that sets ENV{DONT_DEL_PART_NODES}="1".
As I cannot change the kernel par, I added a (found online) /lib/udev/rules.d/00-dont-del-part-nodes.rules with
SUBSYSTEM=="block", KERNEL=="sd*|dasd*|rbd*", ACTION=="add|change", \ ENV{DONT_DEL_PART_NODES}="1"
and rebooted but nothing changed.
GiP _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure