Questions tagged [lvm]

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

2
votes
2answers
36 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 ...
0
votes
0answers
8 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 ...
-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
30 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 ...
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 ...
2
votes
1answer
37 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 ...
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
0answers
27 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 ...
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
19 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 ...
4
votes
1answer
48 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 ...
1
vote
1answer
20 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 ...
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 ...
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 ...
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 ...
0
votes
0answers
24 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
1answer
152 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
24 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
69 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 ...
2
votes
1answer
39 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 ...
0
votes
0answers
162 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 ...
0
votes
1answer
25 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
46 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....
1
vote
1answer
159 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. ( ...
0
votes
1answer
31 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 ...
0
votes
1answer
50 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
34 views

How to enlarge this partition?

Inside vmware ESXI I have a CentOS virtual machine, and I resized the virtual disk from around 30 GB to 120 GB using vmware "edit" vm menu. Then I booted using a gparted bootable ISO and resized the ...
2
votes
1answer
31 views

Resize EBS with LVM

AWS supports live EBS resize. I increased from 10G to 20G on my /dev/sdb1. Step 1: pvresize /dev/sdb1 # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 ...
1
vote
0answers
49 views

unable to create a bootable USB Debian Stretch disk using LVM with GPT partitions

I'm stuck for several days whith a issue when I try to create a bootable USB disk GPT partitonned. I would like this disk to be like a bootable "backup" disk for my live system. (In fact the system ...
0
votes
1answer
33 views

Snap RAID and LVM

I have multiple physical disks of different sizes that I wish to create one large pool of storage space on. The purpose of this large pool of space is to store a large encrypted file which is too ...
3
votes
1answer
116 views

How to merge and expand filesystem LVM encrypted LUKS

My filesystem: $ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 9.8G 0 9.8G 0% /dev tmpfs 9.8G 18M 9.8G 1% /dev/shm tmpfs ...
1
vote
0answers
182 views

Automount LVM logical volume with a udev rule and udisks2

I want to automatically mount an LVM logical volume on an external drive as soon as it is connected to the computer. The solution I choose here is to use udev to detect plug in events and udisks2 to ...
0
votes
1answer
50 views

GRUB doesn't boot copied Linux install

I copied a Linux installation from one partition to another partition on a different drive. I did this from a live usb and omitted dev, /proc and /sys. I ran update-grub from the original install, it ...
0
votes
1answer
18 views

System contains LVM volume, but no LVM tools are installed

I've inherited a system that contains a mount point at /var/lib/couchdb-backups. I presume this is volume is managed with LVM. because the disk is located at /dev/mapper/*. Yet no tools for managing ...
2
votes
0answers
253 views

Why am I being thrown into an emergency shell when booting?

I have set up Arch Linux with full-disk encryption and partitioned my system disk using LVM. I just changed the motherboard, CPU and RAM of my machine, and after enabling legacy boot and disabling ...
0
votes
0answers
21 views

Logical Volume / Group Volume / Physical Volume : blivet-gui and pvmove

I installed fedora29 workstation. I have only one 1To SATA disk (Partition table : GPT). After automatic installation, all my disk space is used. To reduce /dev/sda3 (because I want space on my disk), ...
1
vote
0answers
106 views

ls command is too slow for some directories

When I run ls command for some directories, it may take about 1.5 seconds to complete even if directory has just a few files, but for most of directories it's very fast. It seems that it's slow for ...
1
vote
1answer
172 views

What is /dev/mapper/cachedev1?

I just got my first QNAP NAS, used to work mostly with Synology before, and I'm currently trying to figure out how the system uses LVM. Mostly out of curiosity. In my specific case, it's a 2 bay NAS ...
4
votes
1answer
324 views

Should I answer yes to “Clone multiply-claimed blocks<y>?” when running e2fsck?

When running e2fsck -cck /dev/mapper/xxx I am prompted with has 487 multiply-claimed block(s), shared with 84 file(s): ... (inode #221446306, mod time Tue Feb 20 19:48:38 2018) ... (...
0
votes
0answers
61 views

What should one know when cloning a disk image that has LVM partitions on it with Clonezilla?

I'm trying to create an image backup of a drive that contains an lvm partition, is there anything I should know before I do this? I've read that it fails a lot when attempting to clone a disk with an ...
0
votes
1answer
36 views

How to expand the root volume after attach new volume?

I create new virtual machine in OpenStack Project. After I want to add size free space in VM. I added new Volume and attached to VM. After start VM I tryed to check status HDD. fdisk -l Disk /dev/...
0
votes
0answers
336 views

Workaround for shrinking a XFS CentOS root partition

I run a cloud VPS with Centos 7 installed. Unfortunately, I could not customize disk partitions during installation so now I have no free space in the volume group automatically created because it is ...
0
votes
1answer
84 views

Why some of my LVM filesystems use /dev/dm paths instead of /dev/mapper/ paths in df output?

All my filesystems are hosted by LVM logical volumes : $ lsblk -l | grep lvm vids_VG-iso (dm-11) 252:11 0 32G 0 lvm vids_VG-vids (dm-12) 252:12 0 586,6G 0 lvm vids_VG-vids ...
1
vote
1answer
887 views

Shutdown and reboot hang

9 times out of 10 my computer would take ≅ 2 minutes to shutdown or reboot. I tried many things like adding systemd and/or shutdown to initcpio hooks, but no luck. reboot -f never hangs so I followed ...
0
votes
0answers
26 views

Finding target mount location of LVM logical volume

Currently I use the following script to get the target mount point of a specific Logical Volume. df $(lvs --noheadings -o path VG_NAME/lv_name) | tail -1 | awk '{print $1, $NF}' findmnt -l | grep $(...