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.

1504 questions
0
votes
1 answer

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 running into trouble though is the lack of a gui…
Whitewind617
  • 113
  • 3
0
votes
1 answer

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 deactivate the logical volumes and the volume group with…
callegar
  • 123
  • 3
0
votes
1 answer

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 procedures: created a vg-data using entire raid0…
0
votes
2 answers

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-xlLM-qTof-uCD4-u2p0FH" --restorefile…
0
votes
1 answer

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 /dev/sda and I can see the LVM DM devices showing up…
0
votes
1 answer

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 used lvextend to assign halves of the free space…
0
votes
1 answer

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 free] PV /dev/md0 VG SSDs lvm2 [<1.82…
Tuinslak
  • 1,465
  • 8
  • 32
  • 56
0
votes
1 answer

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 the VM was set to 500GB. Everything ran great for…
0
votes
1 answer

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 to reserve the last cylinders of the disk for…
arivero
  • 200
  • 1
  • 1
  • 6
0
votes
2 answers

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 disk. I couldn't find much info in this online,…
Typewar
  • 167
  • 1
  • 1
  • 12
0
votes
1 answer

Centos 6.10 - How to increase allocated PE size to take up Free P/E size

I recently had to shrink a Clonezilla image, but overdid it an now have to recover some unused free space. Here is the output of vgadisplay: --- Volume group --- VG Name vg_centos6svr System ID Format …
Jack BeNimble
  • 194
  • 11
0
votes
2 answers

lsblk shows LVM volume as subcomponent of a partition

Given two physical drives, sda and sdb, I have: Used fdisk to make sda1, sda2, sdb1 and sdb2 Created four physical volumes accordingly: pvcreate /dev/sda1 etc Created a volume group: vgcreate datavg /dev/sda1 /dev/sda2 /dev/sdb1 /dev/sdb2 Created a…
domsson
  • 103
  • 4
0
votes
0 answers

How to properly update container sizes when extending kvm/libvirt disk when running into "... smaller then corresponding PV size" error?

I work on a Debian buster system as a KVM/libvirt host and followed this guide to extend the disk of my guest: https://computingforgeeks.com/how-to-extend-increase-kvm-virtual-machine-disk-size/ . When extending the disk of a kvm/libvirt guest from…
0
votes
1 answer

How to backup large MySQL database with the help of LVM snapshots?

I am trying to find a backup/restore procedure for a MySQL 8 DB with 400M+ Rows in InnoDB tables. MySQLdump takes days and therefore I am trying this now: Mount a LVM volume on the DB Folder Create LVM snapshot Restore on other server from…
merlin
  • 2,093
  • 11
  • 39
  • 78
0
votes
1 answer

What does the Cpy%Sync column of lvs output mean for a cache LV?

I have a host with a single cache LV (~800GB SSD in front of a multi-TB RAID array; write-through mode). I ran a routine scrub on the RAID last night (lvchange --syncaction check). Ever since that completed, the system has been running at 100% I/O…
zwol
  • 1,355
  • 2
  • 12
  • 22