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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [lvm]

LVM is a logical volume manager for the Linux kernel

0
votes
1answer
68 views

Insufficient free space: XXX extents needed, but only 0 available

I'm trying to run this command: lvresize --size +100% --resizefs /dev/mapper/pve-root but geting this error: Insufficient free space: XXX extents needed, but only 0 available Running ProxMox 5.1 ...
0
votes
0answers
15 views

Hyper-V VHDX Expand LVM volume

I don't find out the proper way to do this... I have one VHDX virtual drive in my Hyper-V machine with Ubuntu Server. Now I need to expand this drive. I have done it in Hyper-V. No problem. But in ...
0
votes
1answer
16 views

How to fix fdisk -u an already existing LVM drive (I broke my LVM)

It's late and in my infinite wisdom I accidentally entered a command into the wrong SSH session and nuked one of my servers. Before the nuke root@host ~ # fdisk -l Disk /dev/nvme0n1: 953.9 GiB, ...
0
votes
0answers
12 views

Ubuntu 18.04 Unmount /dev/mapper/ubuntu--vg-root for fsck

so I am having a problem booting my newly upgraded 18.04 installation, and all the solutions that I see are pointing me toward doing fsck /dev/mapper/ubuntu--vg-root from recovery mode. The only ...
0
votes
0answers
10 views

Preseeding No physical volume defined in volume group

A couple of weeks ago I asked about configuring Ubuntu preseed to configure LVM partitions. I got no response to that one. I was able to figure out how to get logical volumes defined for UEFI within ...
0
votes
0answers
57 views

18.04 cryptsetup luks automount root during boot with USB as key

Iam trying to unlock/automount the root on my ubuntu 18.04 luks cryptsetup installation with a USB drive during boot. With the script attached or a similar version it was already working a few ...
0
votes
0answers
27 views

Two problems in one? Failed to load lvmetad and you don't have enough free space

so today I turned on my 18.04 machine for the first time in a month, clicked "okay" to the updater, and seconds later was given a message that said, "You don't have enough free space to install this." ...
1
vote
1answer
107 views

Partitioning after install

Current Partion Layout 1TB HDD - /dev/sda1 80GB Windows 10 - /dev/sda2 ~1GB Microsoft reserved - Free space 128GB SSD - EFI Boot - Ubuntu - Windows Recovery I want to move home to a partitioning ...
0
votes
0answers
28 views

Preseed partman-auto expert_recipe not working

I have the following in a preseed file for ubuntu 16.04 # Partitioning d-i partman-auto/disk string /dev/sda d-i partman-auto/method string lvm d-i partman-auto/purge_lvm_from_device boolean true d-i ...
0
votes
0answers
38 views

Can't increase hard drive space on Ubuntu 18.04

I have Ubuntu 18.04 in VirtualBox I had installed using LVM, thinking that the drive size would automatically grow to the initial 20 GB, but it hit 3.9 GB and stopped. Filesystem ...
1
vote
0answers
15 views

How to list all changes done to the lvm2 snapshot

just like in the title, is it possible to list all changes that were saved/recorded within the snapshot? let's assume: I have changed /etc/network/interface 3 days ago. On the next day, I installed ...
0
votes
2answers
60 views

Ubuntu Server 18.04 LVM out of space with improper default partitioning

I installed Ubuntu Server 18.04 with the LVM option and left the default partition setup. Now my main drive only has 4GB in a 1TB hard drive. How can I fix this without starting from scratch? Results ...
0
votes
0answers
27 views

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

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
1answer
71 views

How do I do a customised LVM install of Ubuntu 18.04.1 Desktop LTS?

Please can someone tell me how to do a custom LVM install of Ubuntu 18.04.1 LTS Desktop. I have RTFM and it didn't help me. I've hit multiple problems trying to install it: A) Trying to do a 'default'...
0
votes
0answers
21 views

Can't find lvm inside luks decrypted partition

I did a space liberating operation from "bleachbit as sudo" in my HDD which has an Ubuntu 18.04 installation and the root partition is luks encrypted, and the next time I booted up my machine it ...
0
votes
0answers
8 views

Raid like setup with existing data?

I currently have a setup where I have a 2TB drive with my OS and virtual machines, then two 1TB drives as a 2TB LVM. Is there a way I can essentially create a raid like scenario, where I can clone ...
0
votes
1answer
60 views

Ubuntu looks for a removed volume group during boot

