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
0 votes
0 answers
24 views

Failure on lvm part in preseed.cfg

I'm currently trying to finalize my preseed.cfg for Debian 11 for server purpose. The goal is to make a gold image and to automate the image building through packer. I succeed to create and use my ...
  • 111
-1 votes
0 answers
11 views

How to revover my broken Oracle Virtual Box VM CentOS 7?

I was running a CentOS7 VM on my Oracle Virtual Box on a Win10 PC. A sudden power outage caused it to shutdown. When I restarted it, it never worked normally. Here is my way to try to recover: (1) ...
0 votes
0 answers
18 views

Growpart not working for LVM partition on Debian

I am attempting to use "growpart" to grow a partition on a vm that is using LVM. The command reports successfully, and seems to output the correct changes. Though, nothing happens after ...
  • 101
0 votes
0 answers
29 views

LVM thin pool show 100% usage

I've deployed openstack and used LVM as a backend for the cinder block storage, but after using it for a while I could no longer allocate block storage volumes , after checking the available space in ...
  • 35
0 votes
1 answer
23 views

LVM not recognised at startup, system does not boot (PROXMOX VM)

I'm facing a problem I don't know how to fix. I was trying to reduce size of a qcow2 file and I made a backup copy of the original file. After some problems with the reduced qcow2 file I decided to ...
  • 101
2 votes
1 answer
47 views

DRBD on LVM or LVM on DRBD with multiple disks

I have 4 identical servers each with 1+3 SSD for data (no RAID) + 2x10G & 2x1G net. I want to have an active-passive NFS setup with a single export. Probably I will go with 2 clusters so 2 active ...
  • 21
0 votes
0 answers
25 views

AIX 7.1/ AIX 7.2 filesystem not persistently mounted across reboots and appears corrupted

OS: AIX 7.1 / AIX 7.2 Arch: ppc-64 I have created a custom (non-root) volume group homevg bash-5.1# lsvg homevg VOLUME GROUP: homevg VG IDENTIFIER: ...
  • 3
0 votes
1 answer
69 views

Setting up resilient single drive NVMe storage for LUKS encryption

I would like to set up resilient encrypted storage with single NVMe drive for my laptop and its (encrypted) backup (with SATA housing and SSD drive). This is what I have at the moment: SSD -> GPT ...
1 vote
0 answers
57 views

Disk performance issues exclusively with RAID 10 (LVM RAID)

For some reason, I am suffering very poor disk performance on RAID 10, but normal performance on RAID 5. For context, I have 4 x 1 TB hard drives in a server. They are the physical volumes within the ...
  • 11
-1 votes
1 answer
59 views

Diagnosing **very** slow write speed on RAID / Fedora 14

We have a Dell PowerEdge T110 running Fedora 14 which operates as our build server for Embedded Linux and as our Subversion server. Recently it has become very slow, failing to complete nightly ...
0 votes
0 answers
34 views

Logical volumes are not activated on boot

Ubuntu 22.04.1 here. I have a volume group called system created during installation. There are three logical volumes in this group. --- Logical volume --- LV Path /dev/system/swap ...
  • 535
2 votes
3 answers
320 views

Extend /var partition on Centos Stream 8

During the installation of my centos stream 8 OS I gave /var a size of 10GB thinking it would be more than enough, but after I started using docker I found of that it takes too much space on the /var ...
  • 35
0 votes
0 answers
28 views

linux + extend (grow) root file systems without downtime on RHEL production machines

I want to share the following procedure that we did on lab (RHEL 7.2 machine) in order to increase The root file system (XFS filesystem) from 130G to 150G Details from VM RHEL 7.2 machine are df -h / ...
0 votes
0 answers
44 views

Insufficient suitable allocatable extents error when performing RAID takeover

To improve performance while still keeping redundancy, I am trying to convert the root file system of a NAS from a RAID 5 logical volume to a RAID 10 logical volume, while keeping the same number of ...
  • 11
0 votes
0 answers
147 views

Disable read/write workqueue for Ubuntu Full-Disk-Encryption

