Difference between revisions of "Device-mapper"

From CBLFS
Jump to navigationJump to search
(New page: {| style="text-align: left; background-color: AliceBlue;" |- !Download Source: | ftp://sources.redhat.com/pub/dm/device-mapper.1.02.19.tgz |} ---- {{Blank-Package-Introduction}} == Depe...)
 
m (Fixed grammar, punctuation, and spelling.)
 
(10 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| ftp://sources.redhat.com/pub/dm/device-mapper.1.02.19.tgz
+
| ftp://sources.redhat.com/pub/dm/device-mapper.{{Device-mapper-Version}}.tgz
 
|}
 
|}
  
 
----
 
----
  
{{Blank-Package-Introduction}}
+
{{Package-Introduction|The Device-mapper is a new component of the linux kernel that supports logical volume management.|http://sources.redhat.com/dm/}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 15: Line 15:
 
Compile the package:
 
Compile the package:
  
  ./configure --enable-pkgconfig &&
+
  ./configure --mandir=/usr/share/man --enable-dmeventd \
 +
    --enable-pkgconfig --disable-selinux &&
 
  make
 
  make
  
Install the package
+
Install the package:
  
 
  make install
 
  make install
Line 28: Line 29:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" ./configure --enable-pkgconfig &&
+
  CC="gcc ${BUILD32}" ./configure --mandir=/usr/share/man \
 +
    --enable-dmeventd --enable-pkgconfig --disable-selinux &&
 
  make
 
  make
  
Install the package
+
Install the package:
  
 
  make install
 
  make install
Line 40: Line 42:
  
 
  sed -i "/usrlibdir/s:/lib:&32:" configure &&  
 
  sed -i "/usrlibdir/s:/lib:&32:" configure &&  
  CC="gcc ${BUILDN32}" ./configure --libdir=/lib32 \
+
  CC="gcc ${BUILDN32}" ./configure --mandir=/usr/share/man \
     --enable-pkgconfig &&
+
    --enable-dmeventd --libdir=/lib32 \
 +
     --enable-pkgconfig --disable-selinux &&
 
  make
 
  make
  
Install the package
+
Install the package:
  
 
  make install
 
  make install
Line 54: Line 57:
 
  sed -i "/usrlibdir/s:/lib:&64:" configure &&  
 
  sed -i "/usrlibdir/s:/lib:&64:" configure &&  
 
  CC="gcc ${BUILD64}" ./configure --libdir=/lib64 \
 
  CC="gcc ${BUILD64}" ./configure --libdir=/lib64 \
     --enable-pkgconfig &&
+
    --mandir=/usr/share/man --enable-dmeventd \
 +
     --enable-pkgconfig --disable-selinux &&
 
  make
 
  make
  
Install the package
+
Install the package:
  
 
  make install
 
  make install
 +
 +
== Configuration ==
 +
 +
=== Bootscript ===
 +
 +
The following bootscript is only needed in very specific situations, namely, 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.
 +
 +
make install-devmapper
 +
 +
[[Category:Block Device]]

Latest revision as of 17:34, 17 March 2009

Download Source: ftp://sources.redhat.com/pub/dm/device-mapper.1.02.28.tgz

Introduction to Device-mapper

The Device-mapper is a new component of the linux kernel that supports logical volume management.

Project Homepage: http://sources.redhat.com/dm/

Dependencies

Non-Multilib

Compile the package:

./configure --mandir=/usr/share/man --enable-dmeventd \
    --enable-pkgconfig --disable-selinux &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --mandir=/usr/share/man \
    --enable-dmeventd --enable-pkgconfig --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-dmeventd --libdir=/lib32 \
    --enable-pkgconfig --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-pkgconfig --disable-selinux &&
make

Install the package:

make install

Configuration

Bootscript

The following bootscript is only needed in very specific situations, namely, 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.

make install-devmapper