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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
400 views

Measure the ratio of thin pool overcommitment

Is there a simple command to show just how much disk space total has been allocated in total within an LVM thin pool, and maybe also compute the ratio of disk space allocated by thin volumes to the ...
liori's user avatar
  • 767
0 votes
0 answers
2k views

Damaged volume group on Ubuntu

Ran into a problem with FDISK/LVM: needed to add an additional new disk to Ubuntu Server 20. This has a storage setup using LVM/VG using the default setup configuration. Used fdisk /dev/mapper/ubuntu--...
skunkydude's user avatar
1 vote
2 answers
1k views

Can't restore LVM Logical volume configuration - missing PV

I had a VG with 3 pvs. The VG had one LV using all three PVs. Then one PV (hdd) died. I wanted to try to recover whatever I could. So the first thing I needed to do was to remove the missing PV from ...
daytooner's user avatar
1 vote
1 answer
596 views

Ignore the warning less of swap partition while preseed loading

I have the automatisation debian preseed script. Here is partition rules with sharps for swap in my preseed file: !d-i partman-auto/expert_recipe string \ boot-crypto :: ...
Budro's user avatar
  • 21
0 votes
1 answer
116 views

Which commands should be run to create this partition, volume group, and LVMs?

I have been tasked with configuring newly attached disks with a specific configuration. I am given a 500G physical disk at /dev/abc. The disk is not formatted and has no paritions. The following is ...
MikeyE's user avatar
  • 127
0 votes
0 answers
248 views

LVM: How to remove the extra segment created when converting RAID1 to RAID5?

I had two 1T HDD and a 500GB RAID1 LVM LV across them. Then I added another 2T HDD, and converted the LV to RAID5 using pvcreate /dev/sdd vgextend ubuntu-vg /dev/sdd lvconvert --type raid5 --stripes 2 ...
yume_chan's user avatar
  • 101
1 vote
1 answer
150 views

qemu-kvm: prevent host from accessing passthru LVM disks

I am running multiple Ubuntu (5.4.0-117-generic) qemu-kvm hosts. On each I am passing multiple block devices through to VMs thusly: <disk type='block' device='disk'> <driver name='...
Frobozz's user avatar
  • 205
0 votes
1 answer
434 views

LVM Extending Fails

I'm running a VM in proxmox. I originally didn't have enough space allocated to the VM so now I'm trying to extend it. I've allocated more space in proxmox. And it is recognized in sda3. I was using ...
gmalenko's user avatar
1 vote
0 answers
547 views

lvcreate hangs on snapshot creation

on a Debian testing lvcreate hangs on snapshot creation since some weeks: A that point I have to hardware reset the machine. After reboot the log file is empty and syslog shows nothing. On another ...
Matteo's user avatar
  • 41
2 votes
0 answers
40 views

VM Logical Volume shown on Host

Some context, I've builded an Opennebula cloud (https://opennebula.io/). I've been using it for more than 2 years now without any issue on that side. Recently i've noticed a strange behavior. On my ...
Boat's user avatar
  • 121
2 votes
1 answer
1k views

New LVM VDO logical volume inactive at startup, even with "--activate y" parameter

I'm trying to make LVM VDO work on my Debian 11.3 (test VM installed from scratch). I've shared my installation procedure here if someone wants to reproduce the problem. Now I'm stuck with a "...
tigerblue77's user avatar
0 votes
0 answers
3k views

How to mount volume type LVM2_member to EC2 instance

I'm trying to mount a volume taken from an old EC2 to a new EC2 instance, however, this volume has an "unknown filesystem type of "LVM2_member". I tried all this with the original ...
Jennifer Crosby's user avatar
1 vote
0 answers
536 views

cannot remove pv from lvm config when disk unavailable

I have a vm with 2 disk and 2 VG, on of the disk is a PV (no partition). OS is CentOS 7. Now the disk is unavailable. The PVS displays: # pvs WARNING: Device for PV L9Anor-qlzF-mTT7-Rxx0-Ovig-hMQI-...
repi's user avatar
  • 11
0 votes
2 answers
592 views

How can I make LVM configs boot tolerant with attached USB drive

Setup: DELL PowerEdge R520, oVirt Node 4.4.1 x86_64 # pvs PV VG Fmt Attr PSize PFree /dev/sda2 onn_ovirt01 lvm2 a-- 105.26g 20.77g /dev/sda3 VG_he_nfs lvm2 a-- &...
JayRugMan's user avatar
0 votes
1 answer
1k views

Mount DD image of LVM partition

I am in a conundrum. I need to extract data from a backup image I created previously. I thought I knew enough about LVM to get by... at least until now. It seems my blunder is that I backed up an LVM ...
pkSML's user avatar
  • 199
0 votes
1 answer
708 views

Very big device in Centos

I have older VM (Centos7) where I have many disks. Now it is 36 vmdk (22TB). I wanted extend one virtual disk to 2400GB and create new partition for LVM (3th on disk). But after I create partion I see ...
Pavel's user avatar
  • 427
0 votes
1 answer
1k views

How can I resize my default ubuntu lvm?

