Block layer component of the Linux kernel to create and manage virtual block devices atop of physical block devices. QUESTIONS MUST BE PROGRAMMING RELATED.
Questions tagged [device-mapper]
72 questions
2
votes
1 answer
According to the union file system, does image actually container another image?
In Docker, an image is a stack of Read-only image layers. We also know that images share layers or other images. My question is about how this sharing mechanism work.
Does an image have pointers to the Docker storage driver or do they actually…

ethan852
- 337
- 6
- 13
2
votes
2 answers
how `docker cp` command works
The command docker cp is used to copy files from host machine to container and vice versa. This command works even if container is in stop state or exited. Docker uses layered approach for storing images and when we run container by using this…

Yogesh Jilhawar
- 5,605
- 8
- 44
- 59
2
votes
0 answers
Data Space Used not matching docker images output
The output for docker info shows that I'm using 515.1 GB of 622.8 GB
$ docker info
.
.
Server Version: 1.13.0
Storage Driver: devicemapper
Pool Name: vg-thinpool
Pool Blocksize: 524.3 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data…

brogand93
- 21
- 1
2
votes
1 answer
Docker in Ubuntu switching filesystem to overlay is not supported?
I'm running docker in a vagrant virtual box with Ubuntu on a Mac logged in as root user and I'm trying to switch from devicemapper to overlay but I'm getting an error saying:
root@vagrant-ubuntu-trusty-64:/# service docker stop
docker…

Kyle Truong
- 2,545
- 8
- 34
- 50
2
votes
1 answer
docker aufs to devicemapper docker container and images migration
I'm on Ubuntu, changing default docker storage driver from aufs to devicemapper. I've some docker images and containers on aufs. i took backup of aufs storage files from /var/lib/docker .
how can i import aufs images and containers to devicemapper…

Ningappa
- 1,279
- 4
- 16
- 26
2
votes
0 answers
Get dm-verity status (Corrupted or Verified) on Android using veritysetup
I'm trying to get dm-verity status from adb shell using veritysetup, but all the devices I'm passing result in:
# cryptsetup 1.3.1 processing "./veritysetup --debug --verbose status /dev/device-mapper"
# Running command status.
# Initialising…

madhat1
- 676
- 9
- 15
2
votes
1 answer
Docker aufs and devicemapper directories both exist
I am trying to clean up some space on my server and found that both /var/lib/docker/aufs and /var/lib/docker/devicemapper exist.
Usage of /: 86.8% of 78.62GB Users logged in: 0
ncdu 1.10 ~ Use the arrow keys to navigate, press ? for…

saul.shanabrook
- 3,068
- 3
- 31
- 49
2
votes
1 answer
Where is the implementation of dm_task_create in cryptsetup?
Where is the implementation of the function dm_task_create in cryptsetup (and other dm_task_ related functions)? Grepping for this function in the source for cryptsetup I come up with nothing. I see it is used in lib/libdevmapper.c and that it has a…

AttributedTensorField
- 803
- 1
- 8
- 15
2
votes
1 answer
Can I port a Linux DMA driver to Windows?
I want to run it on Windows without a significant change.
I hope, I can change only headers and corresponding functions.
http://www.alterawiki.com/wiki/File:G2x4_avmm_dma_Linux.tar.gz
user1065942
1
vote
2 answers
Compiling/linking applications using libdevmapper
I'm actually doing a make and make install in the LVM source code directory so I can compile and link my application using -ldevmapper.
I'm wondering if this is the only way (correct way) to build/link applications using libdevmapper ?

ydev
- 25
- 4
1
vote
1 answer
Where can I find documentation on the raw dm_mirror interface?
I'd like to use dm_mirror directly, rather than through LVM or MD, but I've had trouble finding clear documentation on the table format it expects. Is such a document available somewhere?
Note that I want to use this to mirror one partition to…

bdonlan
- 224,562
- 31
- 268
- 324
1
vote
1 answer
Is it possible to command 'dmsetup' in Android devices?
I would like to create new device mapper devices in Android.
As I know Android uses 'dm-crypt' which is part of the 'device mapper'. But, I can't use command dmsetup by adb shell in the android deivce. Is it possible to command dmsetup in Android…

SH.KANG
- 11
- 2
1
vote
2 answers
create a non-trivial device mapper target
I am trying to write a remapping target for usage with DM.
I followed instructions from several places (including this Answer) all essentially giving the same code.
This is ok, but not enough for me.
I need to modify "in transit" data of struct bio…

ZioByte
- 2,690
- 1
- 32
- 68
1
vote
0 answers
Docker devicemapper (direct-lvm) metadata gets huge amount of folders
Hi i have 3 node Swarm docker setup (1 manager, 2 nodes) on Centos 7. I'm using devicemapper data storage for all three VM's. The problem is that after some time folder:
/var/lib/docker/devicemapper/metadata and ../mnt
have so many files / folders…

masahuku
- 184
- 6
1
vote
1 answer
Double layer of device mapper - customising dm-crypt
Is it possible to create a device mapper over another device mapper?
I need to apply some checks in addition to encrypting the data on disk. So, I thought of creating a mapper (for additional checks) over the mapper created by dm-crypt and use new…

user2255299
- 185
- 7