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) kartx run with options $*"
/usr/sbin/partx.exe $*
I imagine this file is to be named partx and chmod +x
Test with running "partx --help" and make sure a message
shows up in
messages file from the logger command.
Yes I got
Mar 4 14:06:55 node06 root[1339]: Thu Mar 4 02:06:55 PM CET 2021 kartx run
with options --help
If that finds something doing the delete then add a "ps -elf
>
somefile" to the script before you execute partx.exe
No, unfortunately a reboot didn't leave any trace.
I have had to use this trick a number of times to figure out what
code
path was doing something odd.
It's a nice trick, I'll have to remember that...
You might also run "dmsetup table" and see what is
referencing device
8:X (sda is :0, sda1:# dmsetup table 1 and so on).
fedora_node06-swap: 0 8388608 linear 8:2 2048
fedora_node06-root: 0 104857600 linear 8:2 8390656
fedora_node06-home: 0 1838170112 linear 8:2 113248256
still a mistery...
GiP
--
GianPiero Puccioni |Istituto dei Sistemi Complessi-CNR
gianpiero.puccioni(a)isc.cnr.it |Via Madonna del Piano, 10
T:+39 0555226682 |50019 Sesto F. (Firenze) ITALY