Questions tagged [lvm]

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

4
votes
2answers
87 views

How to better understand LVM and adding disks?

I am playing around with understanding LVM and adding disks to a Linux box. I added a disk and then ran what I thought were commands to add this disk to the box, but I think I messed up. Did I ...
1
vote
1answer
196 views

PVS output not showing drive

I had created physical volume earlier i.e. /backup, /ndasdb, /processor, /latro. Don't know what exactly happened, but /ndasdb is not showing in any of this output result: Pvdisplay, Vgdisplay, and ...
3
votes
0answers
134 views

Backup: How to mirror/clone LVM LVs (or VGs) on demand?

So far, I have a semi-automated backup approach for the whole system installed in different LVs, using LVM (CoW) snapshots (which can be created upon boot to avoid data corruption). That is, if I ...
0
votes
0answers
220 views

Can't mount second hdd due to error /dev/mapper/backup--mint--vg-root: can't read superblock

I'm trying to mount a second hdd. I don't know where I'm going wrong. First, I set up a partition with cryptsetup: sudo cryptsetup open /dev/sdb5 backup sudo vgdisplay I got two identical vg names, ...
1
vote
2answers
89 views

Move partition from LVM to physical drive

In the process of external HDD recovery, I backed-up the whole disk to LVM LV, run fsck and resize2fs to fit into new drive (both external USB HDD, but the newer one is few MB smaller). I used ...
2
votes
0answers
1k views

Failing to boot Ubuntu 18.04 - “attempt to read or write outside of 'hd0'”

I am having issues booting and end up in a grub rescue shell. error: attempt to read or write outside of disk 'hd0'. Entering rescue mode... grub rescue> Searching around the web, i have found ...
0
votes
1answer
107 views

Encrypting data written to an LVM snapshot with a different key

I have the following requirements: I have an LVM volume A, encrypted with key K1 using LUKS. I need to make a copy-on-write snapshot of A such that Writes to A will continue to be encrypted under K1 ...
0
votes
0answers
85 views

Create ext4 partition on LVM

I have a 2TB volume (RAID 5) on a Linux Mint . I use Dropbox, which has stopped supporting any file type on Linux Mint 18.1 system. I would like to carve out a partition formatted in a manner Dropbox ...
0
votes
1answer
1k views

lvcreate - Volume group has insufficient free space

I get this when I try to create a logical volume: Volume group "MorArchy" has insufficient free space (511 extents): 19456 required. I'm using this command: lvcreate -L 76G -n cryptroot MorArchy I'...
1
vote
1answer
30 views

Repartition a non LVM system with LVM

I have installed my system without LVM but I need it now. How can I repartition my disk with LVM and keep all my system files? I know this would need backup, but I have never used it yet and don't ...
1
vote
0answers
39 views

Live resize of root partition in case of “LUKS on LVM” [duplicate]

Having read about the pros and cons of "LUKS on LVM" vs "LVM on LUKS" I came to the conclusion that "LUKS on LVM" does not provide live resize. But why? And is this even true as of todays ...
1
vote
2answers
2k views

LVM: PV missing after reboot

I have a server (Ubuntu 18.04) with a number of LVM Logical Volumes. After a routine reboot one of them does not come back. After some investigation this is where I am at: the physical disk is an ...
1
vote
2answers
928 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 ...
1
vote
1answer
508 views

additional LUKS partition does not mount on boot

I am attempting to add a new LUKS encrypted hard drive to my 18.04 setup. I already have 3 drives (2 of which are RAID) that have LUKS and they work fine - when my computer boots, I get prompted to ...
0
votes
1answer
140 views

Debian Stretch LVM new partiton or volume **Now ssl keys fragged** gui won't load

I have recently purchased a used Dell T710, I installed Debian Stretch 9.6 and proxmox packages. I intend to run some vms. I installed using LVM and let the installer do its thing. I am running a ...
1
vote
1answer
227 views

how to resize / lvm partition

I have a debian linux with this output of df command: root@debian:~# df -Th Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 973M 0 ...
0
votes
1answer
235 views

RHEL 8 Beta unable to install under KVM [closed]

