Re: Disk partitions disappear when mounting others
Date: Sun, 25 Dec 2022 16:32:55 UTC
On Sun, Dec 25, 2022, 1:02 AM Alexey Dokuchaev <danfe@freebsd.org> wrote: > Hi there, > > I'm in the process of moving my data from a dying HDD, and just noticed > something weird. It's an MBR partitioned drive, and there is a FreeBSD > slice and Fedora LVM in EBR, accessible as > /dev/linux_lvm/fedora-{swap,home,root}. > > The problem is that once I mount my old FreeBSD partition, e.g. > /dev/ada0s2a, those LVM nodes are gone, logging this: > > GEOM_LINUX_LVM: disk pv0 already initialised in fedora > GEOM_LINUX_LVM: Disk diskid/DISK-XXXXXXX1s4+00000001 removed from pv0. > GEOM_LINUX_LVM: Device linux_lvm/fedora-swap removed. > GEOM_LINUX_LVM: Device linux_lvm/fedora-home removed. > GEOM_LINUX_LVM: Device linux_lvm/fedora-root removed. > > If I unmount /dev/ada0s2a and mount any Fedora's partition, then I can > longer access other slices as there's only /dev/ada0 remains; ``gpart > show'' > also does not list them, but only those under diskid/DISK-XXXXXXX1. > > Why is this happening? What should I fix to stop my partitions from > disappearing and reappearing? Something has them open. My guess is the Linux lvm geom provider opens too many things. It's been standard geom behavior to remove the other device aliases in /dev when one is open. Though the problem may be in tasting during open since gpart list shows them gone. Warner Thanks, > > ./danfe > >