Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM2 + Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Rukiri
n00b
n00b


Joined: 28 Oct 2011
Posts: 59

PostPosted: Mon Aug 20, 2012 1:12 am    Post subject: LVM2 + Gentoo Reply with quote

I'm getting a bit angry right now, so better come to the forums as I've read just abouth everything about LVM from the handbook, forums, and google searches. Nothing seems to work..

I've done several LVM installs with arch, debian, slackware, and ubuntu, gentoo either hates me or hates lvm..

I have 2 drive.
SDA(my boot drive.) is 120GB SSD
SDB is 1TB HDD

Now I'm using Gdisk like so.

gdisk /dev/sda

n
1
(Enter key)
+100M
8e00

n
2
(Enter Key)
+512M
8200

n
3
(Enter Key)
(Enter Key)
8e00
w
y

gdisk /dev/sdb
n
1
(Enter Key)
(Enter Key)
8e00
w
y

So sda holds, boot, swap, and lvm, and sdb holds, lvm.

pvcreate /dev/sda3
pvcreate /dev/sdb1

vgcreate gentoo /dev/sda3
vgextend gentoo /dev/sdb1

lvcreate -L 830G -n root gentoo
lvcreate -L 200G -n home gentoo

so now we have logical volumes root and home, which can be located at, /dev/mapper/gentoo-volumename

mkfs.ext2 /dev/sda1
mkswap /dev/sda2
mkfs.ext4 /dev/mapper/gentoo-root
mkfs.ext4 /dev/mapper/gentoo-home

mkdir /mnt/gentoo
mount /dev/mapper/gentoo-root /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot
mkdir /mnt/gentoo/home
mount /dev/mapper/gentoo-home /mnt/gentoo/home

(Continue with regular installation, and chroot into your system)

emerge genkernel gentoo-sources

genkernel --lvm2 --install initramfs menuconfig all (may not have written this write, but just copy from the handbook)

nano /etc/fstab

/dev/sda1 /boot defaults 0 1
/dev/sda2 swap sw 0 0
/dev/mapper/gentoo-root / ext4 0 1
/dev/mapper/gentoo-home /home ext4 0 1

emerge lvm2
rc-update start lvm
rc-update add lvm boot

emerge grub

nano /boot/grub/grub.cfg
(just follow the lvm2 guide from the handbook)

emerge syslog-ng
rc-update add syslog-ng boot

emerge vixie-cron
rc-update add vixie-cron boot

emerge dhcpcd
rc-update add dhcpcd boot

exit
unmount /mnt/gentoo, /boot, /home, /proc, /dev and so on


reboot, everything is fine, and it boots.

Runs fine until you get to the lvm part.

/bn/lvm Permission Denied

Now, I've been using the same fstab as arch and that works fine.

as /bin/lvm gets permission denied, gentoo tries to read the root device /mapper/gentoo-root but can't because lvm wasn't activated and I started lvm and added it to boot while I was chroot'd into my system.

Google LVM + Gentoo and it's nothing but issues, with 0 resolve's.

but if I got past /bin/lvm issue I think I could boot into my system.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5004
Location: Dark side of the mood

PostPosted: Mon Aug 20, 2012 9:06 am    Post subject: Reply with quote

Since you're using LVM for the root filesystem did you compile LVM2 with the static USE flag enabled?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Rukiri
n00b
n00b


Joined: 28 Oct 2011
Posts: 59

PostPosted: Mon Aug 20, 2012 4:15 pm    Post subject: Reply with quote

No, the handbook said nothing about static.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5004
Location: Dark side of the mood

PostPosted: Mon Aug 20, 2012 6:47 pm    Post subject: Reply with quote

I have both static and static-libs enabled on my machines, where root resides on LVM. That must be the issue you're facing. I think those flags are mentioned after you compiled lvm2 or genkernel, I don't remember exactly where but I know I once read that. All in all, most libraries are not available for lvm to start from an initrd hence it must be compiled with the libraries linked statically.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Rukiri
n00b
n00b


Joined: 28 Oct 2011
Posts: 59

PostPosted: Mon Aug 20, 2012 9:15 pm    Post subject: Reply with quote

Thanks, do you recommend I add static, and static-libs after I start LVM and add LVM to boot? Or should I just emerge them with the static use flags?

Also, should I just use grub-static since most documentation and how-to's are using grub pre version 2?

Also what do you recommend for partitions?

Basically here's what I plan to do.

SDA1 = boot 100M
SDA2 = swap 1G
SDA3 = lvm (what's left on the disk)

SDB1 = lvm (entire disk)

than I'd create the physical volumes, and virtual groups and I would extend the lvm to sdb1.

than I'd go from there with logical volumes?

If there's a current how to from 2012 or even 2010-2012 that'd be nice as I've been at this for days.. Gentoo is easy to install just having issues with lvm working.
Back to top
View user's profile Send private message
Rukiri
n00b
n00b


Joined: 28 Oct 2011
Posts: 59

PostPosted: Tue Aug 21, 2012 6:16 am    Post subject: Reply with quote

Don't know if this helps, but here's my fstab.

Code:
 
GNU nano 2.3.1              File: /etc/fstab                        Modified 

# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# See the manpage fstab(5) for more information.
#
# <fs>                  <mountpoint>    <type>  <opts>              <dump/pass>
/dev/sda1               /boot         ext2      noauto,noatime                 $
/dev/mapper/vg-swap     none          swap      sw                             $
/dev/mapper/vg-root     /             ext4      noatime,nodiratime,defaults    $
/dev/mapper/vg-portage  /usr/portage  reiserfs  noatime,nodiratime             $
/dev/mapper/vg-home     /home         xfs       noatime,nodiratime,osyncisdsync$
#/dev/cdrom             /mnt/cdrom      auto    noauto,ro           0 0
none


I know this is for funtoo, but other than boot-update grub2 would this work?
http://www.funtoo.org/wiki/Rootfs_over_encrypted_lvm
I'm kinda just PO'd after a week.

Note, I'm doing a brand new install.

Here was my genkernel command.
genkernel --no-mrproper --makeopts=-j9 --install --lvm --luks all
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5004
Location: Dark side of the mood

PostPosted: Tue Aug 21, 2012 7:09 am    Post subject: Reply with quote

Rukiri wrote:
Thanks, do you recommend I add static, and static-libs after I start LVM and add LVM to boot? Or should I just emerge them with the static use flags?

Just compile lvm2 with those USE flags enabled, that's the easiest way.

I don't know about Grub2 however for I'm only using syslinux/extlinux bootloader. If you want to encrypt a filesystem, I'd start with /home. If *all* your data are critical then encrypt /var (and maybe /etc as well). Encryption induces a performance hit on writing while reading isn't too much of a deal. However I'd keep the binaries out of the way if it were me. But you're free to decide upon your own case, of course ;) . I never tried volume encryption though so I can only offer a limited help.

As far as your filesystems are concerned I'd go ext4 all the way except /boot, which I usually format with ext3. Ext4 has the best performance so far. IIRC Reiserfs has the worst performance.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Rukiri
n00b
n00b


Joined: 28 Oct 2011
Posts: 59

PostPosted: Tue Aug 21, 2012 8:20 am    Post subject: Reply with quote

Thought the same, and went back to ext4.

Course now I can't use my keyboard/mouse at startup, here's my lspci, and lsusb output.

lspci.
Code:

