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

learn more… | top users | synonyms

11
votes
1answer
1k views

Why are there two different values for the size of a drive and how to reconcile them with device-mapper and LVM?

I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
3
votes
1answer
2k views

How do I resolve an error when booting, “Couldn't find device with UUID…”

I have a RHEL 6 system, running on a VMWare machine. The admin of the VM server added a second RAID volume to the server, which my RHEL system does not use. Now, when I boot the RHEL system, I get a ...
2
votes
1answer
195 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 ...
0
votes
1answer
19 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 ...
1
vote
1answer
133 views

Unable to boot after installing after systemd update

First it repeats this error many times: Lvmetad is not active yet, using direct activation during sysinit Volume group "mint-vg"not found Cannot process volume group mint-vg Than it shows: Gave up ...
2
votes
1answer
42 views

What is the best way to merge two LVM setups on separate disks?

So the deal is that I have: /dev/sda: Existing 1TB HDD, Fedora 24, with a PG, VG, and LVs for /home, /, and swap (hereafter referred to as lv_home, lv_root, and lv_swap). /dev/sdb: Brand new 120 GB ...
0
votes
1answer
18 views

LVM for backup and restore

Trying to wrap my head around some concepts. I have installed Ubuntu and tweaked it considerably. The reason I was t to use LVM is to capture some advantages I had with windows and VM along with ...
0
votes
1answer
27 views

pvs not showing correct available space

Recently installed RHEL7 on a PowerEdge R320 with the following drives: 2 x 300GB sas 15k 2 x 1TB sas 7.2k When setting up LVM during installation I purposefully left over 100gb free in case I ...
0
votes
1answer
107 views

unable to boot with GRUB after installing arch-linux

i finished to install the Arch linuks with lvm on Luks and rebooted after configuring the GRUB. when i boot to the USB GRUB i get: i have edited this page and fixed the UUID number to the sda1 ...
2
votes
1answer
37 views

Is this Worth Converting to LVM and Separate /home mount?

I'm wondering a few things: Background I've got a machine with 2 HDDs (Each 500GB SATA). /dev/sda contains nothing but an infrequently used Windows10 for gaming. /dev/sdb contains my current ...
3
votes
2answers
99 views

How to reduce LVM for root partition?

I am trying to reduce the space dedicated to root LVM since I don't really need it and I am having a few doubts. Below is the output for lvdisplay: # lvdisplay --- Logical volume --- LV Path ...
1
vote
2answers
40 views

Extend virtual hard disk for CentOS

I have extended a thick virtual hard disk to 80 GB under vSphere for a CentOS virtual server. I need to extend the logical volume to maximum allowed. Can someone please assist? The physical sda2 is ...
3
votes
1answer
26 views

Is it possible to undo LVM pvmove?

I'm about to convert my 2x3TB LVM setup to use software RAID1 with 2 additional drives. I'm just wondering if the following will be safe and if there is a way to recover at various steps. So I have /...
14
votes
1answer
6k views

How to shrink root filesystem without booting a livecd

I find myself needing to rearrange a system's partitions to move data previously under the root filesystem into dedicated mount points. The volumes are all in LVM, so this is relatively easy: create ...
2
votes
1answer
867 views

How to reduce LVM size and increase one existing partition's size

I want to add 7 GB space to one of my existing partitions (/dev/xvde1), and reduce an LVM partition by 7 GB (/dev/mapper/vg--home-lv--home). My total disk size is 40 GB. Detail of partitions is as ...
6
votes
2answers
4k views

Resize a btrfs partition inside a logical LVM volume

Following derobert's trick to resize the underlying filesystem when resizing a LVM volume: lvm> lvextend -r -l +100%FREE /dev/VolGroup00/lvolhome fsck from util-linux 2.25.2 /sbin/fsck.btrfs: ...
0
votes
0answers
28 views

Booting via grub (Ubuntu) with encrypted LVM

I've been obliged to install Ubuntu with ~everything encrypted (not just the home partition). Machine is a laptop with a single drive (/dev/sda) which I've partitioned thus: /dev/sda1 = FAT32, ...
1
vote
0answers
32 views

LVM mounts deadlocking the kernel

I am running a Linux system that mounts a lot of LVM disk images, and indexes the contents of the filesystem. Frequently (about once a day), the whole system deadlocks as it tries to mount an LVM ...
3
votes
1answer
422 views

kernel update - WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!

I just updated one of our debian jessie servers and the kernel was updated, nothing special, as we have done this many times. But the first time there were some warnings when the grub configuration ...
0
votes
1answer
19 views

Segmentation fault when running lvcreate

I'm trying to use a minimal buildroot based linux system live cd, and I need to do some partitioning, preferably using LVM. But LVM doesn't seem to work. I get segmenetation fault when running ...
0
votes
1answer
35 views

How to migrate to LVM?

There is a machine: [root@SERVER ~]# df -mP Filesystem 1048576-blocks Used Available Capacity Mounted on /dev/sda2 124685 7462 110897 7% / tmpfs ...
4
votes
2answers
3k views

How to stop caching a LVM partition?

I currently have LVM-cache set up on my Ubuntu install as described in https://rwmj.wordpress.com/2014/05/22/using-lvms-new-cache-feature/. (I did have to install some of the vivid/proposed packages ...
1
vote
1answer
1k views

Logical Volumes fails to mount with dmsetup and no table present

I am stuck with all the volumes on a volume group unable to mount, after a yum update on a CentOS 5.11. device-mapper upgraded from 1.02.24-1 to 1.02.67-2 The machine boots correctly from /dev/...
1
vote
3answers
82 views

Create Partition (Standard partition vs LVM physical volume) in CentOS installation

All. Forgive me I not familiar with the Linux. I am trying to install CentOS in the VMWare. As I knew, Linux can only create three kinds of partitions. they are primary, extended, and logical, For ...
0
votes
0answers
20 views

How can i make incremental backup?

I have a linux based HOST system with KVM. And a GUEST system using Windows Server 2012R2 on a lvm partition. How i can make an incremental backup of this lvm set? Or better yet, how can I make a ...
4
votes
1answer
440 views

Why does activation of LVM partition with large snapshot take a long time?

After creating a large snapshot (I assume it drifted about 30GB from the original) I noticed that vgchange -ay took noticeable longer (to the point I thought computer hanged). What does the ...
0
votes
2answers
2k views

vgdisplay shows 0 free PE/size

I'm trying to configure a CentOS HA system with 2 nodes, with DRBD for replicated storage. I'm following the "Clusters from Scratch" guide, and at the DRBD portion, I need to create a partition for ...
1
vote
1answer
110 views

Automatic unlock LVM partitions with a Key LUKS dm-crypt

I'm trying to make an automatic unlock of other partitions, I have 9 Logical volumes including root, and I know root LVM will unlock manually true password to have a key decrypted. My goal is unlock ...
0
votes
1answer
68 views

How do I create a dd IMAGE from LVM for recovery purposes [duplicate]

How do I backup a LVM partition to an image for recovery purposes? I am trying to run dd on /dev/sda2, but it crashes after ca 8 hours, at around 380G sudo lvmdiskscan /dev/centos/swap [ 3....
0
votes
1answer
318 views

Can't initialize physical volume of volume group without -ff

Can't initialize physical volume "/dev/sda3" of volume group "stark" without -ff I created physical volume with pvcreate followed by vgcreate and lvcreate successfully. Later on, I deleted in ...
0
votes
0answers
17 views

lvm data lost risk

Recently I bought server for my files , I have 4x6TB hard drives : root@Debian-85-64bit-minimal ~ # lvmdiskscan -l WARNING: only considering LVM devices /dev/sda2 [ 5.46 TiB] LVM ...
0
votes
0answers
26 views

Edit grub timeout in encrypted lvm setups with /boot partition?

My old setup was LVM with Ubuntu 16.04. Disk had a GPT table with a BIOS-grub and a main partition. I was able to change the grub timeout by editing /etc/default/grub, commenting out the two ...
0
votes
1answer
23 views

Restore unencrypted LVM2 logical volumes to LVM on LUKS setup?

I have an unencrypted Ubuntu 16.04 setup using LVM2. I'd like to 'port' this into an encrypted setup on the same computer and disk, which would save me the hassle of reinstalling all the apps and ...
0
votes
0answers
15 views

Any issues with restoring from a setup with GPT and BIOS-grub partition to one with MBR and /boot partition?

I had a non-nencrypted Ubuntu 16.04 setup using LVM2. I 'ported' this over to a fresh encrypted lvm setup on the same computer and disk, which saved me the hassle of reinstalling all the apps and ...
0
votes
1answer
1k 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 ...
1
vote
1answer
39 views

Purpose of Physical Extents

Today in class we are learning about logical volume management and I'm trying to find out what the actual purpose of physical extents are. I know what they are defined as and I understand how to do ...
0
votes
0answers
24 views

drive geometry error with vfat

I'm curious what this error means: [root@server1 ~]# mkfs -t vfat /dev/example mkfs.fat 3.0.20 (12 Jun 2013) unable to get drive geometry, using default 255/63 I was attempting to make a file ...
7
votes
2answers
7k 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 ...
1
vote
0answers
15 views

Encrypt partition and LV afterwards

What I want to do I am using Kubuntu 14.4 and like to use kvpm for my LVM-needs. I have a partition and a Logical Volume. On both is data. I would like to encrypt each of those. https://wiki....
0
votes
1answer
10 views

General ratio regarding FS <-> LV

Based on New FS size differs from LV size We need a 4 GByte sized FS on top of an LV. OS: RHEL6, 64bit. Question: How big LV is needed to have a 4096 MByte sized FS on it? Are there any percentages ...
0
votes
1answer
19 views

Convert free space LVM to ext

Can I convert Free space in a LVM partition to a ext3 partition? If I run pvs: PV VG Fmt Attr PSize PFree /dev/sda3 ubuntu-vg lvm2 a-- 297,11g 30,02g So I have 30GB unused, ...
1
vote
0answers
81 views

How to solve File-based locking initialisation failed.

Am on a CentOS-Minimal Virtual Machine, i had accidentally deleted a hard disk that contained a Volume Group (LVM). After rebooting i got an error saying " File-based locking initialisation failed". ...
1
vote
1answer
72 views

LVM: How to clone thin-volume

I'd like to know how it's possible using the lvm cli tool to clone an existing lvm thin volume, creating another thin-volume with the same contents (but possibly a larger size) as the original one. ...
0
votes
0answers
49 views

How do I repair an ext3 filesystem (superblock)?

Disk setup (2) 300GB HDDs in RAID 1 /dev/sda1 - ext3 /boot (1GB) /dev/sda2 - swap swap (20GB) /dev/sda3 - LVM (179GB) (2) 500GB HDDS in RAID 1 /dev/sdb1 - LVM (500GB) LVM - System (...
4
votes
1answer
13k views

How to Format an LVM partition [closed]

I need to format a partition. But I have one LVM on my machine (VirtualBox) that is composed of two different two partitions of two Virtual HDD's (sdb5 and sdc5) fdisk output df output
3
votes
2answers
2k views

LVM volume is inactive after reboot of CentOS

It seems there are many people with similar problems, yet I've found nothing that could help me. I ask here in hopes that someone might have a good idea. I've reinstalled a Linux server from CentOS 6 ...
0
votes
0answers
14 views

Unable to run LVM on CentOS 6 via VNC Viewer

Need to run Logical Volume Manager on my CentOS 6 vm using VNC Viewer but when I double click on it, nothing happens. What I did is to go to System > Administrator > Logical Volume Manager Am I ...
0
votes
1answer
26 views

Create a new volume on free diskspace from inside Dom0

I have a server with two HDDs (/dev/sda and sdb) with 1.8TB each. On both disks, there is a 500MB Swap and an 800GB partition, that are in a raid md0 and md1: pvs PV VG Fmt Attr PSize ...
1
vote
1answer
2k views

how to make LVMs at available boot? kernel panic - dracut cannot find logical volumes after kernel upgrade in CentOS 6.6

I have a centoOS 6.6 vmware vm that I ran yum update on which upgraded the kernel after reboot, I started getting this: dracut Warning: No root device "block:/dev/vg_myhost/lv_root" found dracut ...
0
votes
0answers
22 views

How to restore lvm partition without config file?

Today I did update my ubuntu server. The device structure is looks like to below 1) sda1 # new os 2) sdb1 # origin /boot partition 3) sdb2 # origin swap partition 4) sdb3 # origin ...