I cloned my Ubuntu Server to a virtual machine on my laptop to do some tests. I adapted /etc/fstab and network configuration but I am unable to get rid of LVM. While the original server uses LVM, the ...
0
votes
0answers
15 views

How to resize a partition with lvm? [duplicate]

I installed Ubuntu on a 500gb external disk using all the space, how can I resize it? (lvm present)
0
votes
0answers
20 views

Lvm on luks UEFI

I want to install Ubuntu on lvm on luks in UEFI mode. An efi partition, another encrypted partition for /boot and again an encrypted partition for system. My question is: how can I add hooks to ...
1
vote
1answer
130 views

How to Remove LVM Physical Volume from (inaccessible) Server

The goal is to remove the physical volume /dev/sda from this LVM setup (running on 16.04 server): # pvdisplay --- Physical volume --- PV Name /dev/sdb3 VG Name box-vg PV ...
1
vote
1answer
50 views

Remove an LVM partition on top of windows partition

I wanted to install ubuntu in dual boot with windows 10, but I accidentally select the options: "Erase disk and install Ubuntu" + "Use LVM with the new Ubuntu Installation". When the warning popup ...
0
votes
1answer
33 views

Encrypted LVM with custom partition table

Why does the Ubuntu installer not offer a way to create a custom partition table for an encrypted LVM installation? I wish to have at least /, /home, and data partitions and a swap. I used to also ...
0
votes
0answers
80 views

Recovering a corrupt LVM partition

I seem to have corrupted my primary LVM partition [1] which contains root and swap partitions. $ sudo fdisk -l /dev/sdb Disk /dev/sdb: 223.6 GiB, 240057409536 bytes, 468862128 sectors Units: sectors ...
0
votes
1answer
31 views

Freshly created logical volumes show large usage

I created a couple of logical volumes of around 2.0G size for practice and then created GFS2 file systems in these. There are eight physical volumes from which two logical volumes have been created. ...
0
votes
0answers
89 views

Error on boot: “failed to connect to lvmetad” after 18.04 install [duplicate]

I have been using Ubuntu 16.04 for a couple of years now, and recently did an upgrade to 18.04. This was not a fresh installation, but rather an upgrade as per instructions, from 16.04 to 18.04. ...
1
vote
1answer
56 views

How to create LVM physical volume from free space in a disk [duplicate]

I have an external disk sda on the machine and I want to create an LVM physical volume from free space of the sda. Here are the partition sizes: Name Flags Part ...
0
votes
0answers
12 views

LVM2PV File Support

enter image description hereFirst of all, I am not sound in Linux Operating System My Seagate Central NAS box got corrupted and I am trying to retrieve the data. Ubuntu detects the HDD and I can ...
0
votes
0answers
11 views

Recover data from windows partitions after accidentally partitioning it as LVM

So I accidentally repartitioned my 500 GB SSD to a LVM. Before, it consisted of: 120 GB for the system, 150 GB for data the rest free space for Linux. After I switched the SSD to a new laptop ...
0
votes
0answers
33 views

Can a drive both be LVM and non LVM?

Preface: This is probably a foolish question either or a question that has an easy-to-find answer to do more basic research than I have, but is it possible to partition an HDD for both LVM and a NTFS ...
0
votes
0answers
78 views

Multiple hard drive full disk encryption

I'm trying to achieve full disk encryption using LUKS on both internal hard drivers but during boot system asks for passphrase multiple times. I also tried key file method but initramfs cant find this ...
0
votes
0answers
51 views

need help installing ubuntu 18.4/recovring previous installation

During an automatic update on Ubuntu 16.04 LST with an update to Ubuntu 18.04 LST, I encountered and error which I have made worse by trying to fix. To summarize I have a "boot drive" /sda1 with 3 ...
1
vote
0answers
26 views

Is there a way to relocate LVs from an un-partitioned disk to a partition on another disk?

