Device Mapper Source
en

Device Mapper Source

Device Mapper sources are splat into two parts - kernel driver (dm) and user-land library (libdevmapper).

dm driver

This driver is developed from the scratch. The repository can be found at:

    hg clone ssh://anon@hg.opensolaris.org/hg/devmapper/dm-gate

In order to compile the driver follow this instructions:

    cd dm-gate/usr/src
    make
    cd uts/common/io
    make install  install~_devlink install~_drv

libdevmapper library

This library is based on Linux device-mapper. We currently use device-mapper-1.02.25 ( Effort to move to the current version 1.02.27 is still
in progress) with patches to make it work on Solaris. The repository is a Mercurial MQ patch repository.

    hg clone ssh://anon@hg.opensolaris.org/hg/devmapper/libdevmapper-patches

In order to build the libdevmapper library follow this instructions:

wget ftp://sources.redhat.com/pub/dm/old/device-mapper.1.02.25.tgz gtar zxf device-mapper.1.02.25.tgz cd device-mapper.1.02.25 hg init hg addremove hg ci -m "Seed with upstream" hg qinit -c echo "[paths]" > .hg/patches/.hg/hgrc echo "default = ssh://anon@hg.opensolaris.org/hg/devmapper/libdevmapper-patches" >> .hg/patches/.hg/hgrc cd .hg/patches/ hg pull -u cd ../../ hg qpush chmod +x build-dm ./build-dm

Edit /etc/devlink.tab and change the devmapper line to be like this:
type=ddi_pseudo;name=dm \M0 mapper/control

build-dm script will configure the library, build it and create a Solaris package ready to be installed under /tmp called device-mapper

now you can start using dev-mapper using dmsetup(1).
    

Tags:
Created by admin on 2009/10/26 12:13
Last modified by admin on 2009/10/26 12:13

Collectives

Project devmapper Pages


XWiki Enterprise 2.7.1.34853 - Documentation