Questions tagged [device-mapper]

28 questions
20
votes
1 answer

Why higher await time for DM multipath device than underlying device?

We have a CentOS 6.4 based server attached to Hitachi HNAS 3080 storage and observed the kernel remount the filesystem in read-only mode: May 16 07:31:03 GNS3-SRV-CMP-001 kernel: [1259725.675814] EXT3-fs (dm-1): error: remounting filesystem…
pdp
  • 768
  • 1
  • 6
  • 16
14
votes
3 answers

Linux device-mapper maps LVM PV nested inside LV when taking snapshot

Which is really messing with my plan to back up this machine... I have a server which is a KVM hypervisor to several virtual machines. One of these is running Docker. It has its Docker volumes on /dev/vdb, which is set up as an LVM PV, on which…
Michael Hampton
  • 232,086
  • 41
  • 459
  • 902
11
votes
2 answers

kvm to vmware migration - lvm based guest + multipathing

What is recommended way of migrate from kvm to vmware in case of lvm based guest with multipathing? I found that similar questions were already asked few years ago: How to migrate KVM based VMs running in LVM setup to Vmdk images converting KVM…
joe33
  • 111
  • 1
  • 4
11
votes
4 answers

is /dev/dm-1 a partition or a whole block device?

Is there a way to figure out if /dev/dm-1 is a block device partition or a whole block device? If /dev/dm-1 is a partition, is there a way to find out the path to the corresponding whole block device?
Loic Dachary
  • 841
  • 1
  • 7
  • 11
8
votes
1 answer

how to correctly 'extend' a linux device mapper partition?

I am missing some concept with linux disk management, I have free space on a single physical volume that I want to to extend an ext4 file-system with, which is a logical volume. I look at fdisk -l - it is a GPT (warnings) Disk /dev/sda: 299.4 GB,…
Sum1sAdmin
  • 1,844
  • 1
  • 10
  • 19
4
votes
0 answers

cryptsetup cannot close mapped device

When I run: LANG=C cryptsetup --debug luksClose /dev/mapper/Pool-A it fails as follows: device-mapper: remove ioctl on Pool-A failed: Device or resource busy Device /dev/mapper/Pool-A is still in use. Command failed with code 16: Device or…
sebelk
  • 610
  • 2
  • 13
  • 29
4
votes
0 answers

How to disable write barrier on docker thinpooldev?

My server has very low disk performance if write barrier is enabled. As it has a disk controller with battery for the cache it is safe to add the "nobarrier" option to /etc/fstab. This makes a huge difference in performance. I want to the same for…
Peter Senna
  • 829
  • 8
  • 10
3
votes
2 answers

multipath, device mapper, and disk i/o scheduler

We have two machines with a multi path SAS controller, each with 12 physical disks attached. We were looking into some I/O speed oddness, and noticed that on one machine, where /dev/mpath/mpath*p1 maps to dm-13 through dm-24 in various ways, dm-13…
Michael Graff
  • 6,578
  • 1
  • 23
  • 36
2
votes
2 answers

Why is dmsetup failing when I try to create a snapshot?

I would like to create a COW device for an existing block device using dmsetup. The block device is: # blockdev --getsz /dev/loop0 3534848 I am trying to use a 256M ramdisk as the backing store: # blockdev --getsz /dev/zram1 524288 I am using the…
larsks
  • 40,130
  • 11
  • 114
  • 167
2
votes
1 answer

How to rebuild a dmraid RAID10 array?

Q: How do I force a rebuild? The following describes the scenario. I've been experimenting with forcing a RAID10 to rebuild, so I could see what dmsetup status output should look like when a RAID is rebuilding, and also so I could get some…
Sandra E
  • 21
  • 5
1
vote
1 answer

How to modify the "dm-*" value?

As I command multipath -ll, the output show like this. ocr3 (149455400000000000000000001000000ca0200000d000000) dm-9 IET,VIRTUAL-DISK [size=980M][features=0][hwhandler=0] \_ round-robin 0 [prio=0][active] \_ 1:0:0:11 sdo 8:224 [active][ready] \_…
finkfink
  • 21
  • 2
1
vote
1 answer

Cannot create PV on /dev/dm-NN (/dev/dm-N works)

I'm unable to create PVs on Multipath-Volumes that are available at /dev/dm-NN where N~[0-9] but I can create them on single digit devices like /dev/dm-9: # pvcreate /dev/dm-6 Physical volume "/dev/dm-6" successfully created. # pvcreate…
Fladi
  • 830
  • 4
  • 7
1
vote
1 answer

I/O scheduling on LVM on dm-crypt

I have the following setup: Stock Debian stable (Linux kernel 3.16.7) running on Dell PowerEdge R320 Two SATA hard drives in RAID1 on a PERC H310 Mini controller, visible as /dev/sda dm-crypt target dm-0 backed by /dev/sda2 A single LVM volume…
dragonroot
  • 193
  • 5
1
vote
1 answer

using same LVM volume for devicemapper and a bind mounted volume

I'm running an Amazon EC2 machine with a 512GB EBS mount. My plan is to split the EBS into two parts - one to be used by Docker 1.11 for its images (via devicemapper) and another to be bind-mounted to the docker VM (for storing some big pieces of…
Sandeep
  • 117
  • 4
1
vote
0 answers

Is it possible to extend the data device of an Thin Provision pool setted by device mapper?

TL;DR : How can I extend the Thin-Pool if I'm not using LVM but Device Mapper itself directly? Detailed version: As far as I know, when we create a thin-pool by dmsetup, we can set a low_water_mark; once the watermark is reached, a dmevent will be…
Ruinland
  • 11
  • 3
1
2