Stack Exchange Network

Stack Exchange network consists of 174 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 Manager for the Linux kernel manages disk drives and similar mass-storage devices, in particular large ones. "Volume" refers to a disk drive or partition thereof.

0
votes
0answers
10 views

Recovery from encrypted lvm disk/partition

First a bit backstory: I had a laptop with Ubuntu 18.04 and a SSD+HDD setup. Some time ago the laptop died. I had backup of most of the files, but some files in one partition on the HDD weren't backed ...
0
votes
0answers
6 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 ...
1
vote
1answer
47 views

Encrypted LVM in Debian Install - Is whole disk encrypted?

I just installed Debian 9 with desktop environment to see if I can live using linux fairly exclusively. One item during the installation process to encrypt the LVM. I selected to do so and put in a ...
0
votes
0answers
79 views

Why is random write faster with LVM than without?

I'm measuring random write speeds for a EMMC device with fio. I'm testing multiple block sizes with multiple io sizes. After multiple iterations for all test cases on a raw emmc device, I create a ...
1
vote
0answers
26 views

Ubuntu LVM on LUKS UEFI

I want to install Ubuntu on LVM on LUKS in UEFI mode. An UEFI partition, another encrypted partition for /boot and again an encrypted partition for system. My question is: How can I add hooks to ...
0
votes
0answers
18 views

I have encrypted LVM2_member partition I want to mount and access the data on but I cannot

TLDR; I have a encrypted luks partition which is a VG member I cant access, I have the password for the volume. I just want to mount it so I can get some data off of it. All of this is running on ...
1
vote
1answer
35 views

Extend a PV partition in Linux

I have a situation where there is ~300G available on /dev/sda and I want to extend a partition /dev/sda3 with the additional ~300G. However from what I read online if /dev/sda4 exists, I cannot ...
3
votes
1answer
134 views

How to mount an LVM volume from a dd/raw/vmdk image?

Input: RAW/DD Image of an HDD. fdisk -l shows partitions sudo fdisk -l image.dd Disk image.dd: 15 GiB, 16106127360 bytes, 31457280 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/...
3
votes
1answer
74 views

How to buffer writes to an External Drive using an Internal SSD

This question is a bit of an odd one, I'll try to be as detailed as I can be. I'm repurposing an old computer to serve as an in home backup solution. The final resting place for the data is an ...
1
vote
0answers
78 views

SSD overprovisioning and encrypted LVM

I have a SSD with an encrypted (cryptsetup/luks) LVM partition. Since I'm not yet into that ssd stuff I offhandedly left approx. 10% unpartitioned for overprovisioning. Just because I was told that ...
1
vote
0answers
185 views

Cannot restore LVM metadata because of missing PV device

This is a machine running Fedora 28 with one hard drive. I popped in another hard drive to see if could extract data from it (No), but after I removed it (back to one drive) I found that it had messed ...
0
votes
0answers
20 views

LVM Issue in Virtual Machine

I have a virtual machine (fedora) and connecting to it via ssh. for this VM a virtual disk with 300G volume is assigned, but I cannot add it to VM via LVM, can you help me step by step ? I have only ...
2
votes
0answers
36 views

RAID migration w/ MegaRAID SAS Raid controller

I have a workstation with 8 drive bays and a MegaRAID SAS-3 3108 raid controller. 5 of the 8 bays are populated, and it is configured as a RAID5. I need to expand my disk-space, and putting in 3 more ...
0
votes
1answer
47 views

remove disk after pvs output

psv command has show below output after I removed physical disk. That disk has xfs filesystem and belog to lvm partition. Before I was removing disk, I did unmount filesystem and I ran below command. ...
2
votes
0answers
206 views

Shutdown hangs when cryptsetup try to close partition

I have two laptop with Devuan installed. When shutting down it hangs for about one minute when cryptsetup try to close the encrypted partitions. Messages: Stopping remaining crypto disks......
1
vote
1answer
501 views

Read luks lvm volume from Windows 10 [duplicate]

I have a pendrive with the ubuntu root partition encrypted with LUKS, and it's inside a lvm volume. How could I read the data from Windows 10?
1
vote
1answer
364 views

How to extend root partition on LVM in VirtualBox with snapshots

I'm running Fedora 28 in VirtualBox with a 200GB virtual drive. After a few months I ran out of disk space on the root partition. Here's what I tried to extend it: "c:\Program Files\Oracle\...
0
votes
0answers
118 views

