Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM and the /usr Logical Volume
Date: Thu, 07 Apr 2022 07:35:14
Message-Id: 20220407083453.6cefe4fb@digimed.co.uk
In Reply to: [gentoo-user] LVM and the /usr Logical Volume by dhk
1 On Tue, 5 Apr 2022 20:25:09 -0400, dhk wrote:
2
3 > The issue is the /usr logical volume is not mounted as expected. After
4 > booting without the livecd:
5 >   * The df -h command show /usr on /dev/dm-1 and not
6 > /dev/mapper/vg0-usr like the in the fstab.
7 >   * My expectation is it should follow the other LVs (home, var, opt,
8 > vm) and be in the vg0 Volume Group on /dev/mapper .
9 >   * However the mount /usr command indicates that it is mounted
10 > correctly:  mount: /usr: /dev/mapper/vg0-usr already mounted or mount
11 > point busy.
12 >
13 > Is there something off here or is this correct behavior?
14
15 > newhost / # ls -l /dev/vg0 /dev/vg1
16 > /dev/vg0:
17 > total 0
18 > lrwxrwxrwx 1 root root 7 Apr  4 03:32 home -> ../dm-3
19 > lrwxrwxrwx 1 root root 7 Apr  4 03:32 opt -> ../dm-4
20 > lrwxrwxrwx 1 root root 7 Apr  4 03:32 *usr -> ../dm-1  # This looks
21 > right.* lrwxrwxrwx 1 root root 7 Apr  4 03:32 var -> ../dm-2
22
23 /dev/mapper/vg0-usr and /dev/dm-1 are the same device, so nothing is
24 actually wrong, this is more a cosmetic issue. You are mounting the
25 correct device, it is just showing as a different name.
26
27 I suspect the initramfs here, what does the fstab inside that look like?
28
29 How are you creating the initramfs? Genkernel, dracut, home brewed?
30
31
32 --
33 Neil Bothwick
34
35 The word 'Windows' is a word out of an old dialect of the Apaches.
36 It means: 'White man staring through glass-screen onto an hourglass...')