Questions tagged [lvm]
In computer storage, Logical Volume Management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.
1,559 questions
1
vote
1
answer
350
views
Logical volume on external USB Disk not mounted during boot with error Can't lookup blockdev
I use lvm on my raspberry pi 5 running Alpine 3.23 with internal nvme, I also have two external USB disks (WD 1Tb and 6TB). All three disks are in the same volume group vg0 with
nvme:
lv_root for /
...
2
votes
2
answers
395
views
LVM: move pv with one lv to another vg
I want to physically move an external USB HDD from one server (raspberry pi 5) to another (also pi 5) with all the data. However, the disk is in a volume group. The disk has only one logical volume on ...
0
votes
2
answers
91
views
Why does the same lvreduce command has such different execution times on consecutive runs?
I have a VM with a large 6TB disk. The VM has been booted with a Ubuntu24 liveISO. I am incrementally shrinking the logical volume with the time lvreduce --resizefs --size 1T /dev/vgname/lvname ...
2
votes
2
answers
219
views
Adding LUKS encrypted disk to a LUKS+LVM root filesystem
I have the following problem:
How can I add storage to a machine already using LUKS+LVM without being asked for a passphrase for every added disk?
Goal:
Add space to the logical volume (LV) lv-var ...
1
vote
1
answer
127
views
How can I remove Linux LVM snapshots when a PV is missing?
I have a Linux system (running Debian Bookworm with kernel 6.1.0-37-amd64 and lvm2 2.03.16-2) with a number of SSDs that contain LVs of --type raid1; so the data of those LVs is stored on two PVs. ...
1
vote
0
answers
153
views
LVM missing one PV after accidental commands on RAID1 device
I have a serious issue with one of my Oracle Linux 8 servers in a 4-node rack setup.
Each node has an identical LVM + RAID1 layout, but one node is now unbootable after i accidentally ran parted and ...
1
vote
1
answer
172
views
LVM fails physical volume after reboot by not recognizing UUID
I have a VMWare virtual machine with Ubuntu 18.04LTS (yes, I know).
Been running for quite a bit, now we had to reboot it due to electricity outage. It was shut down via VmWare's "Power off" ...
2
votes
1
answer
179
views
AlmaLinux 9: best LVM/partition layout for MariaDB‑heavy host (1.8 TB SSD RAID 1 + 22 TB HDD)
I’m preparing a new AlmaLinux 9 server and would like advice on the partition/LVM layout.
Hardware
Device
Qty
RAID
Usable size
Purpose
SSD 1 .8 TB
2
RAID 1 (mdadm)
1.8 TB
OS + “hot” data
HDD 22 TB
1
—
...
6
votes
1
answer
272
views
How can I recover from a failed disk on lvmraid RAID 6?
I'm in a bit of a hairy situation trying to get my NAS back in running shape again after a drive failure.
My setup consists of 6 HDDs and an M.2 NVMe, all using LUKS for encryption. In addition, the ...
0
votes
0
answers
167
views
LVM thin: bad checksum in superblock
Due to a power loss one of my server disks isn't mounting anymore though it seems to be ok physically
~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
[...]
sdb ...
0
votes
0
answers
1k
views
Ubuntu 25.04 / 24.10 installation on LVM partitions
In the past (22.04) Ubuntu installer recognized LVM volumes and allowed installing parts of the system on them - this was the only way to have encrypted partitions, in particular on dual-boot systems. ...
0
votes
1
answer
740
views
pvscan does not show all physical volumes
We're running Proxmox VE 8.3 on a few ProLiant DL360p Gen8. Each of them is connected to 1/2 MSA 2040 storage array with two connections. The array is accessible as
/dev/sdb for the first connection ...
5
votes
4
answers
656
views
Linux Software RAID10 (SSD) become horrible slow
I run a Supermicro server (2x AMD EPYC 7282, 128 GB) with 8 drives for over 5 years now. The server runs Debian Linux and serves a lot of virtual machines with a mixed workload (Mail, Nextcloud, ...
0
votes
1
answer
79
views
Remove "extra" Linux LVM 'rmeta' volumes?
I tried to convert a linear volume var to RAID-1 on a kernel that had RAID-1 configured off, and of course that failed. I rebuilt the kernel with appropriate changes and then the conversion succeeded,...
1
vote
1
answer
260
views
overlapping disks after partition extension
The machine I'm working with runs Ubuntu 20.046 LTS and has two HDD plugged. The initial setup was following
I wanted to use sdb to extend ubuntu-vg-ubuntu-lv which would make a total of about 5.3T. ...