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
1
vote
0 answers
From lvdisplay To actual extent usage
I'm a DBA familiar with lvm snapshotting for database backups and have now been tasked with rectifying a "siloed" lvm setup. Essentially, I now have a standalone bare metal box that is running 3 mysql instances across 3 ports. The unfortunate thing…

Kurt
- 51
- 4
1
vote
0 answers
Script to automatically grow LVM partition CentOS
I'm looking for a script to check the size of a particular LVM volume on CentOS 6.5 and when it reaches a certain threshold, have it automatically extend the partition and online re-size the file system.
I have this particular machine monitored, and…

BPB
- 11
- 3
1
vote
1 answer
munin df plugin configuration
Every time LVM snapshot is dropped, I receive Munin warnings:
Disk latency per device :: Average latency for /dev/vg/lv_mysql_snapshot
UNKNOWNs: Read IO Wait time is unknown, Write IO Wait time is unknown.
Disk latency per device :: Average latency…

user27133
- 21
- 4
1
vote
0 answers
Logical Volume Partition
I have created logical volumes, using already existing /home /var directories...the process for creating the logical volumes was no issue, however after I create the logical volumes, all of the content in the directories looks like it was wiped.
Is…

user2019182
- 295
- 5
- 19
1
vote
4 answers
Need to redirect an output to /dev/null.... works fine in command line but not in shell
I need to write an execute some command in bash file and ignore the inputs.
Example
pvs --noheadings -o pv_name,vg_name,vg_size 2> /dev/null
The above command works great in command line, but when I write the same in shell, it gives me an error…

howtechstuffworks
- 1,824
- 4
- 29
- 46
1
vote
1 answer
What format is the LVM config file?
So here is a snippet from the config file I'd like to parse (It is an LVM2 Config):
VolGroup00 {
id = "vyllep-rfI6-LCvO-h6mN-zYZu-hiAN-QShmG6"
seqno = 3
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
…

GoldenNewby
- 4,382
- 8
- 33
- 44
0
votes
1 answer
Pipe rsync output to file
Is it possible to pipe the output (raw data, no logging) to a file of rsync, and maybe save this to a bsdiff? I find rsnapshot to be highly irritating with the lack of configuration and stupid syntax (indenting, wtf?) and rdiff to be a little…

vegardx
- 1
- 1
0
votes
0 answers
How to recover a btrfs filesystem on top of lvm on two encrypted devices after an lvresize mishap
Recently I added a second ssd block device tot my Pop!_OS 22.04 system,
encrypted it and added it to the volume group. In the process I decided to
resize the root logical volume (the only volume). However instead of
reducing it by 1GB I resized it…
0
votes
0 answers
Why the Maximum Metadata Size of a Thin Logical Volume Is Only 15.81G?
My boss asked me to create a thin pool with metadata size exceeding the maximum limit.
In the first step, I executed the subordinate command:
[root@localhost ~]# pvs /dev/vdb
Configuration setting "devices/allow_mixed_block_sizes" unknown.
PV …
0
votes
1 answer
grow up logical block size: - FAILED: failed to dump sfdisk info for /dev/sdb
How can I grow up space of the /dev/mapper/ubuntu--vg-ubuntu--lv?
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.5G 0 1.5G 0% /dev
tmpfs 298M 1.2M…

kozmo
- 4,024
- 3
- 30
- 48
0
votes
0 answers
Openstack instance creation fails on attempt to attach a volume
I am trying to get familiar with Openstack. I started out with devstack but was told by folks to use kolla-ansible as my base which I did. I am using the wallaby version all-in-one.
I successfully installed it and got public and private networks…

nekton
- 1
0
votes
1 answer
Mapping nested device mapper mounts back to their physical drive
Looking for a reliable (and hopefully simple) way to trace a directory in an lvm or other dm mounted fs back to the physical disk it resides on. Goal is to get the model and serial number of the drive no matter where the script wakes up.
Not a…

netdxr
- 1
- 1
0
votes
0 answers
AWS EBS Maximum available IOPS with LVM
I have created an LVM Volume group in the AWS ec2 instance. The volume group has two ebs gp2 volumes attached.
https://github.com/awslabs/aws-support-tools/tree/master/EBS/VolumeLimitCalculator
pvscan
PV /dev/nvme5n1 VG vg_log lvm2…

Kenot Solutions
- 377
- 1
- 4
- 11
0
votes
1 answer
Any Steps to perform standard partition disk to LVM disk conversion, without data loss
I have Data disk and data disk type is Standard Partition and We are Planning to convert that data disk from standard partition to LVM disk partition, but data loss should not happen, Any One have Steps Please update here.strong text

Nani
- 1
- 1
0
votes
0 answers
how to start lvm merge in background using blockdev in C
I am trying to start a merge of a LVM snapshot using the blockdev API in C, similar to the “lvconvert —merge -b vg/lvsnap” OS command
The issue is that the merge starts, but it doesn’t go in background
The code waits for the completion of the merge,…

user413990
- 39
- 5