I have KVM installed under Centos 7.5, but I am unable to install RHEL 8 as a guest. I have downloaded the ISO image and provided the path. Its asking me for a installation source, as shown in below ...
0
votes
1answer
37 views

LVM Mount Point issue

I have a LVM volume named /dev/mapper/centos-root, centos being the volume group, root being a logical volume. It has the fstab entry below /dev/mapper/centos-root / xfs defaults 0 0 I have created ...
0
votes
1answer
176 views

Reformat lvm to ext4 and change mountpoint

I need the space of sda on either / or a specific mount like /data. How can I repartition / change the current layout to match the needed desire? sda 8:0 0 2.7T 0 disk ├...
-2
votes
1answer
36 views

How to increase size on root.union partition

I am trying to update 3B image to run on 3B+ but it needs to install packages worth 480MBs. They are to be installed on /var/cache/apt but I only have about 360MBs free on that partition. You can have ...
0
votes
1answer
212 views

Resize partition without using LVM

I have Ubuntu 16.04 installed on remote server and I have requested another 20GB for my /dev/vda2 partition (now its 20GB), so the total size would be 40GB. Since vda2 is full of very valuable data (...
0
votes
1answer
114 views

How large should an LVM snapshot be?

Preface to my Situation and Motivation I am trying to familiarize myself with Ubuntu Server edition as I set up a home server. I am setting up a small virtual network with a hypervisor for ...
0
votes
0answers
37 views

Multibooting with LVM

Can Linux and/or Unix operating systems be booted from logical volumes inside of an LVM partition? Can they reside together in the same volume group, i.e., multiple Linux and BSD distros, each in ...
0
votes
1answer
125 views

Partitioning existing LVM physical volume and Create new LVM physical volume

My goal is to create new LVM physical volume named sda3. I installed the Centos 7.5 in such partitioning: Device Boot Start End Blocks Id System /dev/sda1 * 2048 ...
0
votes
0answers
202 views

I/O queue on LVM device v.s. I/O queue on underlying device(s)

dm-1 / alan_dell_2016-swap is an LVM Logical Volume, which is physically stored on partition sda7 of the device sda. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda ...
2
votes
0answers
93 views

recover from snapshot

I have snapshotted an LV named roa to a snapshot volume named ima, then accidentally removed A file, I need to recover A file from the snapshot volume like what Btrfs snapshot did, but guides on LVM ...
-1
votes
1answer
71 views

LVM: how to always show Pfree in GB

pvs shows Pfree in MB or GB: pvs PV VG Fmt Attr PSize PFree /dev/sda2 vg50 lvm2 a-- 1.09t 950.16g pvs PV VG Fmt Attr PSize PFree /dev/sda2 vg60 lvm2 a-- 149....
2
votes
0answers
203 views

How do I create Free Extents, so I can replace a physical drive in this lvm Volume Group?

I have a Fedora Linux 28 system with 4 physical drives all in one LVM Volume Group. This system's motherboard only has 4 SATA slots. My goal is to remove the /dev/sdd physical drive from the Volume ...
1
vote
0answers
25 views

Set LVM volumes active by default [closed]

I have LVM under LUKS on one partition of physical disk. But when I open encrypted partition volume group appears inactive, so I cannot use volumes immediately. I want to make root filesystem on that ...
0
votes
1answer
87 views

OpenNebula LVM datastorage usage scenario issue

I've been tried to configure OpenNebula in testing environment consists of two hosts: nebula (front machine) with Sunstone kvm-node-1 host with configured VG nebula machine contains following: root@...
0
votes
1answer
51 views

Lost Physical and logical Volumes

I can still decrypt my drive and see the files but the physical and volume information is coming up blank. See below is there any way to recreate the physical and logical volumes? root@dad-PC:/home/...
1
vote
2answers
136 views

linux + how to convert VMDK disk to LVM disk

we have linux machine with sdb disk lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 150G 0 disk ├─sda1 ...
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 ...
1
vote
1answer
21 views

Can one combine logical volumes from different groups without copying the contents over?

I use Arch Linux kernel 4.18.12-arch1-1-ARCH (november 2018). I use a SATA caddy (for a Thinkpad T400) which holds a hard drive from an old laptop. I'd like to decide on combining the contents and ...
0
votes
1answer
68 views

Delete volume group of HDD of which the name is the same as my main SSD's

I just bought a new computer with an HDD + SSD. I must've accidentally encrypted the HDD it during installation, although I am sure I did undo it, but here it is, encrypted and even if I put the ...
1
vote
2answers
287 views

Removing logical volume without confirmation

I'm writing an automated script that will remove a logical volume, but I'm not 100% sure how to do this. It looks like one should use the -f flag to lvremove, but the documentation seem too sloppy to ...
0
votes
1answer
67 views

LVM - what does it mean `<dev id>` exactly? Correlation between ids in devicemapper and LVM

in following link https://www.kernel.org/doc/Documentation/device-mapper/thin-provisioning.txt I have read that: create_thin which is command sent to device mapper.
1
vote
2answers
1k views

How to encrypt LVM partition with LUKS after installation?

Is it possible to encrypt a LMV partition after having installed an OS? I just finally managed to get LVM but I couldn't figure out how to get it encrypted. The installer didn't seem to provide for ...
2
votes
1answer
146 views

Is there a maximum limitation on the number of physical volumes allowed in a volume group?

Someone in my organisation has picked up support for a system previously looked after by the now-defunct vendor. Their support department insisted there is a limit of 16 physical volumes on their ...
0
votes
1answer
35 views

`lvs -a` — filtering by name with regex

Is it possible to filter output of lvs -a using lvs command (I know that it is possible with grep, however I look for some approach with lvm only). I mean listing only snapshosts and/or filter by ...
0
votes
1answer
78 views

root_LVM not listed in LVM command output

I am not able to list the root_disk LVM in lvm commands (like pvs, vgs etc.) output. The lvm.conf file does have global_filter and it looks like below - global_filter = [ "a|^/dev/mapper/...
0
votes
2answers
278 views

Failed to open root LUKS device on LVM during boot

I have LVM partitions which are encrypted using LUKS. My root partition is /dev/HDD/root: LVM group "HDD" (at /dev/HDD): Encrypted LUKS device "root" at /dev/HDD/root I'm trying to decrypt it via ...
2
votes
1answer
643 views

How to remove a PV from a VG without losing the data on it?

I want to detach a PV from a VG, but with preserving the data on it, with the possibility of a re-attach in the future. The LVs are completely separated on it (no LV has LEs on both the PV to ...
0
votes
1answer
357 views

LVM: Decrease/shrink size of a physical volume by deallocating free space from removed logical volume

I have the following LVM partition: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/data-root 5.3G 4.2G 864M 84% / ... /dev/mapper/data-install 6.8G 5....
-1
votes
1answer
81 views

What are the methods to increase capacity for local in usr in linux? [closed]

I have a linux production virtual machine and I need to increase space in /usr/local folder. I have already attached a partitioned and formatted disk with capacity of 300 GB as follows. [root@CentOS6-...
1
vote
1answer
248 views

linux “mdadm --write-journal” and lvmcache - how do they relate?

In linux mdadm man page I saw the option "--write-journal". How does this relate to lvmcache as lvmcache is built on top of dm-cache? Are they different things or does lvmcache do something like "--...
3
votes
1answer
253 views

lvmcache and ext4 data=journal => overkill?

We are running lvmcache (24TB raid5 hdd data, 64GB raid1 ssd cache+meta) and we are using external journal with data=journal for the ext4 fs on that raid5 and have the journal on the same ssd raid1 (...
-3
votes
1answer
336 views

How to reduce a LVM partition without any kind of data loss from the partition without taking any backup?

A 10 GB partition contains 5 GB data. This partition should be reduced to 8 GB No backup
0
votes
1answer
60 views

Full disk encryption with few volume groups

My current LVM configuration: I have two physical volumes (pv): 256 GB of SSD and 1 TB of HDD. These volumes are used by different volume groups (vg): SSD vg has logical volumes which are mount where ...
-1
votes
1answer
31 views

Resize LVM Group according physical partition

I have a new VPS with a 215 GB disk. The disk has 2 partitions: first is /boot with 1 GB and the other partition has the remaining space: lsblk -fm NAME FSTYPE LABEL UUID ...