00:00.0 Host bridge: Intel Corporation Xeon E5/Core i7 DMI2 (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 1a (rev 07)
00:02.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 2a (rev 07)
00:03.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 3a in PCI Express Mode (rev 07)
00:05.0 System peripheral: Intel Corporation Xeon E5/Core i7 Address Map, VTd_Misc, System Management (rev 07)
00:05.2 System peripheral: Intel Corporation Xeon E5/Core i7 Control Status and Global Errors (rev 07)
00:05.4 PIC: Intel Corporation Xeon E5/Core i7 I/O APIC (rev 07)
00:11.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Virtual Root Port (rev 05)
00:16.0 Communication controller: Intel Corporation C600/X79 series chipset MEI Controller #1 (rev 05)
00:1a.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation C600/X79 series chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 5 (rev b5)
00:1c.6 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 7 (rev b5)
00:1c.7 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 8 (rev b5)
00:1d.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation C600/X79 series chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation C600/X79 series chipset 6-Port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation C600/X79 series chipset SMBus Host Controller (rev 05)
02:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 680] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57781 Gigabit Ethernet PCIe (rev 10)
06:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11)
07:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11)
08:00.0 PCI bridge: PLX Technology, Inc. Device 8605 (rev aa)
09:01.0 PCI bridge: PLX Technology, Inc. Device 8605 (rev aa)
09:02.0 PCI bridge: PLX Technology, Inc. Device 8605 (rev aa)
09:03.0 PCI bridge: PLX Technology, Inc. Device 8605 (rev aa)
0a:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01)
0b:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57781 Gigabit Ethernet PCIe (rev 10)
0c:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11)
0d:00.0 SATA controller: Marvell Technology Group Ltd. Device 9220 (rev 10)
0e:00.0 USB controller: Texas Instruments Device 8241 (rev 02)
0f:00.0 USB controller: Texas Instruments Device 8241 (rev 02)
ff:08.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 0 (rev 07)
ff:08.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
ff:08.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
ff:09.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 1 (rev 07)
ff:09.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
ff:09.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
ff:0a.0 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 0 (rev 07)
ff:0a.1 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 1 (rev 07)
ff:0a.2 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 2 (rev 07)
ff:0a.3 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 3 (rev 07)
ff:0b.0 System peripheral: Intel Corporation Xeon E5/Core i7 Interrupt Control Registers (rev 07)
ff:0b.3 System peripheral: Intel Corporation Xeon E5/Core i7 Semaphore and Scratchpad Configuration Registers (rev 07)
ff:0c.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 0 (rev 07)
ff:0c.7 System peripheral: Intel Corporation Xeon E5/Core i7 System Address Decoder (rev 07)
ff:0d.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 1 (rev 07)
ff:0e.0 System peripheral: Intel Corporation Xeon E5/Core i7 Processor Home Agent (rev 07)
ff:0e.1 Performance counters: Intel Corporation Xeon E5/Core i7 Processor Home Agent Performance Monitoring (rev 07)
ff:0f.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Registers (rev 07)
ff:0f.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller RAS Registers (rev 07)
ff:0f.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 0 (rev 07)
ff:0f.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 1 (rev 07)
ff:0f.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 2 (rev 07)
ff:0f.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 3 (rev 07)
ff:0f.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 4 (rev 07)
ff:10.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 0 (rev 07)
ff:10.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 1 (rev 07)
ff:10.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 0 (rev 07)
ff:10.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 1 (rev 07)
ff:10.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 2 (rev 07)
ff:10.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 3 (rev 07)
ff:10.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 2 (rev 07)
ff:10.7 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 3 (rev 07)
ff:11.0 System peripheral: Intel Corporation Xeon E5/Core i7 DDRIO (rev 07)
ff:13.0 System peripheral: Intel Corporation Xeon E5/Core i7 R2PCIe (rev 07)
ff:13.1 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to PCI Express Performance Monitor (rev 07)
ff:13.4 Performance counters: Intel Corporation Xeon E5/Core i7 QuickPath Interconnect Agent Ring Registers (rev 07)
ff:13.5 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 0 Performance Monitor (rev 07)
ff:13.6 System peripheral: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 1 Performance Monitor (rev 07)

lsusb
Code:


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 005 Device 002: ID 05ac:129c Apple, Inc.
Bus 002 Device 003: ID 1b1c:1b02 Corsair
Bus 002 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5004
Location: Dark side of the mood

PostPosted: Tue Aug 21, 2012 1:31 pm    Post subject: Reply with quote

Damn'it! That's for sure the longest lspci listing I ever saw :D !

