public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] LVM, /usr and really really bad thoughts.
Date: Fri, 9 Mar 2012 21:44:16 -0600	[thread overview]
Message-ID: <CADPrc82s3D1ykUxr+2zTsvwO1SDWqDZ+8_gNrYHy=eu6gMdcHg@mail.gmail.com> (raw)
In-Reply-To: <4F5AC0F6.6000804@gmail.com>

On Fri, Mar 9, 2012 at 8:48 PM, Dale <rdalek1967@gmail.com> wrote:
> Howdy,
>
> Well, this is what I am thinking about jumping into.  Ya'll ready for
> this?  I'm thinking about redoing my partition layout.  I'm wanting to
> keep / (root) on a normal ext4 file system.  I want to put /usr, /var,
> /home, and such on LVM.  I been using that dracut thingy to build the
> init thingy.  Sorry, I'm full of thingys tonight.  Maybe I need my meds?
>  Anyway, the init thingy seems to be working, I think.  I asked a while
> back how to tell for sure but it didn't get any replies so I am not real
> sure it is.  I do get this tho:
>
> root@fireball / # dmesg | grep init
> [    0.000000] Command line: root=/dev/sda3 init=/sbin/init
> [    0.000000] initial memory mapped : 0 - 20000000
> [    0.000000] init_memory_mapping: 0000000000000000-00000000bfc91000
> [    0.000000] init_memory_mapping: 0000000100000000-0000000440000000
> [    0.000000] Kernel command line: root=/dev/sda3 init=/sbin/init
> [    0.000000] Memory: 16387452k/17825792k available (6262k kernel code,
> 1052572k absent, 385768k reserved, 6647k data, 4852k init)
> [    0.003045] Security Framework initialized
> [    0.388120] SCSI subsystem initialized
> [    0.410739] pnp: PnP ACPI init
> [    0.787822] Trying to unpack rootfs image as initramfs...
> [    0.867787] Freeing initrd memory: 5084k freed
> [    0.880111] audit: initializing netlink socket (disabled)
> [    0.880439] type=2000 audit(1331081750.879:1): initialized
> [    0.912626] fuse init (API version 7.17)
> [    1.258561] ehci_hcd 0000:00:12.2: init command 0010005 (park)=0
> ithresh=1 period=512 RUN
> [    1.270152] ehci_hcd 0000:00:13.2: init command 0010005 (park)=0
> ithresh=1 period=512 RUN
> [    1.583458] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
> initialised: dm-devel@redhat.com
> [    4.258421] init-early.sh used greatest stack depth: 3696 bytes left
> [    4.503735] init.sh used greatest stack depth: 3576 bytes left
> root@fireball / # dmesg | grep dracut
> [    3.018189] dracut: Checking reiserfs: /dev/sda3
> [    3.018531] dracut: issuing reiserfsck -a  /dev/sda3
> [    3.033879] dracut: Reiserfs super block in block 16 on 0x803 of
> format 3.6 with standard journal
> [    3.034463] dracut: Blocks (total/free): 4883760/2502678 by 4096 bytes
> [    3.034781] dracut: Filesystem is clean
> [    3.035210] dracut: Remounting /dev/sda3 with -o ro
> [    3.082413] dracut: Mounted root filesystem /dev/sda3
> [    3.158322] dracut: Switching root
> root@fireball / #
>
> And grub looks like this:
>
> title=Initramfs-new_kernel
> root (hd0,0)
> kernel /boot/bzImage-3.2.2-1 root=/dev/sda3 init=/sbin/init
> initrd /initramfs-3.2.2-1.img
>
> Does anyone think dracut is not working?  I need to make certain before
> diving into the next step.
>
> I have a second drive that is plenty large enough.  Thanks Kashani.  I
> plan to move everything currently to the larger drive then just sort of
> do a fresh install on my regular OS drive.
>
> One question I have right off the bat, how do I tell dracut to mount
> /usr?  I think it used to have a usr USE flag but that seems to have
> disappeared during a upgrade.  Is it magic?  Does it need to mount /var
> as well for logging?
>
> Just for the record, dracut is the only way I could get a init thingy to
> build and let me boot.  I tried different ways and they just didn't
> work.  At least I think dracut is working which is a good start.  ;-)
>
> I hope there is a few dracut users on here that have at least /usr on a
> separate partition.

I keep my /usr partition in /, but seeing the modules from dracut, the
"magic" happens at:

/usr/lib/dracut/modules.d/98usrmount/mount-usr.sh