I need to add to default ubuntu lvm partition +20GB space. How can I do it in my case? You can see output of lsbkl command below. This is my virtualbox VM, not production server, and all of this ...
Vladimir Fomin's user avatar
0 votes
1 answer
441 views

change name of pv suse linux 12

the output of the pv is showing the name of isci name and not the /dev/sda2 for example. Anyone is telling me why I can hange the name of the pv lxxxxxx:~ # pvs PV ...
Sargan mc's user avatar
0 votes
1 answer
1k views

How to edit attributes of lvdisplay (LVM)

In a lvdisplay command, there is an attribute to display the hostname of the machine we created the logical volume. I want to modify the hostname. how can I modify "LV Creation host" ...
Luke Devon's user avatar
0 votes
0 answers
1k views

LVM aggressive read and write cache

I've added a 2 TB RAID1 SSD as a writeback cache to a 10 TB RAID1 HDD using LVM 2.03.11(2) (2021-01-08) like this: lvcreate --type raid1 --mirrors 1 --nosync -l 100%FREE -n sshd sshd /dev/sdc /dev/sdd ...
Chris's user avatar
  • 270
0 votes
1 answer
165 views

Can Block Device IDs in LVM be set statically?

I have a system using LVM2 with a single PV which contains 1 VG which in-turn contains 5 logical volumes (/, /home, /var, /swap, /data). When I create a snapshot of LV / (lvcreate -L 15G -s -n ...
deanhuff's user avatar
1 vote
1 answer
1k views

systemd: Configure correct dependencies with LVM devices

I have a device setup that I don't know how to model correctly with systemd: The setup I have the following setup: --------- | mount | /mnt/* ...
gerion's user avatar
  • 111
6 votes
3 answers
10k views

Linux LVM - PVID last seen on

Devices file sys_wwid nvme. PVID last seen on /dev/nvme0n1p2 not found. OR Please remove the lvm.conf filter, it is ignored with the devices file. Seems this is happening on RHEL 9 / CentOS 9.
Steven's user avatar
  • 375
1 vote
1 answer
724 views

How to resize unmountable BTRFS filesystem

I have a disk with LVM with two logical volumes media and root. The former is almost empty the latter is almost full, so I wanted to resize both. The logical volume media is dm-crypt + BtrFS. In order ...
Max Görner's user avatar
2 votes
1 answer
777 views

LVM with uneven proportional "stripe" distribution over 2 disks of different sizes

Is there a way to create a "striped" LV in a VG with 2 disks of different sizes in such a way it utilizes 100% of the available space? Linear LV would work, but I want to have the load ...
Chris's user avatar
  • 270
2 votes
1 answer
889 views

How to use ext4magic in LVM?

I'm trying to recover using ext4magic.my partition was LVM. try to execute command ext4magic /dev/sda1 -J -f -s 2048 imges/ error /dev/sda2 Error 2133571347 while opening filesystem ext4magic : ...
Tamil's user avatar
  • 121
0 votes
0 answers
514 views

pvcreate does not work: Device /dev/sda3 not found

As I recall I accidentally removed partition with fdisk and left changes which I did on LVM, then I did restart and Centos was not able to boot normally, it booted to Dracut.. It is my fault that I ...
elkoo's user avatar
  • 101
0 votes
1 answer
590 views

Centos Kickstart - partitioning fails because of arbitrary disk order

I've prepared a kickstart file for a Red Hat Virtualization 4.4 VM with 3 virtio-scsi disks with different disk sizes: # System bootloader configuration bootloader --append=" crashkernel=auto&...
msr's user avatar
  • 33
0 votes
0 answers
999 views

extend volume of CentOS7 VM

There is an issabel VM which I increased the VM hard drive from 20G to 1.07T through ESXi. Next I add sda4 partition as new Linux LVM (following this path at step 22 ), seems I have to use vgextend [...
Ninja's user avatar
  • 1
2 votes
1 answer
5k views

lvmcache/dm-cache writeback cache full performance

I have a SSD writeback cache in front of a HDD, set up through lvmcache (so a dm-cache). When the cache LV is not full (Data% column in lvs < 100.00%), writes go to the cache device (monitored via ...
Albert T's user avatar
0 votes
0 answers
74 views

Perform backup of root directory in luks-container form initramfs

My server is running from a root directory in an encrypted luks container with lvm layout. To perform a backup of the root partition, it is usually the consensus that the filesystem can not be mounted,...
northcom's user avatar
0 votes
1 answer
1k views

What's the best way to set up LVM on an AWS EC2 Instance running Ubuntu?

basically I want to setup an EC2 instance that is properly setup with LVM, instead of what you get when you start up one using the basic Ubuntu AMI which is completely un-partitioned. Where I'm ...
Whitewind617's user avatar
2 votes
1 answer
708 views

LVM - pvmove to a smaller volume

I would like to pvmove a logical volume to a smaller, but faster drive, leaving the excess part on the original drive. Can that be easily accomplished?
An Example User's user avatar
1 vote
1 answer
4k views

Resize AWS LVM volume

I have successfully increased the space on AWS EBS volume. # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 64G 0 disk ├─nvme0n1p1 259:1 0 63.9G 0 part / ├─...
b4d's user avatar
  • 125
0 votes
1 answer
1k views

Deactivation of lvm volume group surviving boot

due to a failing hard disk, I would like to deactivate the volume groups living on it, to make sure that the disk is messed with as little as possible until it gets replaced. I know that I can ...
callegar's user avatar
  • 123
0 votes
1 answer
165 views

lvm recovery with raid reconfiguration

I have a Dell R510 with a H200 controller previously and I have two disks: a 2T SAS and a 250G SSD. I created two raid0s using those two disks on H200 and then created lvm on top of it. Here is my ...
Feng Xue's user avatar
0 votes
2 answers
1k views

Recover a failed Physical Volume (PV) in LVM

My motherboard burned. After getting a new motherboard and attaching the disks, recovering a failed PV fails, because the hard disk size has decreased. # pvcreate --test --uuid "wcUYiJ-ULvA-YcLK-...
Martins Pukitis's user avatar
3 votes
3 answers
4k views

How to increase speed of RAID 5 with mdadm + luks + lvm

I think I am kinda lost with my current server setup. It is an HP Proliant dl160 gen 6, and I put 4 spinning disks with a setup that has mdmadm + luks + lvm and on top of it btrfs (maybe I went too ...
Jayson Reis's user avatar
0 votes
1 answer
333 views

Linux -LMV DM devices IOPS count

I know this might sound like a silly question, but here I go. I have CentOS 7 running in a server with a disk using LVM, according to the vendor the disk could achieve 500 iops, the disk is under /...
Escanoru's user avatar
2 votes
0 answers
137 views

Getting DRBD to boot up in a synchronized state from cold boot

I am working in an environment with an embedded High-Availability NVMeoF cluster, and need this cluster to be available within minutes of a cold power-on of all nodes, and trying to set up a RAID-10 ...
Garrett's user avatar
  • 21
3 votes
1 answer
2k views

How to create LVM RAID 1 with 4 disks of 2 different sizes?

I have a system with 2 x 1TB (NVMe SSDs) 2 x 2TB (SATA SSDs) disks and would like to create a RAID 1 system using all available disks (so I have a 3TB RAID1 system at the end). Unfortunately, most ...
Hendrik's user avatar
  • 133
0 votes
1 answer
421 views

Properly Extend virtual volumes on a CentOS VM, new space in /dev/cl/ not occupied by /dev/mapper

I have a CentOS VM (on a windows host, managed with virtualbox) that ran out of disk space. I extended the virtual disk size, then used gparted to assign the new space to the existing partition Then I ...
Vincent Chalmel's user avatar
0 votes
1 answer
107 views

Have lvm spread LVs across several PVs

I have a server with multiple disks. Most are raid1: PV /dev/md127 VG HDDs lvm2 [465.63 GiB / 421.63 GiB free] PV /dev/sdg1 VG backup lvm2 [<931.51 GiB / <931.51 GiB ...
Tuinslak's user avatar
  • 1,475
1 vote
1 answer
238 views

LXD on ZFS on LVM on H/W RAID 10

I have a Dell R540 with PERC H730P running RAID 10 over 12 DISK to the tune of ~22TB. I want to run various applications/services in LXD containers. I understand that ZFS is preferred for LXC storage ...
simonw's user avatar
  • 35
1 vote
1 answer
2k views

Add new disk to LVM group using ansible module

Team, there are lvol module but I am having hard time find way to add new device to existing VG group. so I took alternate route to use shell module and running RAW commands. but is there a way I can ...
AhmFM's user avatar
  • 119
0 votes
1 answer
182 views

Recovering a nested PV

On my Proxmox 6.4 host, I had an LVM Thin pool that was 250GB large. I created an Ubuntu VM (which used LVM for the root partition as well) on it, but accidentally oversubscribed it, so the PV inside ...
Adrian Petrescu's user avatar
0 votes
1 answer
132 views

Create lvm volume in the last cylinders of the disk

In all magnetic disks, the speed difference between the first and last sectors is noticeable, up to a factor two or three. This is still true with the new multi-terabyte disks. So it still makes sense ...
arivero's user avatar
  • 200
2 votes
1 answer
7k views

Proxmox VE: add a LVM storage on top of iSCSI: how to find "base" value for pvesm

I'm using Proxmox VE platform, version 6 or 7, and I'm currently documenting the initial setup with the idea of automating it later. So I'm looking for all command line commands to do all that I must ...
daks's user avatar
  • 673
0 votes
2 answers
2k views

Is it possible to backup a LVM disk to an external server?

Over the past month I've been putting my mind into how LVM works. The initial thought was that it is very flexible, I was surprised the system could still run while moving the disk to another local ...
Typewar's user avatar
  • 167
1 vote
2 answers
3k views

OpenStack node not booting after forced shutdown, ubuntu--vg-ubuntu--lv does not exist

After forcibly rebooting my OpenStack compute & block storage node, it no longer boots; how can I fix this or recover its data? Gave up waiting for root file system device. common problems: -Boot ...
jun50's user avatar
  • 11

1 2
3
4 5
31