Difference between revisions of "Device-mapper"

From CBLFS
Jump to navigationJump to search
m (Fixed grammar, punctuation, and spelling.)
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
----
 
----
  
{{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 22: Line 22:
  
 
  make install
 
  make install
 
Relocate libraries:
 
 
rm -v /lib/libdevmapper{,-event}.so &&
 
ln -svf ../../lib/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper.so &&
 
ln -svf ../../lib/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper-event.so &&
 
  
 
== Multilib ==
 
== Multilib ==
Line 42: Line 36:
  
 
  make install
 
  make install
 
Relocate libraries:
 
 
rm -v /lib/libdevmapper{,-event}.so &&
 
ln -svf ../../lib/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper.so &&
 
ln -svf ../../lib/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib/libdevmapper-event.so &&
 
  
 
=== N32 ===
 
=== N32 ===
Line 62: Line 50:
  
 
  make install
 
  make install
 
Relocate libraries:
 
 
rm -v /lib32/libdevmapper{,-event}.so &&
 
ln -svf ../../lib32/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib32/libdevmapper.so &&
 
ln -svf ../../lib32/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib32/libdevmapper-event.so &&
 
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 83: Line 65:
 
  make install
 
  make install
  
Relocate libraries:
+
== 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
  
rm -v /lib64/libdevmapper{,-event}.so &&
+
[[Category:Block Device]]
ln -svf ../../lib64/libdevmapper.so.{{Device-mapper-Version2}} /usr/lib64/libdevmapper.so &&
 
ln -svf ../../lib64/libdevmapper-event.so.{{Device-mapper-Version2}} /usr/lib64/libdevmapper-event.so &&
 

Latest revision as of 16: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