From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S6DFW-00016Q-3n for garchives@archives.gentoo.org; Sat, 10 Mar 2012 03:45:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D658E06B4; Sat, 10 Mar 2012 03:45:29 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 9A3BAE0738 for ; Sat, 10 Mar 2012 03:44:17 +0000 (UTC) Received: by dady25 with SMTP id y25so2501803dad.40 for ; Fri, 09 Mar 2012 19:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jrrPYBDj9znS3P4FENsAI0JgPXADaQ3BvaackxdMNgo=; b=EJAMLTv4+VXgph2+5VQVgXg2vq1J13Wsg96doL3nt+4LiwDpEsvwm3GaQr3SDEZNII w0bIqngdVT6wo6HMcGrqUkpAQMoOYcFWDftrukXm4WHygV9w01E9SiL80nVATtnXqEud KJc9mCXfw8GOub7OZaMxNmh4TWzfm/ZFM6CxCF1ueHgaB0AgX+wgu8UzK+ZXE92c/Xkc XvfEVhLvHG/r1UQ58FqD66SgnXN3GYOlhXG21NmqZIFRIQFHZUfTZzqZVr6IHTZcLrwO RQIXEyh/eOkrO3hR8gJXadEA3yblrhPtCbOFdSZp5Ui95WrC8KnwEy8L+IZVrSUt2gPO n7JQ== 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 Received: by 10.68.203.74 with SMTP id ko10mr8033850pbc.125.1331351056800; Fri, 09 Mar 2012 19:44:16 -0800 (PST) Received: by 10.68.59.231 with HTTP; Fri, 9 Mar 2012 19:44:16 -0800 (PST) In-Reply-To: <4F5AC0F6.6000804@gmail.com> References: <4F5AC0F6.6000804@gmail.com> Date: Fri, 9 Mar 2012 21:44:16 -0600 Message-ID: Subject: Re: [gentoo-user] LVM, /usr and really really bad thoughts. From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: af963f04-b250-46c3-b5c3-bb4e3281720a X-Archives-Hash: db348e5615684481c16de18f863aa5f4 On Fri, Mar 9, 2012 at 8:48 PM, Dale wrote: > Howdy, > > Well, this is what I am thinking about jumping into. =C2=A0Ya'll ready fo= r > this? =C2=A0I'm thinking about redoing my partition layout. =C2=A0I'm wan= ting to > keep / (root) on a normal ext4 file system. =C2=A0I want to put /usr, /va= r, > /home, and such on LVM. =C2=A0I been using that dracut thingy to build th= e > init thingy. =C2=A0Sorry, I'm full of thingys tonight. =C2=A0Maybe I need= my meds? > =C2=A0Anyway, the init thingy seems to be working, I think. =C2=A0I asked= a while > back how to tell for sure but it didn't get any replies so I am not real > sure it is. =C2=A0I do get this tho: > > root@fireball / # dmesg | grep init > [ =C2=A0 =C2=A00.000000] Command line: root=3D/dev/sda3 init=3D/sbin/init > [ =C2=A0 =C2=A00.000000] initial memory mapped : 0 - 20000000 > [ =C2=A0 =C2=A00.000000] init_memory_mapping: 0000000000000000-00000000bf= c91000 > [ =C2=A0 =C2=A00.000000] init_memory_mapping: 0000000100000000-0000000440= 000000 > [ =C2=A0 =C2=A00.000000] Kernel command line: root=3D/dev/sda3 init=3D/sb= in/init > [ =C2=A0 =C2=A00.000000] Memory: 16387452k/17825792k available (6262k ker= nel code, > 1052572k absent, 385768k reserved, 6647k data, 4852k init) > [ =C2=A0 =C2=A00.003045] Security Framework initialized > [ =C2=A0 =C2=A00.388120] SCSI subsystem initialized > [ =C2=A0 =C2=A00.410739] pnp: PnP ACPI init > [ =C2=A0 =C2=A00.787822] Trying to unpack rootfs image as initramfs... > [ =C2=A0 =C2=A00.867787] Freeing initrd memory: 5084k freed > [ =C2=A0 =C2=A00.880111] audit: initializing netlink socket (disabled) > [ =C2=A0 =C2=A00.880439] type=3D2000 audit(1331081750.879:1): initialized > [ =C2=A0 =C2=A00.912626] fuse init (API version 7.17) > [ =C2=A0 =C2=A01.258561] ehci_hcd 0000:00:12.2: init command 0010005 (par= k)=3D0 > ithresh=3D1 period=3D512 RUN > [ =C2=A0 =C2=A01.270152] ehci_hcd 0000:00:13.2: init command 0010005 (par= k)=3D0 > ithresh=3D1 period=3D512 RUN > [ =C2=A0 =C2=A01.583458] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) > initialised: dm-devel@redhat.com > [ =C2=A0 =C2=A04.258421] init-early.sh used greatest stack depth: 3696 by= tes left > [ =C2=A0 =C2=A04.503735] init.sh used greatest stack depth: 3576 bytes le= ft > root@fireball / # dmesg | grep dracut > [ =C2=A0 =C2=A03.018189] dracut: Checking reiserfs: /dev/sda3 > [ =C2=A0 =C2=A03.018531] dracut: issuing reiserfsck -a =C2=A0/dev/sda3 > [ =C2=A0 =C2=A03.033879] dracut: Reiserfs super block in block 16 on 0x80= 3 of > format 3.6 with standard journal > [ =C2=A0 =C2=A03.034463] dracut: Blocks (total/free): 4883760/2502678 by = 4096 bytes > [ =C2=A0 =C2=A03.034781] dracut: Filesystem is clean > [ =C2=A0 =C2=A03.035210] dracut: Remounting /dev/sda3 with -o ro > [ =C2=A0 =C2=A03.082413] dracut: Mounted root filesystem /dev/sda3 > [ =C2=A0 =C2=A03.158322] dracut: Switching root > root@fireball / # > > And grub looks like this: > > title=3DInitramfs-new_kernel > root (hd0,0) > kernel /boot/bzImage-3.2.2-1 root=3D/dev/sda3 init=3D/sbin/init > initrd /initramfs-3.2.2-1.img > > Does anyone think dracut is not working? =C2=A0I need to make certain bef= ore > diving into the next step. > > I have a second drive that is plenty large enough. =C2=A0Thanks Kashani. = =C2=A0I > 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? =C2=A0I think it used to have a usr USE flag but that seems to have > disappeared during a upgrade. =C2=A0Is it magic? =C2=A0Does it need to mo= unt /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. =C2=A0I tried different ways and they just didn't > work. =C2=A0At least I think dracut is working which is a good start. =C2= =A0;-) > > 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. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico