Difference between revisions of "LVM2"
From CBLFS
Jump to navigationJump to search (New page: {| style="text-align: left; background-color: AliceBlue;" |- !Download Source: | ftp://sources.redhat.com/pub/lvm2/LVM2.{{Device-lvm2-Version}}.tgz |} ---- {{Package-Introduction|Logical...) |
|||
Line 74: | Line 74: | ||
The following bootscript is only needed in a very specific situation, If you use an initramfs or some other early userspace to initialize device mapper. This script only runs '''dmsetup mknodes''' and reports the status of the command on start. If you need this functionality, install the bootscript with the following command: | The following bootscript is only needed in a very specific situation, If you use an initramfs or some other early userspace to initialize device mapper. This script only runs '''dmsetup mknodes''' and reports the status of the command on start. If you need this functionality, install the bootscript with the following command: | ||
− | cat > /etc/rc.d/init.d/lvm2 << EOF | + | cat > /etc/rc.d/init.d/lvm2 << EOF |
− | #!/bin/bash | + | #!/bin/bash |
− | ######################################################################## | + | ######################################################################## |
− | # Begin $rc_base/init.d/lvm2 | + | # Begin $rc_base/init.d/lvm2 |
− | # | + | # |
− | # Description : Creates lvm2 nodes that may have been created in an | + | # Description : Creates lvm2 nodes that may have been created in an |
− | # early userspace. | + | # early userspace. |
− | # | + | # |
− | # Authors : Joe Ciccone <jciccone@gmail.com> | + | # Authors : Joe Ciccone <jciccone@gmail.com> |
− | # | + | # |
− | # Version : 00.01 | + | # Version : 00.01 |
− | # | + | # |
− | # Notes : | + | # Notes : |
− | # | + | # |
− | ######################################################################## | + | ######################################################################## |
− | + | ||
− | . /etc/sysconfig/rc | + | . /etc/sysconfig/rc |
− | . ${rc_functions} | + | . ${rc_functions} |
− | + | ||
− | case "${1}" in | + | case "${1}" in |
− | + | start) | |
− | + | boot_mesg "Running vgscan mknodes..." | |
− | + | /sbin/vgscan --mknodes | |
− | + | evaluate_retval | |
− | + | ;; | |
− | + | *) | |
− | + | echo "Usage: ${0} {start}" | |
− | + | exit 1 | |
− | + | ;; | |
− | esac | + | esac |
− | + | ||
− | # End $rc_base/init.d/lvm2 | + | # End $rc_base/init.d/lvm2 |
− | EOF | + | EOF |
− | chmod 751 /etc/rc.d/init.d/lvm2 | + | chmod 751 /etc/rc.d/init.d/lvm2 |
− | ln -s ../init.d rcsysinit.d/S15lvm2 | + | ln -s ../init.d rcsysinit.d/S15lvm2 |
[[Category:Block Device]] | [[Category:Block Device]] |
Revision as of 12:25, 22 October 2008
Download Source: | ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.43.tgz |
---|
Contents
Introduction to LVM2
Logical Volume Manager v2 is the updated version of LVM which supports +256 volumes and +2TB logical size.
Project Homepage: http://sourceware.org/lvm2/
Dependencies
Non-Multilib
Compile the package:
./configure --enable-cmdlib -enable-fsadm \ --enable-dmeventd --disable-selinux && make
Install the package:
make install
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32}" ./configure --mandir=/usr/share/man \ --enable-cmdlib --enable-fsadm \ --enable-dmeventd --disable-selinux && make
Install the package:
make install
N32
Compile the package:
sed -i "/usrlibdir/s:/lib:&32:" configure && CC="gcc ${BUILDN32}" ./configure --mandir=/usr/share/man \ --enable-cmdlib --enable-fsadm \ --enable-dmeventd --libdir=/lib32 \ --disable-selinux && make
Install the package:
make install
64Bit
Compile the package:
sed -i "/usrlibdir/s:/lib:&64:" configure && CC="gcc ${BUILD64}" ./configure --libdir=/lib64 \ --mandir=/usr/share/man --enable-dmeventd \ --enable-cmdlib --enable-fsadm \ --enable-dmeventd --disable-selinux && make
Install the package:
make install
Confuration
Bootscript
The following bootscript is only needed in a very specific situation, If you use an initramfs or some other early userspace to initialize device mapper. This script only runs dmsetup mknodes and reports the status of the command on start. If you need this functionality, install the bootscript with the following command:
cat > /etc/rc.d/init.d/lvm2 << EOF #!/bin/bash ######################################################################## # Begin $rc_base/init.d/lvm2 # # Description : Creates lvm2 nodes that may have been created in an # early userspace. # # Authors : Joe Ciccone <jciccone@gmail.com> # # Version : 00.01 # # Notes : # ######################################################################## . /etc/sysconfig/rc . ${rc_functions} case "${1}" in start) boot_mesg "Running vgscan mknodes..." /sbin/vgscan --mknodes evaluate_retval ;; *) echo "Usage: ${0} {start}" exit 1 ;; esac # End $rc_base/init.d/lvm2 EOF chmod 751 /etc/rc.d/init.d/lvm2 ln -s ../init.d rcsysinit.d/S15lvm2