Freshly signed up newb here, apologies in advance for any silliness and wordiness. (Also excuse the makeshift formatting; ssh is not enabled on my build yet, and my company has copy-paste disabled in ...
2
votes
1answer
165 views

Understanding free space / volumes on Ubuntu

I am new to Ubuntu. I am running 18.04 in a VM on ESXi 6.5, where I am running Docker containers. One of the apps I am running in docker is causing me some issues, one of which could be related to ...
0
votes
1answer
201 views

Setup encrypted LVM on ubuntu 18.04 server edition

While installing Ubuntu 18.04 server edition, the option "Use entire disk and setup encrypted LVM" is missing So how do encrypt the entire disk while installing server edition?
1
vote
0answers
36 views

Why did unattended-upgrade remove lvm2 and libreadline5?

I installed Ubuntu 18.10 last week on a new host with LVM. It has one SSD with boot and root in one VG, and then I added one HDD in a different VG containing /home and /media. A day or so later, ...
0
votes
0answers
40 views

Cannot increase size of swap partition under lvm

I'm running Ubuntu 18.04, and the installation uses LVM. The partitions were automatically setup, with swap only getting 976 MiB. I decided to increase the partition size using the method here: how to ...
0
votes
2answers
121 views

Deleted 18.04 server. How to reinstall 18.04 server without loosing existing files?

Please excuse the way I've gotten into this situation. After upgrade from 16.04 LTS server to 18.04 LTS server I was removing 16.04 programs php7.2 depended on. One of those was SSL-something. Since I ...
3
votes
1answer
332 views

WARNING Option 'hash' missing in crypttab after upgrading Ubuntu

I upgraded Ubuntu from 18.04 to 18.10. I have full disk encryption enabled. When I boot up, I get this error message displayed above the password prompt for the full disk encryption: cryptsetup: ...
0
votes
0answers
58 views

LVM partition config causing boot delay because it's “Failing to connect to Lvmetad”

I'm running xubuntu 18 in VirtualBox. On boot I get this message about "Failing to connect to lvmetad: Falling back to device scanning" Then it hangs for 30s, and just before boot the rest of the ...
0
votes
0answers
68 views

Problems understanding ubuntu partitions and volumes while increasing storage

Trying to increase the storage space on an encrypted partition from ~18GB to ~32GB. Followed all the instructions here successfully including the gparted storage extend: https://www.howtogeek.com/...
0
votes
1answer
224 views

How to create LVM via Calamares for Lubuntu 18.10?

This is for an install on a UEFI-based laptop with a GUID partition already in place. There is only one disk I'm dealing with and it has partitions that I can't erase for provisional reasons (non-...
2
votes
1answer
159 views

Accidentally resized ext4fs over 16TB limit, how to rollback?

We tried to increase the size of our 15TB partition with lvresize with the following command: lvresize --resizefs --size +1T /dev/vg0/mm No errors were displayed during the operation, but the result ...
0
votes
1answer
144 views

Kubuntu - Creating Boot and LVM Partitions from scratch

At the moment, I’m trying out KUbuntu 18.04 and I’m wondering if someone can show me how to do an install that looks like: /dev/sda1 -> /boot -> 1GB (by the way, what format should boot be?) ...
0
votes
0answers
53 views

move boot partition to add additional space

I'm running out of space on my server and now I'm trying to expand the main partition. But I just can't figure out how to move the boot partition. The move command in fdisk is missing but I really ...
0
votes
0answers
101 views

How can i expand disk space of ubuntu--vg-root? (LVM)

I was running out of space so i used gparted to expand my disk space from 40GB to 90GB. Then i booted my ubuntu and used parted to assign the space to sda1: sudo parted /dev/sda resizepart 1 sudo ...
2
votes
1answer
61 views

How can I add the new space to a volume group after resizing partition?

This was the output of lsblk before running parted: sda 8:0 0 90G 0 disk └─sda1 8:1 0 40G 0 part ├─ubuntu--vg-root 253:0 0 39G 0 lvm / ...
0
votes
0answers
29 views

Repartitioning after LVM partitioning

I installed Ubuntu 16.04 using LVM method. Now while trying to re-partition HDD using Gparted, I saw that my HDD present situation is like this : LVM is using the entire part of extended space. (...
1
vote
0answers
43 views

ubuntu 18 stucks to purple screen after update

Some days ago I run a simple update, then my computer chrashes. When I start it, after some seconds, I just see a purple screen and nothing happens. I can't go on recovery mode by holding shift nor ...
5
votes
1answer
141 views

Udevadm settle not working

I just upgraded to 18.04 on my NAS. I have a script that prompts my user for a luks password and then mounts the drive after it's decrypted. This used to work: cryptsetup luksOpen /dev/md0 md0_crypt ...
1
vote
0answers
84 views

unable to boot to windows 10 after installing kubuntu 18.04 on second hdd using lvm

I installed kubuntu 18.04 LTS on second hdd(sdb) with lvm enabled and after that am unable to boot to windows first hdd(sda)...if I select windows partition it goes to grub-rescue prompt. I tried ...