Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
IndexSoft

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 68 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

lvmcreate_initrd




SYNOPSIS

       lvcmreate_initrd [-i|--iop  IOP]  [-D|--devfs]  [-v|--ver­
       bose] [-V|--version] [KernelVersion]


DESCRIPTION

       lvmcreate_initrd  creates a new compressed initial ramdisk
       /boot/initrd-lvm-KernelVersion.gz.   The  initial  ramdisk
       contains  all  necessary  binaries, shared libraries and a
       linuxrc file to switch to  a  logical  volume  based  root
       filesystem.   To  build  an  initial  ramdisk for a kernel
       other than the one currently running add the KernelVersion
       parameter  (e.g.   lvmcreate_initrd 2.3.25) on the command
       line.

   OPTIONS
       -h, --help
              Print a usage message on standard output and  exit.

       -i, --iop IOP
              Specify the LVM kernel IOP version if you are using
              wrapper scripts in /sbin.  This is  only  necessary
              if  you  are  building an initrd for a kernel other
              than the current one, and you have tools for multi­
              ple IOP versions installed.

       -D, --devfs
              Force  the  use  of devfs when building the initrd.
              lvmcreate_initrd by default  probes  for  devfs  by
              checking  for  /dev/.devfsd,  which  is  created by
              devfsd when it is running. This option  will  force
              lvmcreate_initrd  to  do  this,  when devfsd is not
              currently running.

       -v, --verbose
              Gives verbose runtime information  about  the  cre­
              ation of the ram disk image.

       -V, --version
              Print version number and exit successfully.

       The  necessary  actions to change your system into a "root
       on logical volume" one are:

       Create a small (~20MB) partition which is  BIOS  reachable
       to  hold the /boot filesystem (if you already have a small
       partition based root filesystem this can be used instead).
       If  you  want to boot standalone from this partition in an
       emergency, copy all the necessary binaries  and  libraries
       to  that  filesystem  as  well  and create a corresponding
       /etc/lilo.conf  entry.  In  order  to  be  able  to   edit
       lilo.conf   when   booted   standalone,  you  should  move
       root = /dev/YourVG/YourRootLV
       label = rootonlv
       append = 'ramdisk_size=8192'

       Replace  YourVG and YourRootLV by your actual volume group
       and root logical volume names.  You also  need  to  change
       the  ramdisk size to be at least as large as that reported
       while lvmcreate_initrd is run.  If you have enough memory,
       it  is  OK if the ramdisk size in /etc/lilo.conf is larger
       than what lvmcreate_initrd reports (the  memory  is  freed
       after booting).  Also, your /etc/fstab in the root logical
       volume should contain entries for the  root  LV,  and  the
       boot  partition, along with any other LVs you have config­
       ured:

       /dev/YourVG/YourRootLV      /     ext2   defaults   0   1
       /dev/YourBootPartition      /boot ext2   defaults   0   2
       /dev/YourVG/YourUsrLV       /usr  ext2   defaults   0   3
       /dev/YourVG/YourOptLV       /opt  ext2   defaults   0   4
       etc.

       You can use other supported filesystem types as well (e.g.
       reiserfs)  if  you  have support for those in your kernel.
       Run lilo, reboot and try...

       The partitions  containing  the  former  /usr,  /opt  etc.
       filesystems  can  now  be  used  as physical volumes.  Use
       pvcreate(8) to turn them into PVs and then use vgextend(8)
       to add them to e.g.  YourVG.


DIAGNOSTICS

       lvcmcreate_initrd returns 0 for success.  1 is returned in
       all other cases.


SEE ALSO

       lilo(8),  lilo.conf(5),  fstab(5),  lvm(8),   pvcreate(8),
       vgextend(8), lvcreate(8), vgcreate(8)


AUTHOR

       Heinz Mauelshagen <Linux-LVM@Sistina.com>

Heinz Mauelshagen           LVM TOOLS         LVMCREATE_INITRD(8)
  
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds