Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22327 - LVM startup scripts
Summary: LVM startup scripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-05 23:33 UTC by Pieter De Wit
Modified: 2004-05-24 19:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter De Wit 2003-06-05 23:33:12 UTC
Hey Guys,

Is there some LVM startup scripts somewhere, that we can put in rc-update add ?
It is a pain starting it everytime....

Thanks,

Pieter
Comment 1 Tiago Pierezan Camargo 2003-08-18 18:49:47 UTC
From Gentoo LVM Guide <http://www.gentoo.org/doc/en/lvm.xml>
" Code listing .10

/sbin/vgscan

This will generate the /etc/lvmtab that the checkfs script uses to check if it should start LVM. Restart your machine and now all partitions should be visible and mounted."

Comment 2 Pieter De Wit 2003-08-18 21:05:45 UTC
Hey Guys,

I still have to run:

vgscan
vgchange -a y

after boot up. LVM is built into my kernel. Any ideas?

Thanks,

Pieter
Comment 3 Masumitsu Hatta 2003-12-27 08:22:58 UTC
Hi

You can use lvmcreate_initrd

# lvmcreate_initrd [kernel version]

for example
# lvmcreate_initrd 2.4.20-xfs-r4
# nano -w grub.conf

title Gentoo Linux(2.4.20-xfs-r4)
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.20-xfs-r4 root=/dev/vg00/root
initrd (hd0,0)/boot/initrd-lvm-2.4.20-xfs-r4.gz
Comment 4 Pieter De Wit 2004-01-13 19:41:11 UTC
Seems to be better now.

Thanks,

Pieter
Comment 5 Jay Pfeifer (RETIRED) gentoo-dev 2004-05-24 19:39:41 UTC
closing since Pieter shows it being better now.