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.

0
votes
1answer
20 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 ...
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 ...
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 ...
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
0answers
59 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 ...
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
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
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
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
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 ...
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 ...
0
votes
0answers
61 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
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....
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. ( ...
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 ...
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
33 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
19 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
44 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
28 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
96 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
138 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
189 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
88 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
120 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
227 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
44 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
30 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
200 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
63 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
713 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 $(...
-1
votes
1answer
40 views

How can I find what uses the space in a LV(logical volume)?

The logical volume(aka LV), centos-home is created automatically when installing CentOS 7 by default, but I didn't use it manually. Now, I have mounted an empty directory, work to centos-home. /home/...
0
votes
0answers
36 views

How can I customise root partition (/) volume size in VM ( Centos7) creation using Packer?

I'm creating a vmware machine("type": "vmware-iso",) using packer. By default it creates /(root) partition with size appx 40 GB(not sure why? default ?). Now I am struggling to find out a way through ...
0
votes
0answers
29 views

How to use lvm directly on tmpfs?

LVM can use devices as backing store for physical volumes but not directories. tmpfs can be mounted at any mountpoint but mountpoints are always directories. How can the two be reconciled? I’m ...
-1
votes
2answers
68 views

Will moving logical volume `/` which contain `/boot` cause failure to boot?

I followed Stephen Kitt's recommendation put / and /home under LVM, instead of leaving / in its own partition. If /boot is in a logical volume for / (as by default it is), will moving the logical ...
0
votes
0answers
34 views

How can I reduce the LVM space and assigned that reduced space to existing partition?

Had this condition, I really need a space in /dev/vda1, how can I reduce the size of my LVM in /dev/mapper/vg-data-lv_data by 10G and assign those 10G of space to my /dev/vda1 partition ? If it's ...
-1
votes
2answers
112 views

How shall I create PVs, VGs an LVs on external hard drives? [closed]

I have two hard drives (250G, and 150G) taken out from laptops, and can attach them to my computer using SATA/USB adapter. (I don't have an enclosure case, and what tools do you think are the best to ...
-1
votes
1answer
43 views

Will `pvcreate` refuse to create a PV out of a partition by default, if the partition has a filesystem which is not mounted?

https://www.thegeekdiary.com/lvm-error-cant-open-devsdx-exclusively-mounted-filesystem/ says LVM will only create a pv label on a device if it is not currently in use. There are some of the other ...
-1
votes
1answer
48 views

What does pvmove do?

man pvmove says pvmove moves the allocated physical extents (PEs) on a source PV to one or more destination PVs. You can optionally specify a source LV in which case only extents used by that LV ...
2
votes
1answer
53 views

In what sense, is `lvmdiskscan` deprecated,and we should use `pvs` instead?

man lvmdiskscan says lvmdiskscan scans all SCSI, (E)IDE disks, multiple devices and a bunch of other block devices in the system looking for LVM PVs. The size reported is the real device size. ...
0
votes
1answer
42 views

What is a meta device?

man 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 loopback ...