HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: lvmcreate_initrd file too large
Operating System - Linux
1830233
Members
2281
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 08:17 PM
11-13-2002 08:17 PM
lvmcreate_initrd file too large
Dear all,
I am converting a redhat 7.3 server to LVM. I successfully run the command lvmcreate_initrd.
I edit /etc/lilo.conf as per the lvm howto:
image = /boot/KERNEL_IMAGE_NAME
label = lvm
root = /dev/vg00/lv_root
initrd = /boot/INITRD_IMAGE_NAME
ramdisk = 8192
But when I run lilo, I get the error message:
boot =/dev/hda, map = /boot/map.0301
Fatal: Kernel /boot/initrd-lvm-2.4.18-3.gz is too big
From the lvmcreate_initrd man page it says the modifications should be in the form of:
image = /boot/vmlinuz
initrd = /boot/initrd-lvm-KernelVersion.gz
root = /dev/YourVG/YourRootLV
label = rootonlv
append = 'ramdisk_size=8192'
When run with this config an error is returned:
sysntax error on line 15 - the append line.
Anyone done this successfully?
Cheers,
Damo
I am converting a redhat 7.3 server to LVM. I successfully run the command lvmcreate_initrd.
I edit /etc/lilo.conf as per the lvm howto:
image = /boot/KERNEL_IMAGE_NAME
label = lvm
root = /dev/vg00/lv_root
initrd = /boot/INITRD_IMAGE_NAME
ramdisk = 8192
But when I run lilo, I get the error message:
boot =/dev/hda, map = /boot/map.0301
Fatal: Kernel /boot/initrd-lvm-2.4.18-3.gz is too big
From the lvmcreate_initrd man page it says the modifications should be in the form of:
image = /boot/vmlinuz
initrd = /boot/initrd-lvm-KernelVersion.gz
root = /dev/YourVG/YourRootLV
label = rootonlv
append = 'ramdisk_size=8192'
When run with this config an error is returned:
sysntax error on line 15 - the append line.
Anyone done this successfully?
Cheers,
Damo
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 08:49 PM
11-13-2002 08:49 PM
Re: lvmcreate_initrd file too large
Hi,
The correct syntax of ramdisk_size is this
append = "ramdisk_size=8192"
( note the double quotation is used )
regards,
U.SivaKumar
The correct syntax of ramdisk_size is this
append = "ramdisk_size=8192"
( note the double quotation is used )
regards,
U.SivaKumar
Innovations are made when conventions are broken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 09:37 PM
11-13-2002 09:37 PM
Re: lvmcreate_initrd file too large
Hi,
The error means that your ramdisk size is too
big.
So try to reduce the size in /etc/lilo.conf to this line
append = "ramdisk_size=4096"
( OR )
ramdisk = 4096
regards,
U.SivaKumar
The error means that your ramdisk size is too
big.
So try to reduce the size in /etc/lilo.conf to this line
append = "ramdisk_size=4096"
( OR )
ramdisk = 4096
regards,
U.SivaKumar
Innovations are made when conventions are broken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 09:57 AM
11-14-2002 09:57 AM
Re: lvmcreate_initrd file too large
If you're compiling your own kernels, you can set the size of the rd devices in the kernel config. The default for linus kernels is 4096. I believe that RedHat uses twice that. The quick way to set it higher is to edit your kernel .config file and change CONFIG_BLK_DEV_RAM_SIZE.
Also, the newer mkinitrd from RH 8 (grab kernel-tools rpm) automagically adds LVM stuff if necessary. Personally, I keep my root disk on a real partition and compile LVM directly into the kernel instead of a module. This removes the need for any initrd. Also, if your root is on a real partition, you can edit /etc/rc.sysinit and add a "modprobe lvm-mod" toward the top to make it load LVM before doing the vgscan. Also, in this case, you will not need LVM in your initrd.
Also, the newer mkinitrd from RH 8 (grab kernel-tools rpm) automagically adds LVM stuff if necessary. Personally, I keep my root disk on a real partition and compile LVM directly into the kernel instead of a module. This removes the need for any initrd. Also, if your root is on a real partition, you can edit /etc/rc.sysinit and add a "modprobe lvm-mod" toward the top to make it load LVM before doing the vgscan. Also, in this case, you will not need LVM in your initrd.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP