| Solaris |
|
|
Device Mapper sources are splat into two parts - kernel driver (dm) and user-land library (libdevmapper).
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
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).
Terms of Use
|
Privacy
|
Trademarks
|
Copyright Policy
|
Site Guidelines
|
Site Map
|
Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2012, Oracle Corporation and/or its affiliates.