Re: Weird boot problems.

2021-03-04 Thread GianPiero Puccioni
On 3/4/21 1:56 PM, Roger Heflin wrote: 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) ka

Re: Weird boot problems.

2021-03-04 Thread Roger Heflin
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.

Re: Weird boot problems.

2021-03-04 Thread GianPiero Puccioni
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 s

Re: Weird boot problems.

2021-03-03 Thread Roger Heflin
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. On W

Re: Weird boot problems.

2021-03-03 Thread GianPiero Puccioni
On 3/3/21 6:22 PM, Roger Heflin wrote: That looks like multipath is blacklisted. you might to a lsinitrd | grep -i multipath and make sure it is not in the initrd with a config file. multipath is the only service I have seen that actually deletes partition mappings, but it is possible that some

Re: Weird boot problems.

2021-03-03 Thread Roger Heflin
and the multipath delete code is in udev so if you search udev then the code doing it should be in there. And I would think anyone else's partition mapping deletes would be in there. On Wed, Mar 3, 2021 at 11:22 AM Roger Heflin wrote: > > That looks like multipath is blacklisted. > > you might t

Re: Weird boot problems.

2021-03-03 Thread Roger Heflin
That looks like multipath is blacklisted. you might to a lsinitrd | grep -i multipath and make sure it is not in the initrd with a config file. multipath is the only service I have seen that actually deletes partition mappings, but it is possible that some of the other dm* stuff might (dm-raid ma

Re: Weird boot problems.

2021-03-03 Thread GianPiero Puccioni
On 3/3/21 12:39 PM, Roger Heflin wrote: Blacklist the wwwid in multipath.conf and/or blacklist the disk type in multipath. And/or whitelist the disks you want multipath to manage. If all of your disks have 2 paths and are expected to have 2 paths then you can set file_multipaths to only manage

Re: Weird boot problems.

2021-03-03 Thread Roger Heflin
Blacklist the wwwid in multipath.conf and/or blacklist the disk type in multipath. And/or whitelist the disks you want multipath to manage. If all of your disks have 2 paths and are expected to have 2 paths then you can set file_multipaths to only manage devices with 2 paths, but to make multipat

Re: Weird boot problems.

2021-03-03 Thread GianPiero Puccioni
On 3/2/21 10:24 PM, Jorge Fábregas wrote: On 3/2/21 5:04 PM, GianPiero Puccioni wrote: so it is there and seen but why the block device is not created? Copying the content of (sda1)boot into /boot and reinstalling grub could probably work but how? Hi GianPiero, This is strange. I don't know w

Re: Weird boot problems.

2021-03-02 Thread Roger Heflin
if you are running multipath then here is what happened, multipath started up and attempted to manage sda and so it deleted sda1, then once it gets to sda2 it figures out the vg is live and online and it figures out it cannot manage it, so stops. No code exists apparently to go back and put back s

Re: Weird boot problems.

2021-03-02 Thread Ed Greshko
On 03/03/2021 05:04, GianPiero Puccioni wrote: Hi, I have a problem with an old rack unit I use in a cluster. We had a problem with the HD and had to change it and reinstall. It was done by someone  new to the job (I am locked and doing everything remotely) and he had a problem with the configur

Re: Weird boot problems.

2021-03-02 Thread Jorge Fábregas
On 3/2/21 5:04 PM, GianPiero Puccioni wrote: > so it is there and seen but why the block device is not created? > Copying the content of (sda1)boot into /boot and reinstalling grub could > probably work but how? Hi GianPiero, This is strange. I don't know why there's no device file for the first

Weird boot problems.

2021-03-02 Thread GianPiero Puccioni
Hi, I have a problem with an old rack unit I use in a cluster. We had a problem with the HD and had to change it and reinstall. It was done by someone new to the job (I am locked and doing everything remotely) and he had a problem with the configuration as it seems that this unit HD HAS to be co