Basically, it seems that if /usr is specified in /etc/fstab, then
dracut will mount it. It says nothing about LVM, but that is taken
care of in the scripts at:

/usr/lib/dracut/modules.d/90lvm

I'm not familiar with LVM, but it seems simple enough. And you can
create and modify your own dracut modules, of course.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



  reply	other threads:[~2012-03-10  3:45 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-10  2:48 [gentoo-user] LVM, /usr and really really bad thoughts Dale
2012-03-10  3:44 ` Canek Peláez Valdés [this message]
2012-03-10  4:16   ` Dale
2012-03-10  5:41     ` Canek Peláez Valdés
2012-03-10  6:03       ` Dale
2012-03-10  8:45         ` Neil Bothwick
2012-03-10  9:45           ` Dale
2012-03-10  9:52             ` Neil Bothwick
2012-03-10  9:53             ` Neil Bothwick
2012-03-10 10:30               ` Dale
2012-03-10 10:49                 ` Neil Bothwick
2012-03-10 11:28                   ` Dale
2012-03-10 11:12             ` William Kenworthy
2012-03-10 10:58 ` pk
2012-03-10 15:35   ` Neil Bothwick
2012-03-10 20:50     ` pk
2012-03-10 21:01       ` Canek Peláez Valdés
2012-03-10 22:12       ` Neil Bothwick
2012-03-11  2:36       ` Canek Peláez Valdés
2012-03-11  9:37         ` pk
2012-03-11 12:16           ` Jorge Martínez López
2012-03-11 18:26             ` Canek Peláez Valdés
2012-03-12 18:13               ` Jorge Martínez López
2012-03-11 20:59             ` [gentoo-user] " walt
2012-03-12 18:23               ` Jorge Martínez López
2012-03-12 18:30                 ` Michael Mol
2012-03-12 18:39                   ` Bruce Hill, Jr.
2012-03-12 20:25                     ` Mick
2012-03-12 20:39                     ` Michael Mol
2012-03-12 20:40                     ` Alan McKinnon
2012-03-12 23:22                     ` Dale
2012-03-12 23:53                       ` Canek Peláez Valdés
2012-03-13 15:35                         ` Alan McKinnon
2012-03-13 15:50                           ` Pandu Poluan
2012-03-13  1:58                       ` Mike Edenfield
2012-03-13  4:54                         ` Pandu Poluan
2012-03-13  7:13                           ` Alan McKinnon
2012-03-13  7:31                             ` Pandu Poluan
2012-03-13  7:38                               ` Canek Peláez Valdés
2012-03-13  8:03                                 ` Pandu Poluan
2012-03-13 11:07                                 ` Neil Bothwick
2012-03-13 18:34                             ` pk
2012-03-14 16:17                             ` Mike Edenfield
2012-03-14 16:28                               ` Pandu Poluan
2012-03-14 22:15                                 ` Mike Edenfield
2012-03-15  1:03                                   ` Walter Dnes
2012-03-15  2:47                                     ` Dale
2012-03-15  9:13                                       ` Neil Bothwick
2012-03-15 10:10                                         ` Dale
2012-03-15 10:18                                           ` Neil Bothwick
2012-03-15 12:41                                         ` Tanstaafl
2012-03-15 13:05                                           ` Neil Bothwick
2012-03-15 13:56                                             ` Tanstaafl
2012-03-15 14:13                                               ` Neil Bothwick
2012-03-15 14:13                                               ` Mark Knecht
2012-03-16  5:39                                             ` Joost Roeleveld
2012-03-16  8:47                                               ` Neil Bothwick
2012-03-15 14:09                                       ` Mike Edenfield
2012-03-15 14:47                                         ` Michael Mol
2012-03-15 16:37                                           ` Pandu Poluan
2012-03-16 18:14                                         ` Dale
2012-03-15 12:38                                     ` Tanstaafl
2012-03-13  8:09                       ` Walter Dnes
2012-03-13  8:20                         ` Canek Peláez Valdés
2012-03-14 14:21                         ` Dale
2012-03-14 14:41                         ` Alan Mackenzie
2012-03-14 14:55                           ` Pandu Poluan
2012-03-13  8:15       ` [gentoo-user] " Walter Dnes
2012-03-11  3:25     ` John Blinka
2012-03-10 17:13 ` Todd Goodman
2012-03-10 21:07   ` Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADPrc82s3D1ykUxr+2zTsvwO1SDWqDZ+8_gNrYHy=eu6gMdcHg@mail.gmail.com' \
    --to=caneko@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox