Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lvm]

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

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
21 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
17 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
14 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
35 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
0answers
62 views
+50

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 ...
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 ...
7
votes
4answers
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 ...
4
votes
1answer
35 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
16 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
1k 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 ...
1
vote
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
76 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
881 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
91 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 ...
0
votes
0answers
19 views

Encrypted /boot without UEFI

I have only one, LUKS-encrypted, partition. Is it possible to boot system from /boot on this partition? I don't want to use UEFI to do this. EDIT I'm using GRUB. I have uncommented ...
0
votes
0answers
21 views

LVM partitioning on multiple disks using preseed script

I want to write preseed script that makes a logical volume from a volume group consisting of multiple disks, and mounts it to rootFS. I know it's easy to (lvm)partition and mount in case of using ...
2
votes
1answer
880 views

Lost space in LVM

LVM Hey. First of all I want to say excuse me for my bad English. I a problem after installing CentOS 7 with LVM. Some space lost after problem with LVM configuration. I tried to add some logical ...
2
votes
1answer
62 views

How to replace faulty disk in software raid using lvm

one of the SuSE 12 LinuxServers has reported disk failure. Fortunately the Database Server has Software Raid hence the system is still up and running. But as recommended, we would like to replace the ...
1
vote
2answers
2k views

FDISK doesn't show any partitions for a disk, trying to resize an LVM disk, running CentOS

This particular system is acting peculiar and i've not seen this before. System is running CentOS and is a VM on VMWare. I increased the space on the drive from 100GB to 130GB. When I went in to the ...
-3
votes
2answers
308 views

We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition?

Manpage of pvcreate says pvcreate initializes a PV so that it is recognized as belonging to LVM, and allows the PV to be used in a VG. A PV can be a disk partition, whole disk, meta device, or ...
3
votes
1answer
3k views

Create Logical Volume with non-LVM partition

I have seen everywhere it is mentioned to create a partition of type LVM (8e) and then create logical volume with lvcreate. My question is, what if I create logical volume using lvcreate with non-...
2
votes
1answer
32 views

initrd and initramfs confusions

I read from arch wiki: In case your root filesystem is on LVM, you will need to enable the appropriate mkinitcpio hooks, otherwise your system might not boot. However, both my initrd and ...
5
votes
1answer
2k views

A stop job is running for LVM

I use full disk encryption which uses an LVM. It uses like this in lsblk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda ...
0
votes
0answers
62 views

State of LVM raid compared to mdadm

LVM and mdadm / dmraid are both offering software RAID functionality on Linux. This is pretty much a follow-up post to this question from 2014. Back then, @derobert recommends to prefer mdadm over LVM ...
1
vote
1answer
403 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. ...
0
votes
1answer
24 views

Linux LVM stripe gives the same amount of free space vs. Linear? [closed]

Linux LVM stripe gives the same amount of free space vs. Linear?
0
votes
1answer
36 views

How to mount a partition inside encrypted lvm inside a disk image?

On my previous computer, I had my / /home and swap inside an encrypted lvm, and outside the lvm I had the /boot and /boot/efi. I then created an image. I think I did like this: dd if=/dev/sda of=lvm....
0
votes
1answer
29 views

lvconvert between different volumegroups - LVM

There are 2 lvs which are in the VG Raid. This two lvs should be an LVM Mirror. This 2 lvs should be mirrored in another VG called non-Raid. sudo vgs VG #PV #LV #SN Attr VSize VFree ...
3
votes
1answer
1k views

Debian Jessie hanging on boot

After installing kernel 4.6, we booted a development server with Debian 8.5 Jessie. It does not go past the error message "Setting up LVM Volume Groups". The VM has Debian 8, with backports ...
3
votes
1answer
1k views

Booting to an encrypted Debian install, which has /boot on LVM-on-LUKS

I have a setup with a grub2 bootloader, and the rest of the system on an encrypted partition (LVM-on-LUKS). I have two OSes installed inside of the LUKS container, Kali Sana and Debian 8, as well as a ...
0
votes
1answer
37 views

Proper way to activate LVM partition on multipath during the boot

I have Debian 9 with successfully configured iSCSI and multipath: # multipath -ll /dev/mapper/mpathb mpathb (222c60001556480c6) dm-2 Promise,Vess R2600xi size=10T features='1 ...
1
vote
1answer
6k views

Is there any way to do a CentOS minimal install without LVM / ext4?

I'm trying to benchmark the disk throughput of a base CentOS install on my lab XenServer setup, and am installing from the CentOS 6.4 minimal CD. However, the install ISO boots into a text-mode ...
2
votes
2answers
2k views

How do I calculate Linux physical volume and volume group metadata overhead?

I am trying to install a CentOS 7.4 system using a kickstart file and have received the following error: 'new lv is too large to fit in free space' There is an additional message that 752.85MiB is ...
21
votes
4answers
33k views

What is the best practice for adding disks in LVM

According to the Linux manpages you can add raw disks as well as partitions to a volume group. In other documentation (RedHat, CentOS or openSUSE), all examples refer to adding partitions to the VG ...
1
vote
1answer
3k views

Ubuntu 16.04 stops booting, it has LVM and LUKS encryption configured, superblock restore already tried

Suddenly my Ubuntu 16.04 drops me into an initramfs prompt like this: BusyBox v.1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for list of built-in commands. (initramfs) ...
2
votes
1answer
928 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 ...
2
votes
2answers
2k views

Adding a second hard disk CentOS

I'm running CentOS on my VMware server console, and I want to know how to make a second virtual hard disk on which I can expand the size of the primary logical volume AND and a third to hold two ...
4
votes
1answer
13k views

LVM2 can not wake up suspended logical volume

Read my story below. I'm using LVM2 with following information: Scan for VG: # vgs VG #PV #LV #SN Attr VSize VFree unix 1 1 0 wz--n- 115.00g 45.00g Scan for LV # lvs LV ...