1 |
"Canek Peláez Valdés" <caneko@×××××.com> wrote: |
2 |
>On Thu, Aug 29, 2013 at 10:47 AM, <gottlieb@×××.edu> wrote: |
3 |
>> I want to reinstall an old system to have combined root+usr. |
4 |
>> |
5 |
>> I have always used an lvm installation guide that was a "companion" |
6 |
>to |
7 |
>> the handbook. That is it would tell you how to augment each handbook |
8 |
>> installation chapter for lvm (actually lvm2). |
9 |
>> |
10 |
>> I can't find this documentation now on gentoo.org. There is a big |
11 |
>wiki |
12 |
>> page, but that is different as are daniel's 2-volume "learning linux |
13 |
>> lvm". |
14 |
>> |
15 |
>> The closest I found is the raid+lvm quick install guide, but i would |
16 |
>be |
17 |
>> happier with the one I have used often in the past. |
18 |
>> |
19 |
>> Any clues (I am emotionally prepared to learn that it is right there |
20 |
>on |
21 |
>> the installation web page, but my eyes and search commands are |
22 |
>> deficient). |
23 |
> |
24 |
>As James said, the docs are being reorganized. However, I did a |
25 |
>systemd+LVM installation (just because I was getting tired of not |
26 |
>knowing what the fuss was all about), and (in my experience) there are |
27 |
>almost no changes from the regular installation in the handbook. |
28 |
> |
29 |
>I put everything in LVM (/, /boot, everything). From my notes, the |
30 |
>only changes are: |
31 |
> |
32 |
>From the livecd: |
33 |
>1. Use partitions, not whole disks (GRUB2 got confused when I tried to |
34 |
>use whole disks). |
35 |
>2. Set the partition type as LVM (8e in fdisk). |
36 |
>3. Create the Physical Volume, the Volume Group, and the Logical |
37 |
>Volumes as desired. |
38 |
>4. Continue the normal installation, just using /dev/vg0/lvolX (or |
39 |
>whatever names you choose). |
40 |
> |
41 |
>After the chroot and emerging the kernel package: |
42 |
>1. Se the LVM options in the kernel. Compile, install it. |
43 |
>2. Emerge systemd. |
44 |
>3. Emerge dracut (USE="device-mapper", DRACUT_MODULES="systemd lvm", at |
45 |
>least). |
46 |
>4. Set add_dracutmodules="systemd" in /etc/dracut.conf. |
47 |
>5. Weirdly, set lvmconf="no" in /etc/dracut.conf. I didn't even |
48 |
>touched /etc/lvm/lvm.conf, so I think leaving it out makes dracut to |
49 |
>autoconfigure it. If I put lvmconf="yes", the boot hangs. Didn't |
50 |
>investigated why. |
51 |
>6. Emerge GRUB2 (USE="device-mapper mount"); I don't know if GRUB |
52 |
>works with LVM, but GRUB2 does, so I used that. |
53 |
>7. Set GRUB_PRELOAD_MODULES="lvm", |
54 |
>GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd", in |
55 |
>/etc/default/grub. |
56 |
>8. Generate initramfs, generate /boot/grub2/grub.cfg, install GRUB2 |
57 |
>with grub2-install. |
58 |
>9. Reboot. Everything works. |
59 |
> |
60 |
>GRUB2 handles LVM just fine, I believe, but my LVM setup was dead |
61 |
>simple (the VG was just the only partition of all my disks). |
62 |
>dracut+systemd takes care of everything else; I didn't even had to do |
63 |
>something special in fstab, since I used labels. |
64 |
> |
65 |
>To extend/reduce your Logical Volumes you will need a livecd, or a |
66 |
>more complex initramfs, though. |
67 |
> |
68 |
>Regards. |
69 |
|
70 |
Canek, |
71 |
|
72 |
LVs can be resized while the system is running. It also depends on the actual filesystem, but extending can be done online with all filesystems I am aware of. |
73 |
Shrinking is not possible with all. |
74 |
|
75 |
-- |
76 |
Joost |
77 |
-- |
78 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
79 |
-- |
80 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |