Questions tagged [lvm]

Logical Volume Management provides storage abstraction, a generalization of disk partitioning.

1
vote
2answers
2k views

KVM host, add LV to guest

I have a KVM host with a software RAID 10 array. The software RAID 10 array is a PV on the host and there's a single VG. I have a couple of LVs used at the host level (a datastore for KVM guest .img ...
2
votes
4answers
5k views

Clonezilla clone won't boot without reinstalling grub2

I've taken a clone of a machine with the following partitions: Device Type Label /dev/sda /dev/sda1 Ext4 boot /dev/sda2 Linux LVM ...
2
votes
2answers
34 views

Debian btrfs filesystem shows a total of zero inodes total, zero used, zero free

This Debian server was running just fine until a week or so ago. Now it does not allow files to be allocated, despite there still being room. The root volume is configured with LVM. Kernel is ...
1
vote
1answer
1k views

Mounting synology disks in ubuntu

I have some files on synology disk that I would like to recover with extundelete. I have mounted the raid1 setup. So on the disk is two raid storages (md2 and md3) and they are connected to one with ...
1
vote
2answers
916 views

fingerprint-gui on Linux Mint 19 “Tara” cinnamon works but not on first boot or in software center

On my Lenovo Thinkpad X1 Carbon 3rd. Gen., fingerprint-gui works fine when locking the screen or requesting sudo in terminal. It doesn't work when I freshly boot up the system at first login, and it ...
0
votes
0answers
7 views

LVM Volume Active after Centos 7 reboot - but LVS, PVS etc etc show no output

I have a Centos 7 system that boots from a 500GB SATA drive I have a seperate RAID6 Array that is presented to LVM as a PV and then into a VG and a LV. This has been working fine for ages. I ...
0
votes
1answer
2k views

How to shrink a physical volume?

I have a physical volume on a partition which extends across the whole disk, say /dev/sda1 using 100% of /dev/sda. Now I need to shrink it to create /dev/sda2. A logical volume actually uses ~50% of ...
-2
votes
1answer
23 views

How to clean and reboot HDDs pulled from LVM groups (showing bad super blocks)?

I have 2x 4TB HDDs that were put in an LVM group last year, ended up not really using this server due to huge issues around installing nextcloud. At some point it started giving me boot problems so I ...
1
vote
1answer
28 views

LVM - 2 PVs in a disk without partitioning

It is possible to create another PV if the backing disk has free space which is not used by first PV? [root@bender green]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda ...
1
vote
2answers
28 views

Setting up RAID1 with an active physical volume (Debian 9 stretch)

I've been trying to follow the following guide to set up RAID1: https://www.howtoforge.com/set-up-raid1-on-a-running-lvm-system-debian-etch I currently have two 6TB hard drives, I created a physical ...
6
votes
3answers
20k views

Removing /home LVM and merging in to /

[root@host.com ~]# pvdisplay -s Device "/dev/sda2" has a capacity of 0 [root@host.com ~]# vgdisplay -s ...
8
votes
3answers
28k views

how to check the filesystem type of a logical volume

How to check the filesystem type of a logical volume using lvm or any other utility? For example, if my logical volume is /dev/vg1/lv1 then how to check its filesystem type? I have made a ext4 ...
3
votes
1answer
1k views

how to clone images of drives with LUKS+LVM2?

I have 2 Debian boxes which I need to upgrade. In the past, before upgrading any box, I have used Clonezilla to create an image of each of the box's harddrives for use as disaster backup, in case ...
5
votes
2answers
856 views

Cannot attach cache device to backing device

I have an LVM and I wanted to use bcache to cache one of its LVs. (Yes, I know I could use lvmcache, but I was having issues booting and I gave up using it.) First, I used blocks to convert the LV ...
1
vote
0answers
23 views

Converting LV to thin pool: VG name mismatch

I'm trying to create a thin pool for docker as i'm changing the root location of docker and i had to delete previous thin pool. Info about situation: vgs VG #PV #LV #SN Attr VSize VFree cah ...
1
vote
1answer
954 views

How to install Debian on encrypted LVM partition?

I don't want to use Guided-use entire disk and set up encrypted LVM because I need change encryption type and I don't need /swap I tried to partition like this But it types You have selected the ...
2
votes
1answer
36 views

LVM Shrink to remove a device

I have Centos 7 I have a 7 drive RAID6 Array created using mdadm. (This is composed on WD 4TB Red drives) I have setup the RAID array as a LVM PV - all this has been working well for ages. I have ...
0
votes
1answer
24 views

How to extend lv without loss of data on other lvs within partition [duplicate]

I want to extend my logical volume mounted to /home: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom xvda 202:0 ...
1
vote
1answer
421 views

grub2 lvm2 raid1 /boot

Is it possible to boot from a system where /boot is located within an lvm2 raid1 partition. I've tried a variety of configurations, but I have yet to discover how to do it. I am using two 2TB disks. ...
2
votes
1answer
22 views

Extend Luks encrypted partition without using luksOpen command

I just tried to increase encrypted LVM partition. The proceduce is: Extend the partition with fdisk -> Resize PV -> Resize LV -> Increase size file system. Detail steps in https://www.thegeekdiary....
0
votes
1answer
1k views

grub2-install can't find lvm device

I am in the process of moving from Arch to Fedora and simplifying my partitioning scheme in the process (by using LVMs raid options instead of layering it on an mdadm array). I have this LVM scheme: $...
2
votes
2answers
99 views

NVMe disk shows 80% io utilization, partitions show 0% io utilization

I have a CentOS 7 server (kernel 3.10.0-957.12.1.el7.x86_64) with 2 NVMe disks with the following setup: # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 477G 0 ...
4
votes
1answer
2k views

Convert a single-drive LVM volume to a striped volume across 3 drives

On my server using LVM, I have a simple linear LV on a single drive (PV). Now, I added 2 more (same size) drives (PVs) to the server. I want to convert my existing linear LV to a striped LV (RAID0 ...
2
votes
1answer
935 views

Centos 7 Managing free space from CLI

I have a question regarding managing free or "unallocated" space in an LVM setup on CentOS. What i need to do is make /var bigger, to accommodate some additional VM's that i am creating. I would ...
7
votes
5answers
11k views

/dev/md127 refuses to stop. No open files

So I'm trying to stop /dev/md127 on my Ubuntu 12.10 box. It was set up as RAID1, but I'm trying to move everything (well, rename) to md0. I read that renaming isn't possible, so I'm trying to remove ...
0
votes
0answers
26 views

How to configure LVM on my Ubuntu 18.04?

I need to configure physical volumes and LVM on my Ubuntu desktop. I worked with my virtual boxes, could not upgrade them due to insufficient space. My lsblk lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
3
votes
1answer
2k views

lvmetad hangs on startup

I got a machine running Arch Linux that have a problem on boot. It hangs for 90s waiting for pvscan on block devices, and then give up. (actually, the pvscan process are still stuck , and any lvm ...
0
votes
1answer
34 views

Can I temporarily mount a partitioned hard drive while using LVM?

I currently have a hard drive with a boot partition and an extended partition; the extended partition contains /, swap, and /home partitions, as shown in the screenshot below: I recently acquired a ...
2
votes
2answers
18 views

LVM Removing a drive - says not enough extents

I have the following configuration: PV VG Fmt Attr PSize PFree Used /dev/sda3 fedora00 lvm2 a-- 222.37g 0 222.37g /dev/sdb1 vg0 lvm2 a-- <5.46t 0 &...
1
vote
0answers
23 views

Broken LVM Physical volume after resizing partition

I bought a new larger SSD to replace my old one. The old one has 3 partitions, 2 for booting and a third (last) one with LVM2 on LUKS. I did the following to migrate: dd the contents of the old drive ...
0
votes
1answer
14 views

Encrypted LVM not Booting When Demount unaffected HDD

I have a strange problem I don't understand. I have a Kubuntu 19.04 installation that has a guided install of an encrypted LVM root. lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
0
votes
1answer
39 views

LVM + use the space of the OS in order to increase the partition

from the lsblk I have the following output NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 300G 0 disk ├─sda1 ...
2
votes
1answer
2k views

LVM Will Not Mount RW

I have an LVM that I want to mount up, but for whatever reason I can't get it to mount RW. It will only mount RO. Here is the PV. [root@SEAScoutDB01 mnt]# pvdisplay /dev/sda2 "/dev/sda2" is a new ...
4
votes
1answer
47 views

Shrink MDADM Raid 5 containing LVM

The plan: I've been growing a Raid5 array in a personal server for some years, and the time has come to move to something more suited to this application. I've accumulated 6x 8tb drives containing ...
2
votes
1answer
2k views

GRUB doesn't find /boot in LVM

My system was installed with the Antergos installer and it runs encrypted GRUB. This works fine, just have to insert decryption key twice. Then I added LVM and created three LVM volumes, boot root ...
12
votes
3answers
24k views

Why it is not recommended to put boot partition on lvm?

I read somewhere that it is not recommended to put boot partition on lvm based partition. But, I'm doing it anyway. Then the only problem I've faced on this is sometimes when I install a new Linux ...
0
votes
2answers
2k views

Configure separated GRUB to run Linux from LVM ddrescued device

I got new 120GB SSD and I want to restore my Linux Mint from my ddrescued /dev/mapper/mint--vg-root I splited SSD to 500MB sdb1 Ext4 and 119GB sdb2 LVM as it was before crash. Then I created mint-vg ...
1
vote
1answer
19 views

Restore files from vmdk with logical volumes

I need to restore some files from some vmdk that were mounted on a VM with some logical volumes. Is it possible to use a new VM booted from a CentOS iso and mount these vmdk in order to obtain the ...
2
votes
2answers
2k views

How do I configure grub to boot another linux distribution off an lvm partition?

(I no longer have this setup so I cannot test new answers, sorry. I had to switch computers and am now only using arch; I am leaving the question as it is though since I'd love to know a solution if ...
2
votes
2answers
2k views

What would cause the system to report the following warning at boot: failed to connect to lvmetad, falling back to scanning?

I have just installed Kali linux, with LVM for volume management. It boots ok, but seems to throw up a warning about not being about to connect to lvmetad. This question isn't just related to Kali ...
3
votes
2answers
8k views

Problem with grub-mkconfig in Arch Linux installation: grub-mkconfig fails to connect to lvmetad

I've been having a problem with a re-installation of arch on a machine that's dual booted with windows 10. For various unrelated reasons, I decided to back up everything in my old arch installation ...
2
votes
2answers
1k views

How to boot gentoo with systemd, UEFI, lvm2 rootfs with systemd EFI boot?

I've installed Arch Linux with that setup. And now, I want to have dual boot with gentoo. But, when booting gentoo, the root UUID (on LVM) not detected. My partition scheme is like this: (lsblk -f) ...
3
votes
1answer
2k views

Corrupt LVM metadata header after kernel update

I'm running Debian Wheezy (Linux wheezy3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux) as an encrypted LVM with hardware raid 1 (Adaptec 6405E) on a supermicro server. I was encounting ...
1
vote
1answer
152 views

Change PTTYPE and UUID of an fdisk created partition

I've got two systems. On one, I decided to try and increase the virtual disk /dev/sda. So I delete the partition using fdisk and recreate it with a larger end size but identical start location. ( ...
1
vote
1answer
2k views

Understanding iostat with Linux software RAID

I'm trying to understand what I see in iostat, specifically the differences between the output for md and sd devices. I have a couple of quite large Centos Linux servers, each with E3-1230 CPU, 16 GB ...
1
vote
1answer
904 views

bcache not working as expected with ramdisk as cache device

I was trying out bcache but i don't have an SSD so wanted to use free memory as a substitute. As ramdisk is listed in /proc/devices as block device i assumed this would work OK but with below simple ...
0
votes
1answer
12 views

How to guarantee logical volumes will fit

I am throwing together a script to do lvm actions and I have the following scenario: >blockdev --getsize64 /dev/sdb 2147483648 2147483648 / 1024 / 1024 = 2048M >pvs PV VG Fmt Attr ...
0
votes
0answers
16 views

Move a mountpoint into a new lv without data loss RHEL6

RHEL6. VMware VM. I want to move /data and all the files it contains into a new lv in existing vg. Currently: /data is mapped directly onto sdc1 and is 100% full /dev/sdc1 315G 299G ...
1
vote
2answers
6k views

System unbootable - grub error: disk lvmid not found

I'm gettind this error at boot: grub error: disk 'lvid/caoMWu-o417-GMgh-6vFj-1qrw-iJMi-ypwm0f/Z2eotR-N0HN-nrol-3hUd-odMB-GzHy-4PrsnL' not found. Entering rescue mode.. I can't even get the ...
0
votes
1answer
144 views

How to recover grub with LUKS encrypted LVM partitions after motherboard replaced?

I had dualboot Windows 10 and Kali Linux x64 (Linux distribution based on Debian 9 x64) on my Lenovo X280 notebook with EFI bios. Windows 10 uses BitLocker with password (not TPM). Linux uses LUKS ...