I am currently trying to set up multiple devices with Ubuntu (20.04.5 LTS) and the drive must be encrypted, so I used LUKS during the installation. (I checked "Use LVM with the new Ubuntu ...
1 vote
1 answer
50 views

Thin-LVM readonly mode

I use this command to move data of one thin lv to another lv on separate server. dd if=/dev/vg/my-lv bs=24M | throttle -v -s 512 -w 2 -m 2000 | ssh -oStrictHostKeyChecking=no -i /var/my-ssh-keys/...
14 votes
8 answers
2k views

Linux - RAM Disk as part of a Mirrored Logical Volume

We have a server with 64GB of total RAM, applications are using typically a maximum of 30GB of that available RAM. One of those applications deals with a lot of flat files, and we're having throughput ...
1 vote
1 answer
71 views

Remove physical volume from LVM volume group without erasing data

I have a volume group: $ vgdisplay --- Volume group --- VG Name Ethan-PC System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 19 ...
1 vote
0 answers
83 views

pvcreate and lvcreate fail with return code 5

I am trying to use pvcreate to create a physical volume and then use lvcreate to create a logical volume on Centos7.9. But, both pvcreate and lvcreate seem to be failing with error code 5. /bin/lvm ...
  • 11
0 votes
0 answers
32 views

Can't boot on my Linux anymore after changing boot order (dual boot windows/debian)

Some months ago, I changed my boot order to make my windows in first boot position. Since this day I can't boot on my linux anymore because I don't see it when i'm booting. After some research I've ...
0 votes
0 answers
130 views

Broken fstab, lvm root file system ubuntu (22.04) urgent help pls - possibly solved but verify pls

I was adding some nfs links to fstab but a stray process filled disk so I lost fstab when trying to save. Am trying to recreate, machine is still live. Found some helpful links, used blkid and think I ...
  • 1
0 votes
0 answers
14 views

Disk throughput: Understanding DM writespeed vs SDA

I am trying to troubleshoot some performance issues. When i look at my nodeexporter graph, I see numbers i dont understand: Disk throughput As I understand, DM-1 is my logical volume, sda is my disk(...
  • 1
0 votes
0 answers
31 views

Disable sync writes on lvm cache

I have nvme devices spread across a couple nodes and connected in a raid1 over the network. I'm using the raid set as a cache device using lvm. I consider the cache device very reliable. Is it ...
  • 1
0 votes
0 answers
71 views

LVM: one volume group that has HD and SSD disks - can I access SSD based logical volume when HD dies?

Let's assume I have two physical disks: /dev/sda1 - hard disk /dev/sdb1 - SSD disk I create volume group: sudo vgcreate hd_and_sd_vg /dev/sda1 /dev/sdb1 Now I create logical volumes: lvcreate -L 10G -...
  • 569
0 votes
1 answer
126 views

LVM "not starting" after upgrading physical disks in underlying RAID6 mdadm array

Before: separate SSD boot drive RAID6 4 x 2TB -> /dev/md0 LVM PV /dev/md0 LVM VG built on the PV above LVM 2 data partitions formed in the VG mounted at /home and /mnt/data I upgraded from ...
0 votes
0 answers
78 views

Anaconda: Failed to find a suitable stage1 device

The installation is oversimplified here. In reality I want to format and supply all the disks (for swap, etc.) to anaconda with several --disk arguments to virt-install like it's suggested here https:/...
  • 141
0 votes
0 answers
21 views

LVM temporary renaming root volume group

I have a somewhat disfunctional disk (call it disk B) with lvm which I wanted to inspect on another machine (both machines are virtual machines on Azure). I attached disk B to another machine which ...
1 vote
0 answers
70 views

How to set HA LVM in RHEL 9 / Rocky Linux 9

I try to set HA LVM (active/passive) in Rocky Linux 9 for my cluster that have 2 nodes (node1 and node2). I'm using iSCSI shared storage to set HA LVM in this cluster. I set HA LVM with following ...
0 votes
0 answers
70 views

Extend the root partition

We need to extend the root (nvme0n1p1) partition that is adjacent to the 2nd SWAP (nvme0n1p2) partition that is adjacent to the third (nvme0n1p3) LVM2 partition that has 2 volume groups in ext4 format ...
0 votes
0 answers
174 views

I accidentally created a GPT label on a sdb that already was in a VG : WARNING: Couldn't find device with uuid CdlY5k-IynC-hYTX-hH3h-HaLC-KAqy-n4h38q

I accidentally created on GPT label on /dev/sdb on a production server which belonged to the ubuntu-vg. Before the change : $ df -h / Filesystem Size Used Avail Use% Mounted ...
  • 297
0 votes
0 answers
36 views

Booting from different LVM snapshots

I am setting up a system for testing software installations automatically. For that, I created an LVM snapshot of a fresh Debian installation. In this snapshot, I want to automatically install, ...
1 vote
3 answers
178 views

partition sizing recommendations for VM with 100GB disk running docker/nomad type workloads

My understanding is from a security perspective, it's best to put things on separate partitions and use lvm groups. In doing so, how might you decide to allocate sizes for things like /var /opt, et al....
  • 113
0 votes
1 answer
37 views

lvresize didn't expand lvm partition

I have a Virtual Machine into Hyper-V, I just expand the VHD and the free space are showing into lsblk command, but i cant expand the lv, it's always showing has no free space. My Configuration and ...
2 votes
2 answers
251 views

Why is pvscan skipping my devices?

I had a CentOS 7 server configured with a volume group that spanned 5 external hard drives. I upgraded the OS to Rocky 9, and now Rocky 9 isn't seeing the physical volumes, volume group or logical ...
  • 151
0 votes
0 answers
27 views

CentOS 7.9 - Moving /var to another LVM causes PolKit to stop working?

We've created a new Physical Volume, Volume Group and Logical Volume (pvcreate, vgcreate, lvcreate) and we've formatted using xfs to keep things the same as the existing setup within CentOS 7.9. The ...
  • 101
0 votes
0 answers
8 views

oVirt VM running normaly but the vdisk does not exist

We have a oVirt 4.3 running in my company. We receaved a error mensagem, from a backup took, informed that snapshot could not be generated. When we saw on the host where this VM is running we can see ...
  • 7
0 votes
1 answer
119 views

vgdisplay shows free extents but lvresize doesn't find them

I'm trying to grow a LVM logical volume, and resized the physical volume. Now, vgs shows free extents, but when I try to assign them to the logical volume with lvresize, it says 0 extents available. ...
  • 171
0 votes
0 answers
62 views

Pacemaker LVM miror to 2 storage systems

In a 2-node pacemaker cluster with active/passive services we want to mirror LVM Volumes to 2 Storage system +-------------+ +-------------+ | Server 1 |-1to2---+ +---2to1-| ...
  • 1
0 votes
1 answer
52 views

Proxmox/Ubuntu LVM issue - Exec format error

I've ran apt update / upgrade on my proxmox server and now I can't seem to boot it into the new kernel (didn't pay too much attention on the update). Any ideas? I can't seem to figure out what's the ...
0 votes
1 answer
2k views

How to resize Partitions on Proxmox?

Hey im Hosting Proxmox on a Small Hosting Provider and after i added more Space to my "sda" Proxmox refused to start and i wasnt able to go on the WebInterface. I still was able to go into ...
2 votes
0 answers
94 views

How to make a virtual disk image out of several parts?

During a process of moving to a virtualized infrastructure I encountered the following curious problem. We want to evaluate everything first. This involves creating a virtual images of all required ...
0 votes
0 answers
28 views

Why LVM PV UUID has non-hexadecimal characters, when the UUID standard requires them?

Trying to recover a disk with GPT partitions used as LVM2 Physical Volumes. LVM config file gives me the disk UUID: physical_volumes { pv0 { id = "TDOcy3-NrVX-Kmx8-...
1 vote
1 answer
99 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 ...
  • 747
0 votes
0 answers
734 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--...
1 vote
2 answers
180 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 ...
0 votes
1 answer
73 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 :: ...
  • 1
0 votes
1 answer
31 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 ...
  • 125
0 votes
0 answers
77 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 ...
  • 101
1 vote
1 answer
44 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='...
  • 163
0 votes
0 answers
17 views

LVM restore configured lv to have more blocks then are available in vg

I recently had a 2TB disk go down due to, albeit, stupidity on my part. Let's just say I won't be working with live power anywhere near my server again. However, I don't have another disk that size, ...

1
2 3 4 5
30