Re: Weird boot problems.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux