Questions tagged [lvm]

lvm (logical volume manager) is a software that allows disk partitionning by hiding the physical limitations of the underlying disks. It can make logical partitions from separate physical partitions even on separate disks, hide mirroring, allow increasing the size of a logical volume while used and so on

190 questions
219
votes
12 answers

resize2fs: Bad magic number in super-block while trying to open

I am trying to resize a logical volume on CentOS7 but am running into the following error: resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/mapper/centos-root Couldn't find valid filesystem…
ChrisKnowles
  • 6,870
  • 3
  • 14
  • 11
36
votes
2 answers

How to deactivate a LVM2 physical volume to remove the drive?

How can I shut down/"unmount" a Linux lvm2 physical volume? I plugged an external had drive to my computer. On the drive is a LVM2 PV with one volume group which has some logical volumes. I now want to remove this drive again properly. I unmounted…
user2650268
  • 377
  • 1
  • 3
  • 3
20
votes
5 answers

Can't run Docker container due device mapper error

I just can't create and run new containers in Docker anymore. But in the same time a can run previously created containers. When I try to do something like this: [user@host ~ ] docker run --name=fpm-5.3 debian:jessie 2014/07/12 07:34:08 Error:…
loadaverage
  • 1,028
  • 1
  • 11
  • 16
8
votes
0 answers

docker lvm thin pool cleanup

Scenario: Configured direct-lvm mode for production for docker on my concourse ci system here. Problem: The thin-pool gets filled up after a while. df -h Filesystem Size Used Avail Use% Mounted on udev 16G 0 16G 0%…
Abraham
  • 230
  • 3
  • 15
8
votes
2 answers

XFS No space left on device

I have a server setup of an XFS partition on LVM. While copying files to the home partition, "No space left on device" is displayed. df -h displays sufficient space: /dev/mapper/prod--vg-home 35G 21G 15G 60% /home df -i also displays…
Purf
  • 83
  • 1
  • 6
8
votes
2 answers

LVM2 : Failing to pvcreate a block device

I'm trying to make use of the LVM2 functionality in linux (Centos6.0). When trying to make the first step of defining a PV on a specific block device, I get the following error message: [root@localhost /] pvcreate /dev/sdb Can't open /dev/sdb…
user1436155
  • 81
  • 1
  • 1
  • 3
7
votes
1 answer

How to tell Docker to use dm/LVM backend for volumes instead of vfs

I recently heard (from a RedHat guy) that "direct-LVM"(devicemapper) is the recommended storage-backend for production setups, so I wanted to try that out on a CentOS 7 VM. (where loopback-LVM seems to be the default). So I created a separate…
powo
  • 460
  • 1
  • 6
  • 17
7
votes
2 answers

Advice for data storage on Amazon EC2 especially for databases

I've been playing around with Amazon's Web Services for over a year now, however I don't quite understand how it works. When I for example select an AMI of my choice from the EC2 console and I continue through the wizard, I reach the "Storage…
deadlock
  • 7,048
  • 14
  • 67
  • 115
6
votes
1 answer

kpartx: read error when removing mapping

I have a backup procedure that uses kpartx to read from a partitioned lvm volume. Seldomly it happens that the device cannot be unmapped. Right now when I try to remove the mapping I get the following: # kpartx -d /dev/loop7 read error, sector…
Maxxer
  • 1,038
  • 1
  • 18
  • 37
5
votes
1 answer

PHP disk_total_space won't measure LVM partition size

I've got a PHP script which needs to check the total size of a disk. I've been using disk_total_space successfully for a while, and have just moved to a new server which uses LVM. disk_total_space now reports a completely different size. I've…
Mark B
  • 4,768
  • 2
  • 25
  • 30
4
votes
1 answer

Mount docker logical volume

I'm trying to access to a logical volume where previously was used by docker. This is the result of various command: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:2 0 80G 0…
mirobertod
  • 360
  • 2
  • 12
4
votes
2 answers

Extend GlusterFS on top of LVM

I need to add more space to one of our gluster volumes. The volumes are replica 2 and sit on top of an LVM. The file system is XFS. The current size is 4TB and I want to resize to 6TB. The LVM has enough Free PEs on both replica servers. ---…
raidlman
  • 355
  • 2
  • 14
4
votes
0 answers

Docker LVM thinpool meta data sizing

I'm using LVM thinpool for docker storage (dm.thinpooldev) and I've run out of space on the meta data pool a few times so far. It's easy to combat as I can just recreate the thinpool with large metadata, but I'm just guessing (and probably over…
BeachGuru
  • 61
  • 1
  • 6
4
votes
4 answers

Map lvm volume to Physical volume

lsblk provides output in this fornat: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 300G 0 disk sda1 8:1 0…
Nida Sahar
  • 698
  • 4
  • 13
  • 29
3
votes
2 answers

lvm mysql backup

I have been reading about mysql backup through the use of lvm I understand that you create a lvm partition and allocate a specific size to mysql, leaving enough space for the snapshots. I read that the advantage is that backups are very quick. Are…
Thomas
  • 4,641
  • 13
  • 44
  • 67
1
2 3
12 13