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
1 answer
603 views

How do I resolve this LVM issue in Ubuntu on a USB External Drive?

I'll try to be brief and succinct. I recently wiped my Ubuntu server and re-installed 20.04 on an older Proliant DL360. This system had two seagate external USB drives attached to it which store a ...
Jon Griffith's user avatar
1 vote
0 answers
28 views

LVM: how to strip Logical volume without impacting existing data?

I have an LV lv1 backed up by a VG vg1 using 2 PV pv1 and pv2. From lvs I understand that the layout of the LV is linear: # lvs -o+lv_layout,stripes LV VG Attr LSize Pool ...
yayg's user avatar
  • 111
1 vote
0 answers
1k views

From mdadm raid to LVM (raid or mirror) decisions and how to monitor

We are migrating some server from linux raids (0 and 1) to LVM with stripe or mirrors. At the moment our systems are mainly configured something like | /tmp - /home - /others |------------------------...
luison's user avatar
  • 282
0 votes
1 answer
1k views

parted + usage help not described the resizepart

we need to use parted command as example on rhel server 7.2 version parted -s /dev/sda resizepart 2 but from parted help we not find the option resizepart example: parted -s /dev/sda resizepart 2 ...
sheffadmin's user avatar
1 vote
1 answer
1k views

How I can create LVM VDO volume on top of LVM RAID?

Im using LVM to setup my lower level storage with raid5 via lvcreate --type raid5 --size 2T -I 256K -i 3 -n my_lv my_vg Now I want to setup VDO on the top of this using LVM too. Im aware of this man ...
Jairo Andres Velasco Romero's user avatar
0 votes
1 answer
205 views

rhel + parted failed after increasing OS VM disk and rescan

we have VM rhel machine version 7.6 example from lsblk lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 300G 0 disk ...
sheffadmin's user avatar
1 vote
1 answer
9k views

Resize LVM volume with Ansible

Short version: how do you resize/extend a logical volume with ansible? It includes built-in support for managing both physical volumes and volume groups and logical volumes. Based on the following ...
Jared's user avatar
  • 383
0 votes
1 answer
2k views

How to increase the free space in a Volume Group in LVM after expend VM disk size

We want to increase the space in a Volume Group in our VM centOS server For example from pvs we see pvs PV VG Fmt Attr PSize PFree /dev/sda2 VLwol lvm2 a-- <100.00g <5.09g ...
sheffadmin's user avatar
1 vote
0 answers
30 views

Ovirt Host not healthy after upgrade from 4.4.0 to 4.4.2 using yum

After I upgraded one of my Ovirt hosts from 4.4.0 to 4.4.2 using yum become a faulty host for the cluster. I tried to uninstall the upgrade but that didn't help. After checking the status of the Host ...
user599298's user avatar
2 votes
1 answer
5k views

Is my KVM VM thin provisioned?

I was reading another post here Use Thin LVM Volume for KVM VM trying to understand whether or not KVM is capable of creating thin provisioned VMs. The post from about 8 months ago has both the OP ...
Gary's user avatar
  • 133
23 votes
2 answers
7k views

Is it safe to mount the same partition to multiple VMs?

I'm using ubuntu 20.04 with Xen Hypervisor. On my machine I have an SSD that hosts my VM images, and then four sata drives which I have data on. My current set up is to mount the data on my domain0 ...
curios's user avatar
  • 363
1 vote
0 answers
735 views

Dead Citrix XenServer with LVM: How to get the VHDs off the system?

My company recently delegated the task of recovering a fairly old (~2015) Citrix Xenserver to me. The machine had a major electrical fault which caused a hard drive failure and a collapse of the RAID. ...
user2190489's user avatar
0 votes
0 answers
804 views

LVM Logical Volumes will not activate on Cloudlinux 7.8

Recently, after a reboot, the system landed in Emergency Mode. The cause appears to be that the system is failing to mount a few of the disks as defined in /etc/fstab. These disks are Logical Volumes. ...
Pierowheelz's user avatar
0 votes
1 answer
171 views

promox is blocked from fully booting by ifupdown2 start job

i have a promox server with ifupdown2 installed. recently when trying to reboot the entire server promox failed to get to console, it gets stuck on replication runner failing and the ifupdown2 service ...
Fuseteam's user avatar
  • 111
1 vote
1 answer
322 views

Arch Linux - KVM - Sharing SSD and HDD between Arch and it's VMs

I'm relatively new to linux and I'm trying to build an Arch linux that will have a gaming VM. I have 2 disks: a 500GB SSD and a 2TB HDD. I've settled on a LVM with a swapfile and extra space for ...
Matheus Simon's user avatar
0 votes
0 answers
50 views

Extend LVM partition

I need to extend existing LVM mounted to /opt. I've created new volume sdb2 and mounted it to /opt, but disk space in df -h output still the same. What esle should I do? lsblk output: └─sda3 ...
John Brown's user avatar
0 votes
0 answers
1k views

DD of LVM Partition to another disk drive not working - no space left on device

I have a vmdk attached to my Linux VM instance (/dev/sda). The disk has 2 partitions, as shown below: Disk /dev/sda: 17.2 GB, 17179869184 bytes, 33554432 sectors Units = sectors of 1 * 512 = 512 ...
jcwp's user avatar
  • 1
0 votes
0 answers
223 views

Missing creation time for LVM logical volume

One of our storage has an lvm volume group on which multiple logical volumes are not set the creating host name and time (LV Creation host, time attribute). These were created quite a long time ago, ...
Laszlo Malina's user avatar
0 votes
2 answers
574 views

Monitor Linux Server filesystem health and suspicious activities

I run my own, small server here. The server runs on Ubuntu 18.04. There is one single HDD using LVM on a partition together with EXT4. LVM is used for taking snapshots. I also use Webmin with ...
C. Hediger's user avatar
0 votes
1 answer
609 views

How can I extend lvm on centos with default partitioning?

I have a centos 7 OS on VM with default partitioning like this: enter image description here NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1T 0 disk sda1 ...
Ali Namin's user avatar
1 vote
1 answer
2k views

Cannot activate Logical Volume which was managed by Pacemaker

I have two CentOS 7 servers that clustered with Corosync and Pacemaker to work in Active/Passive way. The whole idea was to move the mount point in case of a problem emerges in the active node. My ...
Barış Can Terzioğlu's user avatar
1 vote
0 answers
285 views

Possible solutions for Linux mdadm "raid5" over devices with different sizes?

I have server with 5 disks of 4TB, 2 with 8TB, and 1 10TB. I'd like to bundle them all together into Raid5/Raid6. As far as I understand one cannot do it nicely with disks of varying sizes. But I ...
eijeze's user avatar
  • 457
0 votes
2 answers
663 views

Disk usage in LVM: Which directories contains most data?

We have following volumes: $ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 3.8G 0 3.8G 0% /dev tmpfs 3.9G 0 ...
robsch's user avatar
  • 157
1 vote
0 answers
767 views

Running Windows in QEMU with LVM causes very slow disk acess

I have the problem, that whenever I try to run Windows within QEMU, it seems that disk access is becomming very slow after a short while. Surprisingly both access to the disk from within the VM as ...
LiKao's user avatar
  • 121
1 vote
1 answer
2k views

How can I access a LVMs in a partition using a LiveCD?

I have a server running Centos 6 in a data centre that suffered a kernal panic which then prevented the OS from booting (according to the support staff in the DC). The DC support staff also suggested ...
Matt Darby's user avatar
0 votes
1 answer
866 views

Ubuntu Kickstart - LVM Partitioning using two HDD's not working and fdisk -l output makes no sense on successful single disk deploy

I have read so many kickstart configs and pressed recipes that my head is spinning, and I just need some help or clarification regarding this. Before I go too much into the config, the gist is that I ...
PM5K's user avatar
  • 101
3 votes
1 answer
354 views

Disable write intent bitmap on LVM RAID1

I want to use LVM on raw devices to be able to dynamically create RAID0 and RAID1 volumes depending on my current needs. I've recently learned that the write intent bitmap feature of mdadm reduces ...
liori's user avatar
  • 767
0 votes
0 answers
790 views

Steps to extend CentOS v8 VM disk space on the fly without data loss?

I need some steps I can follow from the Putty session so I can extend the CentOS v8 VM without losing its data? I have already extended the disk space in the VMDK into 60 GB from its initial 40 GB. [...
Senior Systems Engineer's user avatar
0 votes
1 answer
393 views

Best way to mirror a large drive onto two smaller ones

I have an 8.0 TB Drive which will soon start filling up with videos I have two spare 4.0 TB Drives The system is running Linux Mint 19 Tara and is my desktop system (Yes it's a big system able to ...
Jesse the Wind Wanderer's user avatar
1 vote
0 answers
185 views

Prevent LVM from activating all LVs upon connecting SAN storage?

We have a cluster of Proxmox VE servers with shared SAN storage. The storage server provides a big LUN through iSCSI. We use iscsiadm on the PVE hosts to load the storage. Per our workload, we setup ...
iBug's user avatar
  • 1,318
3 votes
1 answer
225 views

Replace failing LVM disk with root

This was my first setup so it's a bit messy. Extremely small root volume (3.9GB) which I'd like to increase but the problem right now is that the disk is failing and I need to replace it. root@...
elisabethc09's user avatar
0 votes
0 answers
1k views

terraform - shall one use simple disk or linux LVM?

Is there any drawback of using LVM disks in terraform managed virtual machines? Currently I come to the project where all disks are simple linux disks, but terraform is unable to resize them up ...
Wojtas.Zet's user avatar
0 votes
0 answers
369 views

How to reduce size of LVM partition and create another partition?

I have a standard parition and lvm partition on my disk /dev/sda [root@server1 ~]# fdisk -l Disk /dev/sda: 10 GiB, 10737418240 bytes, 20971520 sectors Units: sectors of 1 * 512 = 512 bytes Sector size ...
meallhour's user avatar
  • 121
0 votes
0 answers
70 views

Extend mirrored LV onto one PV

Legend: Crummy homemade LVM Legend Mixed: Mixed LV I need to add space to an existing 1TB mirrored LV (2 1TB disks) with a new 2TB disk yielding 1+2=3TB. How do I do this? I can't move my data to ...
jkoop's user avatar
  • 29
3 votes
1 answer
2k views

Confirming parameters for XFS filesystem and LVM volume striping over 2 ADAPT (RAID6-like) volumes

We are setting up an ADAPT0 (RAID-60-like) configuration for a file server. We have six disk pools. Each consists of 14 disks and is set up using ADAPT. According to Dell's official white paper, ADAPT ...
Nicolas De Jay's user avatar
0 votes
0 answers
165 views

Folder in Ubuntu Became a File and the other Show Question Mark in Owner/Group

I encountered a very weird issue, appreciate if someone could help. One of my folder stored in a LVM2 XFS filesystem (mdadm RAID6), silently became a file and a folder showing question mark on both ...
teclinux's user avatar
2 votes
1 answer
1k views

Why does active-active configuration degrade performance compared to failover?

We are setting up the new storage for an HPC compute cluster that we are managing for applied statistics, bioinformatics, and genomics. Configuration We have the main enclosure with a Dell EMC ME4084 (...
Nicolas De Jay's user avatar
3 votes
1 answer
769 views

How would you (incrementally) backup KVM VMs based on LVM storage?

I'm running a set of KVM hypervisors on LVM storage (unfortunately I can't use QCOW2, because the virtualization platform I'm using is strictly LVM-based). The virtualization platform has a very poor ...
godzillante's user avatar
0 votes
0 answers
457 views

Centos 7 - Shrink size of LVM Partition

I have a Centos 7 VM which was built from an OVA template. I have it running under Virtualbox. Issue I have is the VM has a dynamic disk of 200G - but only 4 Gb used. I want to shrink the partition to ...
Adam's user avatar
  • 11
5 votes
2 answers
4k views

Estimating the time needed for a resize2fs shrink

I have a large ext4 filesystem which I'm currently shrinking (109Tb -> 83Tb in my case), and it's taking an extremely long time (Day 5 as of asking). Currently I can see that the process is still ...
Rogue's user avatar
  • 163
0 votes
0 answers
4k views

Can't open /dev/sda1 exclusively. Mounted filesystem? [duplicate]

I'm aware that there are a lot of similar questions about this, I have tried following through the responses but nothing has helped. I'm more than happy to post more logs if needed. The end goal: Have ...
The Ref's user avatar
  • 101
0 votes
2 answers
3k views

several error for pvcreate and lvcreate

I am getting the following error pvcreate /dev/mapper/mpathd Error reading device /dev/mapper/mpathd at 0 length 512. Error reading device /dev/mapper/mpathd at 0 length 4. Error reading ...
Learner's user avatar
  • 103
2 votes
1 answer
3k views

Shrink Volume Group in LVM on linux with just one disk

I'm using LVM on a single disk and now I need to resize the partition (sda2) I'm using. I've already resized the Logical Volume but I can't manage to shrink the Volume Group. I know that vgreduce ...
Andreas Wederbrand's user avatar
9 votes
1 answer
10k views

Few questions about creating RAID0 with LVM

I'm little confused, because I found two different instructions about creating RAID0 with LVM. First resource shows way of creating RAID0 wit this pattern: lvcreate -i[num drives] -I[strip size] -...
s-kaczmarek's user avatar
1 vote
1 answer
209 views

find lvm that mounted in virtual machine

long time ago I mounted 3 lvm with same size on a virtual machine. now I want to umount one of them but I can't remember which lvm is mounded on which directory. How can find mount point of lvm in ...
haj_baba's user avatar
0 votes
2 answers
1k views

How to extend hard to an LVM without disrupting current data in CentOS

We have a CentOS server that has 2TB of disk. When we got the server for "god knows why" the partitions were like so: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T ...
Hossein Jalali's user avatar
1 vote
1 answer
4k views

(LVM) Moving data to a different physical volume within the same logical volume

I have a logical volume called storage. It contains two ~1TB physical volumes: /dev/sdc and /dev/sdd. smartctl -a /dev/sdd informs me that /dev/sdd is failing. I can still read data off it and I have ...
Emily Horsman's user avatar
0 votes
0 answers
172 views

LVM not able to add free space to Logical Volume

--- Volume group --- VG Name BKMASTWS01-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status ...
Mohammed Lokhandwala's user avatar
5 votes
5 answers
2k views

Recommended approach to build a 24-disk pooled SSD hot-set cache: RAID, LVM JBOD, etc?

I'm trying to figure out the lowest hassle way to provision 24x locally attached SSDs as a large logical volume with low-value data. I'm using them as a hot-set cache for data who's master state (...
Seth's user avatar
  • 171
5 votes
3 answers
8k views

(LVM) Cannot restore Volume Group with 1 PVs marked as missing. Couldn't find device with uuid, but the pv exists and blkid finds the same uuid

This problem is on a kvm/qemu hypervisor with CentOS 7, where we host multiple virtual machines. The Disk /dev/sda( 1918.2 GB) is a raid6 LSI MEGARAID. [root@mia3 ~]# fdisk -l Disk /dev/sda: 1918....
cdgmn's user avatar
  • 61

1
3 4
5
6 7
31