If you need a kernel config for starting you can check Pappy McFee kernel seeds. You'll need to paste the results of lspci -n and enable the required modules advertised in the list. This will give you a basic yet functional kernel. Just make sure to check the required LVM stuff, of course.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Rukiri
n00b
n00b


Joined: 28 Oct 2011
Posts: 59

PostPosted: Tue Aug 21, 2012 5:12 pm    Post subject: Reply with quote

Out of curiosity does not having input devices in make.conf make it so that input devices are disabled or not compiled?

Would I need "INPUT_DEVICES="evdev synaptics"" in make.conf?

I also tried the what was said above, same thing.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Tue Aug 21, 2012 6:56 pm    Post subject: Reply with quote

Rukiri,

Its your initrd thats in a mess.

Be aware that genkernel does not use your system binaries in the initrd, which is proabaly just as well as you built lvm2 after your kernel and initrd.
The initrd has to do
Code:
vgchange -ay

and
Code:
 mount /dev/mapper/..-root /newroot
before it can piviotroot toand hand off to the real init script.

Your emerged lvm will only be used for lvm thigs you want to do after boot. In fact, the system should boot without lvm being emerged.

You can roll your own initrd if you want base it on this post which has root on lvm on raid, so you can leave the extra things out.

Hmm ... that won't work with separate /usr or /var and testing udev as both /var and /usr must be mounted before udev starts.
If you have udev-171, that does not apply to you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
zappatized
n00b
n00b


Joined: 18 Aug 2012
Posts: 21

PostPosted: Wed Aug 22, 2012 2:32 am    Post subject: Reply with quote

You mention using gpt but your partition layout doesn't show a gpt/bios partition (EF02) or efi partition (EF00).
You can also try using slashbeast's better-initramfs (I've never had an issue with it).
Anything you declare in INPUT_DEVICES will get compiled into your drivers, anything not declared will not get compiled. It's just a way of separating out some USE flags.
When configuring the kernel anything that you want available at boot needs to be compiled into the kernel (at least if you intend to go with volume encryption).
You can amalgamate your pvs in one step:
Code:
# vgcreate gentoo /dev/sda3 /dev/sdb1

If you want to stripe your data between the two disks instead of just stacking them back to back you could try something like:
Code:
# lvcreate -vL 200G -i 2 -n home gentoo
Back to top
View user's profile Send private message
phunehehe
n00b
n00b


Joined: 26 Sep 2010
Posts: 21
Location: Vietnam

PostPosted: Fri Aug 24, 2012 2:24 pm    Post subject: Working system broken by an update Reply with quote

I'm having the same problem as the OP, except that I have had working root inside LVM for a while. A few weeks ago I updated the world and recompile the kernel and could not boot anymore. Strangely, the old kernel wouldn't boot either. I tried recompiling various things but none would let me boot into Gentoo anymore. I ran out of time and have been on Ubuntu since. Please help me get back to Gentoo :)
_________________
https://phunehehe.net/
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5004
Location: Dark side of the mood

PostPosted: Fri Aug 24, 2012 3:41 pm    Post subject: Re: Working system broken by an update Reply with quote

phunehehe wrote:
I'm having the same problem as the OP, except that I have had working root inside LVM for a while. A few weeks ago I updated the world and recompile the kernel and could not boot anymore. Strangely, the old kernel wouldn't boot either. I tried recompiling various things but none would let me boot into Gentoo anymore. I ran out of time and have been on Ubuntu since. Please help me get back to Gentoo :)

Which version of udev do/did you have?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
phunehehe
n00b
n00b


Joined: 26 Sep 2010
Posts: 21
Location: Vietnam

PostPosted: Fri Aug 24, 2012 4:15 pm    Post subject: Re: Working system broken by an update Reply with quote

VinzC wrote:
Which version of udev do/did you have?


I'm having sys-fs/udev-171-r6. /var/log/portage/elog/summary.log doesn't record any previous version either. I have just tried better-initramfs and it seems to work. Something must be wrong when genkernel generates the initramfs then. Do you have any idea?
_________________
https://phunehehe.net/
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5004
Location: Dark side of the mood

