Re: [gentoo-user] Re: LVM and the /usr Logical Volume

2022-04-25 Thread Wols Lists

On 25/04/2022 14:36, dhk wrote:
After reinstalling Gentoo with a new liveusb, my system still looks 
similar to the way it was before.  I started with the existing partition 
schema and wiped everything and performed a separate independent 
install.  I am still not sure why the /dev/dm-1 block device is mounted 
on /usr which is not what the fstab is instructing.


First of all, I notice you haven't said anything about /home, /opt etc. 
Missing context is important ...


Secondly, vg0-usr is a symlink to dm-1, so I would not be suprised for 
df to resolve it.


In fact, looking at both the output of mount, and df, on my system they 
are inconsistent. mount tells me /dev/mapper/vg-root-lv-gentoo is 
mounted on /, while df tells me /dev/dm-1 is mounted on /.


My guess is that anything to do with initial boot may or may not link to 
/dev/dm-x, anything after that links to vg as you expect.


Either way it doesn't really make any difference imho.

Cheers,
Wol



Re: [gentoo-user] Re: LVM and the /usr Logical Volume

2022-04-06 Thread Wols Lists

On 07/04/2022 05:00, John Covici wrote:

Are you using systemd or openrc?  What are you using for your initrd,
dracut or something else?  I also wonder if dm1 is the same thing as
your/dev/mapper/... by another name -- check where the link points
to.


If it isn't, then there's something wrong. You should be using 
/dev/mapper/..., which should be a link to whatever device is underlying 
it. /dev/dm-1 will be whatever devicemapper brought up as the first 
device it found.


Cheers,
Wol



Re: [gentoo-user] Re: LVM and the /usr Logical Volume

2022-04-06 Thread John Covici
On Wed, 06 Apr 2022 19:38:16 -0400,
dhk wrote:
> 
> So it sounds like /usr being under /dev/dm-1 instead of
> /dev/mapper does not look right.
> 
> The UUID was tried in the fstab and the same results occurred,
> same as with LABEL and mount points.
> 
> Since /usr is mounted temporarily at boot it almost looks as if
> there is something wrong with the way the initramfs is handling
> it. The tmpfs is built into the kernel and the
> /etc/initramfs.mounts looks correct with only /usr in it, but
> /lib/modules was tried also and did not make a difference.
> 
> Could this be a bug with genkernel or udev?

Are you using systemd or openrc?  What are you using for your initrd,
dracut or something else?  I also wonder if dm1 is the same thing as
your /dev/mapper/... by another name -- check where the link points
to.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com