From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 82F7B1381F3 for ; Fri, 30 Aug 2013 05:22:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8EEEEE0F2E; Fri, 30 Aug 2013 05:21:36 +0000 (UTC) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by pigeon.gentoo.org (Postfix) with ESMTP id 6CD42E0F19 for ; Fri, 30 Aug 2013 05:21:35 +0000 (UTC) Received: from [212.54.42.134] (helo=smtp3.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1VFH9K-00082y-N5 for gentoo-user@lists.gentoo.org; Fri, 30 Aug 2013 07:21:34 +0200 Received: from 54698b76.cm-12-2c.dynamic.ziggo.nl ([84.105.139.118] helo=data.antarean.org) by smtp3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1VFH9K-0006Wj-2L for gentoo-user@lists.gentoo.org; Fri, 30 Aug 2013 07:21:34 +0200 Received: from android-f119ab37c2e16cff.opdion.com (53501E72.static.ziggozakelijk.nl [83.80.30.114]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPSA id A95474C for ; Fri, 30 Aug 2013 07:21:00 +0200 (CEST) User-Agent: K-9 Mail for Android In-Reply-To: References: <87r4dcbisz.fsf@nyu.edu> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----6T3LSN1EC26727EX7YJBX55U9HVBLW" Subject: Re: [gentoo-user] where did lvm installation guide go? From: "J. Roeleveld" Date: Fri, 30 Aug 2013 07:21:07 +0200 To: gentoo-user@lists.gentoo.org Message-ID: <3d90a1d3-1a1e-4a4c-82b9-e0d34237c103@email.android.com> X-Ziggo-spambar: ---- X-Ziggo-spamscore: -4.7 X-Ziggo-spamreport: ALL_TRUSTED=-1,BAYES_00=-1.9,HTML_MESSAGE=0.001,PROLO_TRUST_RDNS=-3,RDNS_DYNAMIC=0.982,TW_LV=0.077,WORDPRESS_PLUS=0.12 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: d4b900b6-e5a8-465e-b15b-734a960352b6 X-Archives-Hash: 4e7505b98b5caad96a2309597a675b20 ------6T3LSN1EC26727EX7YJBX55U9HVBLW Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable "Canek Pel=C3=A1ez Vald=C3=A9s" wrote: >On Thu, Aug 29, 2013 at 10:47 AM, wrote: >> I want to reinstall an old system to have combined root+usr. >> >> I have always used an lvm installation guide that was a "companion" >to >> the handbook. That is it would tell you how to augment each handbook >> installation chapter for lvm (actually lvm2). >> >> I can't find this documentation now on gentoo.org. There is a big >wiki >> page, but that is different as are daniel's 2-volume "learning linux >> lvm". >> >> The closest I found is the raid+lvm quick install guide, but i would >be >> happier with the one I have used often in the past. >> >> Any clues (I am emotionally prepared to learn that it is right there >on >> the installation web page, but my eyes and search commands are >> deficient). > >As James said, the docs are being reorganized. However, I did a >systemd+LVM installation (just because I was getting tired of not >knowing what the fuss was all about), and (in my experience) there are >almost no changes from the regular installation in the handbook. > >I put everything in LVM (/, /boot, everything). From my notes, the >only changes are: > >>From the livecd: >1. Use partitions, not whole disks (GRUB2 got confused when I tried to >use whole disks). >2. Set the partition type as LVM (8e in fdisk). >3. Create the Physical Volume, the Volume Group, and the Logical >Volumes as desired. >4. Continue the normal installation, just using /dev/vg0/lvolX (or >whatever names you choose). > >After the chroot and emerging the kernel package: >1. Se the LVM options in the kernel. Compile, install it. >2. Emerge systemd. >3. Emerge dracut (USE=3D"device-mapper", DRACUT_MODULES=3D"systemd lvm",= at >least). >4. Set add_dracutmodules=3D"systemd" in /etc/dracut.conf. >5. Weirdly, set lvmconf=3D"no" in /etc/dracut.conf. I didn't even >touched /etc/lvm/lvm.conf, so I think leaving it out makes dracut to >autoconfigure it. If I put lvmconf=3D"yes", the boot hangs. Didn't >investigated why. >6. Emerge GRUB2 (USE=3D"device-mapper mount"); I don't know if GRUB >works with LVM, but GRUB2 does, so I used that. >7. Set GRUB_PRELOAD_MODULES=3D"lvm", >GRUB_CMDLINE_LINUX=3D"init=3D/usr/lib/systemd/systemd", in >/etc/default/grub. >8. Generate initramfs, generate /boot/grub2/grub.cfg, install GRUB2 >with grub2-install. >9. Reboot. Everything works. > >GRUB2 handles LVM just fine, I believe, but my LVM setup was dead >simple (the VG was just the only partition of all my disks). >dracut+systemd takes care of everything else; I didn't even had to do >something special in fstab, since I used labels. > >To extend/reduce your Logical Volumes you will need a livecd, or a >more complex initramfs, though. > >Regards. Canek, LVs can be resized while the system is running. It also depends on the ac= tual filesystem, but extending can be done online with all filesystems I = am aware of. Shrinking is not possible with all. -- Joost --=20 Sent from my Android device with K-9 Mail. Please excuse my brevity. --=20 Sent from my Android device with K-9 Mail. Please excuse my brevity. ------6T3LSN1EC26727EX7YJBX55U9HVBLW Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Canek Pel=C3=A1ez Vald=C3=A9s" <caneko@gmail.com> wrote:=
>On Thu, Aug 29, 2013 at 10:47 AM, <gottlieb@nyu.edu> wrote: >> I want to reinstall an old system to have combined root+usr.
>>
>> I have always used an lvm installation guide that was a "co= mpanion"
>to
>> the handbook. That is it would tell you how to augment each han= dbook
>> installation chapter for lvm (actually lvm2).
>>
>> I can't find this documentation now on gentoo.org. There is a big
>wiki
>> page, but that is different as are daniel's 2-volume "l= earning linux
>> lvm".
>>
>> The closest I found is the raid+lvm quick install guide, but i w= ould
>be
>> happier with the one I have used often in the past.
>>
>> Any clues (I am emotionally prepared to learn that it is right t= here
>on
>> the installation web page, but my eyes and search commands are >> deficient).
>
>As James said, the docs are being reorganized. However, I did a
>systemd+LVM installation (just because I was getting tired of not
>knowing what the fuss was all about), and (in my experience) there ar= e
>almost no changes from the regular installation in the handbook.
>
>I put everything in LVM (/, /boot, everything). From my notes, the >only changes are:
>
>From the livecd:
>1. Use partitions, not whole disks (GRUB2 got confused when I tried t= o
>use whole disks).
>2. Set the partition type as LVM (8e in fdisk).
>3. Create the Physical Volume, the Volume Group, and the Logical
>Volumes as desired.
>4. Continue the normal installation, just using /dev/vg0/lvolX (or >whatever names you choose).
>
>After the chroot and emerging the kernel package:
>1. Se the LVM options in the kernel. Compile, install it.
>2. Emerge systemd.
>3. Emerge dracut (USE=3D"device-mapper", DRACUT_MODULES=3D&= quot;systemd lvm", at
>least).
>4. Set add_dracutmodules=3D"systemd" in /etc/dracut.conf. >5. Weirdly, set lvmconf=3D"no" in /etc/dracut.conf. I didn&= #39;t even
>touched /etc/lvm/lvm.conf, so I think leaving it out makes dracut to<= br> >autoconfigure it. If I put lvmconf=3D"yes", the boot hangs.= Didn't
>investigated why.
>6. Emerge GRUB2 (USE=3D"device-mapper mount"); I don't = know if GRUB
>works with LVM, but GRUB2 does, so I used that.
>7. Set GRUB_PRELOAD_MODULES=3D"lvm",
>GRUB_CMDLINE_LINUX=3D"init=3D/usr/lib/systemd/systemd", in<= br> >/etc/default/grub.
>8. Generate initramfs, generate /boot/grub2/grub.cfg, install GRUB2 >with grub2-install.
>9. Reboot. Everything works.
>
>GRUB2 handles LVM just fine, I believe, but my LVM setup was dead
>simple (the VG was just the only partition of all my disks).
>dracut+systemd takes care of everything else; I didn't even had t= o do
>something special in fstab, since I used labels.
>
>To extend/reduce your Logical Volumes you will need a livecd, or a >more complex initramfs, though.
>
>Regards.

Canek,

LVs can be resized while the system is running. It also depends on the ac= tual filesystem, but extending can be done online with all filesystems I = am aware of.
Shrinking is not possible with all.

--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity. ------6T3LSN1EC26727EX7YJBX55U9HVBLW--