PostPosted: Fri Aug 24, 2012 5:32 pm    Post subject: Re: Working system broken by an update Reply with quote

phunehehe wrote:
Do you have any idea?

I was thinking of udev 181+, which I remember reading would cause booting to fail under certain circumstances hence my question. But you issue looks like something else.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
phunehehe
n00b
n00b


Joined: 26 Sep 2010
Posts: 21
Location: Vietnam

PostPosted: Fri Aug 24, 2012 5:42 pm    Post subject: Reply with quote

I tried unmerging and emerging genkernel but that doesn't help either. The initramfs seems to try to activate LVM but failed with /bin/lvm: permission denied (screenshot http://imgur.com/m6iAO). In the rescue shell I found that /bin/lvm is a directory instead of a file, and there are things that look like dynamic objects. I think genkernel is using a dynamic library instead of a static one. Don't know how to fix it.

Anyway, I'm back on Gentoo. Updating the world now!
_________________
https://phunehehe.net/
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5004
Location: Dark side of the mood

PostPosted: Fri Aug 24, 2012 6:31 pm    Post subject: Reply with quote

phunehehe wrote:
I tried unmerging and emerging genkernel but that doesn't help either. The initramfs seems to try to activate LVM but failed with /bin/lvm: permission denied (screenshot http://imgur.com/m6iAO). In the rescue shell I found that /bin/lvm is a directory instead of a file, and there are things that look like dynamic objects. I think genkernel is using a dynamic library instead of a static one. Don't know how to fix it.

Strange 8O . What version of genkernel do you have? (Mine is 3.4.24_p2, latest stable, FYI). I really find no reason why lvm should be a directory... unless an experimental version of genkernel, of course. Besides I think lvm should be in /sbin/ but it might be a hack where sbin is actually a symlink for bin, I've already seen some setups like this.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
phunehehe
n00b
n00b


Joined: 26 Sep 2010
Posts: 21
Location: Vietnam

PostPosted: Sat Aug 25, 2012 9:47 am    Post subject: Reply with quote

VinzC wrote:
What version of genkernel do you have? (Mine is 3.4.24_p2, latest stable, FYI). I really find no reason why lvm should be a directory... unless an experimental version of genkernel, of course. Besides I think lvm should be in /sbin/ but it might be a hack where sbin is actually a symlink for bin, I've already seen some setups like this.


Aw you know what, I forgot that I'm using Funtoo. I have sys-kernel/genkernel-3.4.40 (which is not masked by anything so I think it's stable). That must be the problem!
_________________
https://phunehehe.net/
Back to top
View user's profile Send private message
zappatized
n00b
n00b


Joined: 18 Aug 2012
Posts: 21

PostPosted: Sun Aug 26, 2012 1:04 pm    Post subject: Reply with quote

I'm also using funtoo with genkernel-3.4.40. Under /sbin I have both lvm and lvm.static neither of which is a directory. What version of lvm2 are you using and with what use flags? Are you also using cryptsetup for encryption?
Edit: to fix error


Last edited by zappatized on Mon Aug 27, 2012 12:22 am; edited 1 time in total
Back to top
View user's profile Send private message
phunehehe
n00b
n00b


Joined: 26 Sep 2010
Posts: 21
Location: Vietnam

PostPosted: Sun Aug 26, 2012 2:50 pm    Post subject: Reply with quote

zappatized wrote:
I'm also using funtoo with genkernel-3.4.40. Under /sbin I have both lvm and lvm.static neither of which is a file. What version of lvm2 are you using and with what use flags? Are you also using cryptsetup for encryption?


I have sys-fs/lvm2-2.02.88, with lvm1, readline, static and static-libs. I have cryptsetup, but I don't encrypt /, just the data partitions. The version and use flags shouldn't matter though, because genkernel will use its own version of lvm2 and cryptsetup or whatever it needs. If you are having the same problem try downgrading genkernel, or switch to better-initramfs.
_________________
https://phunehehe.net/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum