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
10 views

How to format NVMe drive in Linux suitable for raid 1 and lvm on xen Host

I want to create a software raid on two identical SSDs How do I create partitions and format them optimal? lsblk nvme0n1 259:0 0 953.9G 0 disk nvme1n1 259:1 0 953.9G 0 ...
rubo77's user avatar
  • 2,499
1 vote
0 answers
9 views

CentOS - lsblk showing added new space for mpath, but pvdisplay is showing previous space

Team, I am working in a production environment and stumbled into a case where, a 3TB space from Storage has already been mounted and used for particular volume group called "ipdata_vg". Now ...
esya's user avatar
  • 11
-1 votes
0 answers
28 views

how to create a new VG group on an installed Ubuntu Server 20.04

To give some context, I'm currently working on CIS Benchmark Hardening on the Ubuntu 20.04 on one of our product and I'm stuck on how to create a new vg group. I have followed multiple way to do it ...
Sylia Baraka's user avatar
0 votes
0 answers
11 views

Storage configuration leads to Ubuntu Linux Server Boot failure - ( initramfs )

Ubuntu Server 22.04 installation is completed and successful but the OS doesn't boot! What does mean initramfs ? I've tried to install Ubuntu Server 22.04 on VM. Installation is completed and ...
Shahyar Ashrafik's user avatar
0 votes
2 answers
37 views

Can I copy the files in my original /opt directory after I mount a new LVM on the /opt?

I have new LVM on my Linux server and I want to mount on my /opt. I have files in the /opt directory and I know after I mount, the files will be hidden. Is it possible to rsync the files in the /opt ...
Lermyz's user avatar
  • 1
0 votes
1 answer
42 views

CentOS LVM Extension Trouble

We have a CentOS 8 server that has recently had a lvm fill up on available space. This was not our monitoring system since it watches the disk space and not the volume space. Regardless I am having ...
bShaver's user avatar
0 votes
0 answers
46 views

RHEL9.2 complains about missing /lib/modules/5.14.0-284.25.1.el9_2.x86_64 when rebuilding initramfs

The kernel on one of our RHEL9.2 servers was recently upgraded to 6.2.8 in preparation for a software upgrade but due to complications, we've had to revert back to 5.14.0-284.25.1.el9_2.x86_64. I've ...
nathan.glades's user avatar
1 vote
3 answers
588 views

LVM: Creation difference between CentOS 7 and CentOS 6

I have CentOS 6 & 7 server and am creating 512 MB logical volumes: CentOS 7: sudo lvcreate -v -n lvname -L 512M rootvg && sudo mkfs.xfs -L "lvname" /dev/mapper/rootvg-lvnamee ...
JKC's user avatar
  • 31
0 votes
0 answers
24 views

Create Azure Red hat template with custom LVM partitions

I want to prepare Azure template for Red Hat 8 servers with packer and I'm facing problem with setting custom LVM partitions. For example, I want separate /var/tmp, /var/log etc. I deployed some VMs ...
matix324's user avatar
2 votes
3 answers
479 views

Can one VG (Volume Group) contain different types of PVs (Physical Volumes)?

The background is we have our database data directory on an LV which is located on a VG. We want to use the LVM's snapshot function to backup our database data, but this VG has no free PEs left. We ...
Ke Lu's user avatar
  • 21
1 vote
1 answer
83 views

pvmove: "Insufficient free space" when trying to move mirrored LV

Originally I had two PVs /dev/nvme0n1p2 and /dev/nvme1n1p1 containing various mirrored LVs. I recently added two new larger capacity PVs /dev/nvme2n1p1 and /dev/nvme3n1p1, and expanded a LV (home/...
小太郎's user avatar
  • 347
2 votes
1 answer
76 views

File access on SSD array suddenly slowed down; TRIM appears to be unavailable. How to enable, or what else could it be?

We have a system that's used for a GIS database (with Postgres as the underlying engine) which is using a software RAID 5 array of 4x2TB Samsung EVO870 SATA SSDs as its database drive. There is a ...
tsc_chazz's user avatar
  • 1,183
0 votes
0 answers
50 views

mount LVM2 dump or extract files

I have a dump of a filesystem. I dont know how it was created. I want to extract all the files and the filestructure. file dump.bin says it is a LVM2 PV (Linux Logical Volume Manager) file and prints ...
Vincent's user avatar
1 vote
1 answer
36 views

Storing each file on separate physical drives for a single file volume

I am working with a bunch of really large files (>100 GB). As we often process multiple large files in parallel (e.g. 10-12), we think that it might be advantageous to have each file be stored on ...
KT8's user avatar
  • 13
0 votes
0 answers
33 views

Best Option for Compatibility of "Linux Journaling File System" and "Volume Manager" with Microsoft Azure VMs

I'm in the process of setting up a Ubuntu Desktop VM on a bare metal server using VMware vSphere. Once the development process is complete, I plan to transfer the VM to Microsoft Azure VM ...
user20766's user avatar
0 votes
0 answers
181 views

LVM Thin pool performance with NVMe

I have 24 Samsung PM1733 7.68 TB and a server platform Gigabyte R282-Z94 with 2x 7702 64cores AMD EPYC. OS: Oracle Linux 8.6, 5.4.17-2136.311.6.el8uek.x86_64 I need this server for testing so I have ...
shallrise's user avatar
0 votes
0 answers
104 views

Broken disks on LVM system

Hi I have searched all around to find this case. I have a PC WITH 3 disk a main disk with os completly destroyed an another couple of disk with LVM on it If I mount it under linux I can do: sudo ...
user1594895's user avatar
0 votes
0 answers
289 views

XCP-ng Local Storage SR on LVM is unplugged and errors when being re-attached

I have an XCP-ng cluster running XCP-ng 8.2.1 and following a patch and reboot the local storage SR is showing as unplugged. This is an XCP create LVM on a RAID drive, the same RAID drives contain the ...
Dave's user avatar
  • 355
0 votes
0 answers
127 views

LVM mirror with failed disk can't be repaired

I'm trying to help someone resurrect a RAID1 mirrored LVM logical volume on an old server running Fedora 20 (lvm2-2.0.2.106, linux 3.19.8-100). One of the disks in the mirror is dead. The disk ...
Bryan Wright's user avatar
0 votes
1 answer
39 views

Cloudmin backup size

we are using Cloudmin under CentOS 7.9. to manage Xen virtual machines that use LVM. It's all backed up once a week (via Cloudmin's built-in backup system, which I think just uses dd). Last week I ...
Dmitry's user avatar
  • 23
1 vote
1 answer
80 views

Differences between sfdisk and fdisk on LVM disk extend

In order to semi-automate LVM partitions extend on Debian 11 VMs clones from a template, I feel a bit stuck when I try to script it through sfdisk compared to interactive fdisk. Here's the original ...
motorbass's user avatar
  • 343
0 votes
0 answers
136 views

LVM disk is corrupt - is any data recoverable?

Under RHEL7 we have a logical volume consisting of 27 volume groups PVs. Each of these VGsPVs was added sequentially as we ran out of space on the LV. We do not have a backup of the data. There are ...
tmark's user avatar
  • 141
0 votes
0 answers
198 views

Linux LVM - create a mirror, break it, take one of the pieces to a different system, use it there

Using LVM, I would like to create a mirror of a LV, sync it, break it off, attach the mirror-piece to a different system, use it there. Start with a ordinary linear LV. Here is the procedure I have: #...
Steve's user avatar
  • 1
1 vote
2 answers
868 views

how to delete a xfs file system from logical volume (lvm2), to achieve the goal being this logical volume without any file system?

I have LVM RedHat 8 intall and there's one Volume Group there. Fri May 19 [michal@Ora2 ~]$ sudo vgdisplay --- Volume group --- VG Name ol System ID Format lvm2 ...
michal roesler's user avatar
3 votes
1 answer
59 views

Pooled storage with varying redundancy per file system

I have some files that I want stored mirrored. I have some files that I only need single copies (i.e. scratch data, easily regenerated data, etc). And I have some files that are so critical, I want it ...
David Pfeffer's user avatar
0 votes
1 answer
450 views

umount of logical volume failing during shutdown

In my system, multiple logical volumes are created, mounted and /etc/fstab entries are added after systemd starts up. When system is rebooted for the first time, during shutdown many umount failures ...
m.divya.mohan's user avatar
1 vote
0 answers
61 views

LVM not showing LV although it's in use

I have a machine with a RAID-1 (sda) hosting Debian 10 and a RAID-5 being used for storage (sdb), both using independent PGs. Recently the RAID-5 was corrupted, so I recreated it and set up the LVM ...
Marcus's user avatar
  • 111
0 votes
2 answers
131 views

Can mount on /mnt but not on other mount point, why?

this is an RHEL8 VM. I'm trying to mount a logical volume on /var (because I need more space). For now I have created a directory /xvar to mount on, but it doesn't work and doesn't show an error. ...
musbur's user avatar
  • 193
0 votes
0 answers
197 views

Fixing LVM boot after disk clone

I have a NVME boot disk that was running low on space in my proxmox server. After using Clonezilla to clone the disk to another larger NVME things are unstable. The boot disk has 2 Logical volumes on ...
Doug's user avatar
  • 283
0 votes
3 answers
172 views

Oracle Enterprise Linux: Growpart 'cannot grow partition'

I've read a few blogs here on this but haven't come across similar situation as mine. i have expanded the drive by 5GiB on /dev/sda i have without rebooting made it visible by running the following ...
Khorem's user avatar
  • 11
0 votes
1 answer
26 views

How to extend LVM size

I have additional free space on my sda disk and I want to add this space to my LVM. How can I add this 2.5T space to my LVM without destroying the existing partition or losing any data? sda ...
David's user avatar
  • 101
0 votes
0 answers
48 views

Shrinking ESXi volume to reclaim unallocated space

We have a number of VMs (VMware ESXi) running Ubuntu. As a result of the installation time 'feature' which only allocates half the amount of the requested space, we have a lot of wasted/unallocated ...
MikeBrom's user avatar
5 votes
4 answers
2k views

Cloning data from a damaged SSD

The SSD went into read-only mode, so you need to move the partition to a working SSD, but I encountered the fact that the LVM size is different: #lvm pvscan PV /dev/sdc3 VG pve lvm2 [&...
Джон Смит's user avatar
21 votes
1 answer
2k views

Birth time of files are missing if file is created in a logical volume with size less than 512 MB

I have a volume group in my system, created with single physical volume. I'm creating two logical volumes - one with size 100M and one with size 512M. Any file created on LV with 100M size does not ...
m.divya.mohan's user avatar
1 vote
1 answer
159 views

Disk Size is not Consistent Between fdisk and parted

I have noticed some difference in size displayed using parted and fdisk. I have a disk attached with a size of 20GB. Executing the fdisk command shows that the size is 20GB which is correct. fdisk -l /...
Grabinuo's user avatar
  • 113
0 votes
1 answer
70 views

Used P2V to reduce size opf LVM VHDX - Issues with grub and booting now

Hi All hoping for some Linux genius advice I inherited a VMWare VM cluster with a few production VM's they were all way over provisioned and all have 1tb Thick drives But are only using 100gb odd each ...
Chayne's user avatar
  • 1
0 votes
1 answer
700 views

Rocky 9.1 dracut fails to boot

My rocky 9.1 vm kernel is not able to load/boot/decrypt a LVM Luks2 volume during boot. Booting with 5.14.0-162.6 works fine. But fails booting the latest 5.14.0-162.18 or 5.14.0-162.12 kernel, dracut ...
sherwood's user avatar
0 votes
1 answer
215 views

Avoid Docker to write into /var/tmp

How can I tell docker to write data elsewhere of /var/tmp ? Like specifying another path, like /opt for example. Because I often running out of disk usage on /var file system. The challenge is that I ...
Suffren's user avatar
0 votes
1 answer
54 views

Can't `lvconvert` when root is readonly

My root is mounted readonly (on purpose). I have a separate, read-write vg where I want to lvconvert --merge a thin snapshot. I'm getting Cannot archive volume group metadata for $VG to read-only ...
Duncan Townsend's user avatar
0 votes
1 answer
306 views

Copied data to LVM-Thin pool by mistake

I'm here today because of a big mistake that I have made. I created an LVM-Thin data pool (and not on a LVM-Thin LV) on my Proxmox server and (don't ask why) ran a mkfs.ext4 on the pool then mounted ...
Hidd's user avatar
  • 3
1 vote
0 answers
235 views

RAID + LUKS + LVM + BCACHE + BTRFS

I want build new structure for my data store (NAS - Ubuntu). Data storage will be 4TB at first. Then up to 8TB. My old structure is simple: RAID 1 -> LUKS -> FS I need some wishes to new ...
Jo K's user avatar
  • 111
0 votes
1 answer
111 views

Creating a ramdisk with lvmvdo persistent across reboot?

I am trying to create a persistent ramdisk with lvmvdo with the below unit file but it does not seem to work.I have not added the --type vdo option to the lvcreate command yet ( this is for RHEL9 ) [...
munish's user avatar
  • 151
0 votes
0 answers
15 views

lvm cachepool disabled after single error on raid1 - is this by design? or coincidence?

I setup my computer as follows Fedora 37 kernel 6.0.17-300.fc37.x86_64 lvm2-2.03.11-9.fc37.x86_64 sda - SSD sdb - SSD sdc - HDD sdd - HDD lvcreate -n root -L50G --type=raid1 rootvg sdc sdd lvcreate -n ...
banjo67xxx's user avatar
0 votes
1 answer
148 views

grub error after kernel update with active root LVM snapshot

The situation: debian 11 with LVM and / is a logical volume: /dev/mainvg/lv-root created a snapshot of the root partition by doing lvcreate -L5G -n bkp_lvroot -s /dev/mainvg/lvroot Now I updated the ...
archygriswald's user avatar
1 vote
1 answer
142 views

Cannot remove LVM snapshot

I am running Debian 11, using LVM. The root partition is /dev/mainvg/lvroot. I created a snapshot of the root partition by doing lvcreate -L5G -n bkp_lvroot -s /dev/mainvg/lvroot. My system was in ...
archygriswald's user avatar
0 votes
1 answer
1k 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 ...
donkeyx's user avatar
  • 101
0 votes
0 answers
420 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 ...
Rafik's user avatar
  • 35
0 votes
1 answer
582 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 ...
IgnacioHR's user avatar
  • 101
3 votes
1 answer
274 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 ...
Bog's user avatar
  • 31
0 votes
0 answers
66 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: ...
Yakup's user avatar
  • 13

1
2 3 4 5
31