How do I fix an NTFS drive accidentally turned into an LVM volume?

I recently attempted to install Fedora 27 on my system, but I didn't disable all of my other extraneous drives like I normally do to keep the installer from getting confused. Because I didn't do this, ...
0
votes
0answers
126 views

Booting Kali from iso on lvm volume - no live filesystem found

I am trying to boot Kali from an iso file located on an LVM volume. As far as I can tell, initramfs does not activate the volume group where the iso is located, so the live iso filesystem is not ...
0
votes
0answers
52 views

“Volume group not found” warning before asking for passphrase

I get the following warnings at boot: Volume group "xxxxx" not found Cannot process volume group xxxxx (several times) Then it ask for my passphrase, and start correctly. It seems that the system ...
0
votes
1answer
85 views

how to encrypt an install unecrypted fedora installation with LVM

Now I know that you can choose to encrypt your system in the fedora installation options,but I have already installed my system and I want to encrypt it without loosing data and I do not know how to ...
2
votes
0answers
126 views

Can Fedora 28 be installed from an ISO file on an LVM partition?

I am attempting a medialess installation of Fedora 28, using an ISO image stored on an LVM partition. After struggling for a while I found this post which helped a lot, but I am now encountering the ...
1
vote
1answer
2k views

How to avoid encrypted boot partition password prompt in LVM- arch linux

I'm using LVM with Arch Linux. Please find disk structure below. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 50G 0 disk |-sda1 8:1 0 ...
1
vote
3answers
212 views

Trapped with no space left on root partition

I'm running OpenSUSE 42.3 on my desktop. It's installed on 250 gb SSD with LVM. There's two logical volumes: one for root partition, other one for home partition. My root partition was only 40GB, so ...
0
votes
1answer
286 views

How set up a new disk device /dev/vdb?

I'm using KVM to boot the VM. I'm starting with RHEL and I would like to know how do I create a new /dev/vdb? [root@master dev]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 ...
1
vote
1answer
18 views

Prevent LVM creating dm-X devices

Was wondering if it's possible to stop LVM on RHEL7 creating symlinks of /dev/dm-X to rootvg? I'm using my RHEL hosts to connect to SAN LUNs, and prefer to have /dev/dm-X only mapped to multipath ...
0
votes
0answers
74 views

Lvm on luks: can unencrypted mbr be used to install malicious software if only a big partition that covers the entire device is encrypted?

In most guides out there, to made a stronger full disk encryption setup, it is proposed to place /boot on a separate usb device. However lvm on luks setup covers the first partition of the main disk (...
0
votes
0answers
84 views

LVM2 Raid 1 “needs refresh”, but does not refresh or scrub

I'm running a LVM RAID 1 on two disks. Here is what lvs tells my about my VG: root@picard:~# lvs -a -o +devices,lv_health_status,raid_sync_action,raid_mismatch_count /run/lvm/lvmetad.socket: ...
1
vote
1answer
95 views

How to manage backups of encrypted partitions

I have the following material with my laptop : 20GiB SSD 500GiB HDD (Disk A) External HDD (Disk B) What I want : My Linux (Debian 9) encrypted at the partition level (that I manage), with ...
0
votes
0answers
368 views

Alpine LVM installation with UEFI/BIOS dual booting support

I want to move from Arch+Windows [GPT, dual boot using built-in EFI menu] to Alpine+Windows [GPT, legacy BIOS booting support, XEN, LVM partitions for both Alpine as Dom0 and virtualized Windows as ...
0
votes
1answer
313 views

Backup an LVM partition regularly

I have a little home server (Ubuntu Server 17.10) and I'd like to setup some backups for it. My main points are: The server has two hard drives. The first one (an SSD) is partitioned with the EFI ...
0
votes
1answer
465 views

Can't make LVM Cache to be persistent after system reboot

I've got LVM logical volume on top of MDADM RAID1 setup. I'm trying to add SSD device as Cache to this logical volume via: vgextend dataVG /dev/sdd lvcreate --type cache --cachemode writethrough -L ...
0
votes
1answer
349 views

How to Increase the defaault size of PE(physical extent) in LVM(logical volume manager)

I have created a LV of 16GB for testing purpose and it has a default PE size of 4mb, I want to increase the default size.How is it possible? What is the command for that. Also, if there is a way to ...
1
vote
0answers
154 views

What is the best encryption method to use with luks/LVM [closed]

I am doing a full disk encryption and I am wondering if aes-cbc-essiv:sha256 is the correct/best option to use, or if there are better options. Normally for anything I need to encrypt I use aes-gcm, ...
0
votes
1answer
455 views

Extending boot partition on OpenMediaVault/Virtualbox

I've just resized the Virtual Space on VirtualBox image 2G to 8G. But how can I expand the main boot partition without reinstalling the server? GParted screen lsblk command: NAME MAJ:MIN RM SIZE ...
0
votes
1answer
1k views

LVM complaining about device smaller than logical volume

I just installed Slackware on my laptop, with full disk encryption (LVM on LUKS). It works fine but there is a warning from LVM: WARNING: Device /dev/mapper/lukssda2 has size of 115996431 sectors ...
1
vote
1answer
2k views

How to repair my LVM volume which fails with “device not found”?

On the next boot after an fairly standard upgrade on my arch linux box, the system failed to boot and stopped in maintenance mode ; I found out that if I commented out in /etc/fstab the lvm partition ...
1
vote
0answers
645 views

LVM : lvextend on striped volume

This is my first question in "stack"-systems and... it's probably very silly. Especially because I think I know the answer, but as it's about some production system with critical data, I'd like to ...
1
vote
1answer
79 views

Add a ‘protective’ MBR to LVM2 physical volume

Some time ago I made a mistake of converting whole hard drive into a LVM PV without making a partition first. It doesn't cause any problems, but I want to be on the safe side (for example, Windows ...
0
votes
0answers
52 views

Create physical volume on harddrive without partitions

I want to use my empty harddrive /dev/sda as a physical volume. $ cat /proc/partitions | grep sda 8 0 488386584 sda $ pvcreate -f /dev/sda WARNING: Device for PV uzeYqk-T9tW-Ej74-Vy9R-...
0
votes
2answers
49 views

Providing a VMware VM - disk space allocation

I'm not a VMware guru by any means so please be gentle, but I'm working on a product that will be readily available via a download of a VMware VM and I'm concerned about the size of the disk that my ...
0
votes
1answer
40 views

What is the mount point for reserve space

While reinstalling Ubuntu 17.10, found a 767MB of ext4 partition along side 536MB EFI and 248GB Encrypted LVM partition. After reading few articles I figure that the 767MB space is reserved space for ...
0
votes
1answer
233 views

Lvm cache “VG name mismatch”

I'm using virtual machine to simulate. md1 is slow and md2 is fast. I know I'm doing this cross VG, And if LV_Data and Lv_Cache in same VG, it's working, But that don't make any sense ,cache in ...
0
votes
0answers
601 views

Fixing “Couldn't find device with uuid” error in RHEL

How can I restore the missing volume? I get the below error message and I am trying to fix it. It would be great, if someone could guide me here. Shared all the outputs below for better understanding ...
2
votes
1answer
416 views

How to configure grub.cfg to decrypt root partition?

I'm using common "pattern" well known as LVM on LUKS. I have /dev/sda1 which is used for /boot and /dev/sda2 which is dm-crypted partition (default aes-sha512-xts). There are two lvm partitions: one ...
1
vote
0answers
1k views

failed connect to lvmetad. falling back to device scanning

I started upgrading linux times. then stop there that fail then I repeat and the result is same. when i reboot then the only view is initramfs. I try to use fsck tools, but there is even so as in the ...
2
votes
0answers
49 views

lvcreate vg0 not found

I am looking at the mongodb documentation for creating a logical volume with lvcreate. lvcreate --size 100M --snapshot --name mdb-snap01 /dev/vg0/mongodb The example is the output is: Using ...
2
votes
1answer
148 views

Why /home/.ecryptfs is missing inside dd image of LVM partition?

Disk Copy 2 month ago I backed up the 128G HDD of an old laptop with Ubuntu 16.04 on it, using dd: # sudo dd if=/dev/sda of=/media/victor/blackWD/ss9backup.img conv=noerror bs=128k status=progress ...
0
votes
1answer
172 views

dualboot windows linux 1 disk per OS, grub save default LVM diskfilter writes are not supported

Hi I have machine with 3 disks 2x SSD + 1 HDD I want to have Windows on 1 SDD and linux in LVM on 2nd SSD, and shared HDD for data sda(250GB) ├─sda1 500MB - ...
1
vote
0answers
386 views

Restoring GRUB after Windows installation

My Windows 7 had troubles that cloud be fix only by reinstallation. But it was not only one system in my laptop, other one was Debian Jessie. Aware about incoming GRUB overwriting I did backup of my ...