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
Questions tagged [lvm]
190 questions
2
votes
0 answers
Getting race condition using stderr=PIPE with Popen.communicate()
I'm developing a kubernetes flexvolume driver that creates LVM devices, and creates and mounts filesystems.
For some reason I occasionally get deadlocks that according to the documentation shouldn't happen when using Popen.communicate().
Traceback…

BenH
- 690
- 1
- 11
- 23
2
votes
0 answers
Docker LVM resize
I have done configuration of devicemapper as described here.
I created thinpool, profile, and other related stuff.
/etc/docker/daemon.json:
{
"storage-driver": "devicemapper",
"storage-opts": [
…

Grigory
- 411
- 3
- 10
2
votes
0 answers
How lvm multiple snapshots work when writing?
My question is about how the cow work when there are multiple snapshots.
Will lvm copy original block to each of the snapshot? Or just copy to one snapshot and redirect other snapshot to the new place of original block?
Why doesn't lvm copy old…

q11112345
- 67
- 5
2
votes
2 answers
2
votes
1 answer
LVM Thinpool - How to resize a thinpool LV?
I have the following setup:
An LVM volume group over 12 drives on a hardware RAID with one thinpool and one logical volume on a Red Hat Gluster Server. It looks as follows:
root@server:pts/1 - [17:33]
~ % pvs
PV VG Fmt Attr PSize PFree
…

thonixx
- 306
- 1
- 4
- 17
2
votes
2 answers
Linux LVM lvs command fails from cron perl script but works from cron directly
I am trying to run "lvs" in a perl script to parse its output.
my $output = `lvs --noheadings --separator : --units m --nosuffix 2>&1`;
my $result = $?;
if ($result != 0 || length($output) == 0) {
printf STDERR "Get list of LVs failed (exit…

Mike Cooper
- 1,065
- 3
- 13
- 34
2
votes
1 answer
Is it necessary to invalidate/drop cache to read when using O_DIRECT to write?
I've encountered a race condition with LVM and a disk driver I'm working on. It looks like things like vgcreate and lvcreate do their IO in O_DIRECT mode. I discovered this when running those commands with -vvv.
Clearing start of logical volume…

Ahhmyface
- 61
- 12
2
votes
1 answer
Recover Data from a corrupted LVM after lvreduce?
I'm using an Ubuntu 13.04 server.
I wanted to reduce a logical volume, in order to increase another one.
The logical volume I wanted to reduce had a size of 100G and 69G used.
I tried to reduce a logical volume by using:
lvreduce -L20G…

Lazao
- 225
- 6
- 16
2
votes
0 answers
How to extend or merge volumegroup in Centos?
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
50G 2.1G 45G 5% /
tmpfs 7.8G 12K 7.8G 1% /dev/shm
/dev/sda2 477M 67M 385M 15%…

himu73
- 21
- 1
2
votes
0 answers
How to determine what files live on a physical volume from CLI
TL/DR; From the command line, how can I find out what files are on a given physical volume?
Context: I just added a new, larger harddrive to a logical volume and did a pvmove to migrate all the data from the older, smaller drive to the new one. I…

Modular
- 81
- 2
- 9
2
votes
2 answers
How to capture return value of system command issued in MySQL Client
I'm using a MySQL client connection to issue FLUSH TABLES WITH READ LOCK and then create an LVM snapshot. I'd like the higher-level script (Ruby) to capture the return code of the snapshot creation, but cannot determine how to capture that within…

Joe
- 2,352
- 20
- 38
2
votes
1 answer
How to mount a LVM partition within a LVM volume?
I have built a VG named cinder-volumes. Within this VG, I created a PV named leader-volume. Then I mounted this PV as the root filesystem of a KVM Ubuntu installation. During the installation process, I selected LVM partition.
At last, I created a…

Lingfeng Xiong
- 1,131
- 2
- 9
- 25
1
vote
1 answer
/var/lib/docker/overlay2/*/merged take too much space than it should be
problem descriptions:
In my system, /var/lib/docker/overlay2/*/merged take too much space than it should be and the detail looks like below.
root@sriov-TaiShan-200:~# df -h --total
Filesystem Size Used Avail Use% Mounted on
udev …

xiaojueguan
- 870
- 10
- 19
1
vote
0 answers
Ansible : create a volume group if a disk exists
Hello I am trying to write a role that can ensure the exitence of a disk before creating the volume group.
- name: "create a volume group if a disk exists"
become: yes
block:
- name: listing of pvs
shell: " pvs --noheadings -o pv_name"
…

cilzzz
- 39
- 1
- 6
1
vote
5 answers
LVM: Extending Physical Volume (under VMWare)
I have a virtual server under VMware, where I got 10 more GB harddisk from the sysadm.
Inside Linux (running Ubuntu 11.04 server), things are set up with LVM. In [c]fdisk, I do find these extra 10 gigs - they are present directly after the primary…

stolsvik
- 5,253
- 7
- 43
- 52