Questions tagged [lvm]

LVM is a logical volume manager for the Linux kernel

Filter by
Sorted by
Tagged with
1 vote
1 answer
258 views

Extends encrypted partition to new SSD

I have added a 1TB disk to my ubuntu 22.04 install. I have installed it using LVM+LUKS. lsblk gives this ... nvme1n1 259:0 0 931,5G 0 disk nvme0n1 259:1 0 476,9G ...
Rob Audenaerde's user avatar
0 votes
0 answers
31 views

Does Ubuntu Core support LVM?

My initial try at Ubuntu Core got me surprised by the lack of LVM (Logical Volume Manager) commands. The Snap store doesn't seem to have anything either.
minidou's user avatar
0 votes
2 answers
727 views

Where is my /dev/dm-2 2 GB swap partition?

On a brand new Ubuntu 22.04.2 installation, swapon --show shows I have a 2 GB swap partition: $ swapon --show NAME TYPE SIZE USED PRIO /dev/dm-2 partition 1.9G 0B -2 Neither df -h, nor ...
Gabriel Staples's user avatar
0 votes
0 answers
227 views

How to mount an LVM formatted hard drive connected through a USB adapter?

What would be the standard directory to create for an external hard LVM hard drive? nicholas@mordor:~$ nicholas@mordor:~$ ls /dev/mapper control vgubuntu-root vgubuntu-swap_1 nicholas@mordor:~$ ...
Nicholas Saunders's user avatar
1 vote
0 answers
83 views

Partition disk when installing ubuntu using LVM

I am trying to partition my disk when installing my ubuntu image: What am trying to achieve is: Set up 3 main partitions / , /var and /home encrypt all 3 paritions using LVM encryption module ...
Rafe's user avatar
  • 11
0 votes
0 answers
104 views

Failure to install Ubuntu

I try to install ubuntu22.04.02 lts in my laptop asus x540u models, at first time all things are working good only in steps 5 when i chose to erase the disk with LVM, so it contine to loading without ...
JEEdz's user avatar
  • 11
0 votes
0 answers
161 views

Not all logical volumes appears during installation of Ubuntu Server 20.04.6 and 22.04.2

I'm trying to install Ubuntu Server 22.04.2 from the live USB stick. I have 3 existing volume groups (LVM). Some of the partitions has been created with Ubuntu 18.04 (and probably ealier versions too)....
Clèm's user avatar
  • 196
1 vote
0 answers
174 views

Re-install ubuntu 22.04 on encrypted LVM partitions

I have an existing installation (Debian) using encrypted LVM partitions. I would like to re-use the same partitions to install Ubuntu (more precisely, format the / partition with the new system but ...
csol's user avatar
  • 41
0 votes
0 answers
187 views

Partionning with preseed

I used to find my solutions on old post here but today I have to write for help as I don't find any usefull answer anywhere. I'm sure you'll rock and help me with this problem I have for quite a while ...
Thomas B's user avatar
1 vote
1 answer
136 views

ubuntu--vg-ubuntu--lv and vgdisplay give different sizes for different commands

Even though the disk size is 221.57 GiB and there is no unallocated disk space and /dev/mapper/ubuntu--vg-ubuntu--lv gives only 98G where did the rest go? output of: fdisk -l /dev/sda Disk /dev/sda: ...
Kofiko's user avatar
  • 13
0 votes
1 answer
68 views

Used P2V to reduce size of LVM VHDX - Issues with grub and booting now

Hi All hoping for some Linux genius advice I inherited a VMWare VM cluster with a few production VM’s they were all way over provisioned and all have 1tb Thick drives But are only using 100gb odd each ...
Chayne's user avatar
  • 1
1 vote
0 answers
231 views

lvresize command doesn't increase size of lvm

This is my output of lsblk: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 63.3M 1 loop /snap/core20/1828 loop1 7:1 0 63.3M 1 loop /snap/core20/1852 ...
S.M Emamian's user avatar
1 vote
0 answers
39 views

How to increase a partition and lvm

This is my lsblk output: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 63.3M 1 loop /snap/core20/1828 loop1 7:1 0 63.3M 1 loop /snap/core20/1852 loop2 ...
S.M Emamian's user avatar
0 votes
0 answers
112 views

I messed up and made my /boot partition laughably small over 4 years ago. Resizing it will not be straightforward. What can I do?

Ubuntu version is 22.04 LTS Desktop My boot disk is /dev/sda, and it has three partitions. Here are the relevant mounts: ~$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs ...
tamale's user avatar
  • 1,459
2 votes
1 answer
283 views

How to disable GUI for password prompt for encrypted LVM volumes on boot?

How to disable GUI for password prompt for encrypted LVM volumes on boot and how to remove all strings on console output? I just need cleared prompt with blinking cursor. And yes, I want to confuse ...
Denis at SO's user avatar
1 vote
1 answer
2k views

22.04 (LVM, encrypted) stopped booting, drop to shell: Error: vgubuntu-root does not exist

I'm running Ubuntu 22.04 with LVM/encryption. This morning, the normal boot sequence stopped working: it does not prompt me for my encryption password, but instead drops to a shell with the following ...
Gary's user avatar
  • 31
1 vote
0 answers
259 views

How to resize and shrink the sole root mount LVM physical volume?

I've selected LVM default option and completed Ubuntu 22.04 installation, but failed to resize and shrink the sole root mount LVM physical volume afterwards. Method 1: # mount -t ext4 /dev/mapper/...
sof's user avatar
  • 497
0 votes
0 answers
178 views

Is there a way to recover data from a drive that was an LVM partition?

I'm a bit new to ubuntu, apologies upfront for gaps in my understanding. One of our device broke down recently and needed to be RMA. The device had 2 drives, an internal 30gb drive and a 1 tb ssd. The ...
AimanT's user avatar
  • 1
1 vote
1 answer
1k views

How to resize lvm partition so I can give more space to /boot partition [duplicate]

I have tried gparted live, so partitions are not mounted, but I cannot apply any change in main partition (because it's lvm partition I am afraid) This are the details Device Boot Start End ...
Raul Sanchez's user avatar
0 votes
0 answers
109 views

Installing and creating a configuration for GRUB (Ubuntu 18, RAID1, LVM). Problems

There is my config (VirtualBox): sda 8:0 0 10G 0 disk ├─sda1 8:1 0 512M 0 part /boot/efi └─sda2 8:2 0 8.5G 0 part └─vg0-lv0 ...
Maxy's user avatar
  • 1
0 votes
0 answers
587 views

initramfs shell after upgrade to Ubuntu 22.04 - raid

I upgraded from 20.04 to 22.04 and after reboot I get the following screen / errors (see screenshot) and it goes to the initramfs shell. It's a RAID system. It might be that boot partition was too ...
user238740's user avatar
2 votes
1 answer
649 views

How can I increase the size of lvm partition?

I have a ubuntu 18.04 system. I have a total of 3 partitions and in my third partition, I have an LVM partition. I need to increase the size of that partition. Here is the output of lsblk I need to ...
hamza toor's user avatar
1 vote
0 answers
20 views

Extend LVM partition with the parent drive [duplicate]

I want the ubuntu--vg-ubuntu--lv partition to use the whole sda3 disk. So the / would be 296.1GB. Any idea how can i do that? Cause i dont know how to do this way. I have 0 idea what am i doing, i ...
Lolis4TheWin's user avatar
2 votes
1 answer
720 views

Use the whole disk instead of a partition as root dir

My problem is that i have a ~300GB hdd (sda3) that i cannot use cause the / is not there. How can i change that? I think i installed lvm with the ubuntu server and this caused the problem. So in this ...
Lolis4TheWin's user avatar
3 votes
1 answer
87 views

LVM merge destroyed hard drive

I tried to upgrade from Kubuntu 22.04 to 22.10, and borked it. Accidentally pressed Ctrl-C with the terminal window active. I think I was able to fix everything, but didn't want to chance it. I had an ...
Kenneth Hanson's user avatar
0 votes
0 answers
788 views

Could not open '/dev/pve/vm-130-disk-0': No such file or directory because of "Unable to resume pve-data-tpool"

We are facing an issue while starting the VM on the proxmox with the below error kvm: -drive file=/dev/pve/vm-130-disk-0,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on: ...
Naveen Kumar H S's user avatar
1 vote
1 answer
49 views

Does LVM store information about the volume group configuration in the filesystem (for example /etc)?

I have an ubuntu 22.04 with software raid 5 and a LVM volume group with two logical volumes as "/home" and "/usr/local/src". I want to make a complete reinstall of the operating ...
John L.'s user avatar
  • 59
0 votes
0 answers
37 views

Does Ubuntu installation create folders automatically when using mounts on logical volumes to folders that do not exist yet?

I'm currently installing a new Ubuntu 22.04, and I have the following structure: | Volume Group - VG_SSD | | Default Logical Volumes we are used to: ...
Raul Chiarella's user avatar
0 votes
0 answers
42 views

Cloning hardidsk of 128GB into a 500 GB is not using the rest free space

I have just cloned my hard disk of 128 GB to a big one of 500GB . I have use commands dd to do it. The partition of ubuntu was done with lvm in the first installation. So when I plug in the new hard ...
yop's user avatar
  • 91
1 vote
0 answers
789 views

Unable to mount to /dev/sda3 (lvm2)

Being an amateur, I tried to mount the /dev/sda3 partition to a mount point after installing the latest LTS of Ubuntu Server $ sudo mount /dev/sda3 /home/xxxx/bake-buddy mount: /home/xxxx/bake-buddy: ...
Cardsfan's user avatar
1 vote
1 answer
134 views

How to reallocate disk space to get more room?

I have a Ubuntu Server 20.04 running in a virtual machine. It started complaining that there was no enough space on "/" to run software update, so I followed this wonderful advice: Ubuntu ...
mcnubb's user avatar
  • 11
2 votes
0 answers
773 views

why is default installation of ubuntu 22.04 lts use half of available storage?

new installation of ubuntu 22.04 always try to use half of the available storage on the disk how can we change this annoying default behavior, so it can use the full storage on disk?!?
uberrebu's user avatar
  • 250
0 votes
0 answers
210 views

Manual fsck every day

I have the latest ubuntu distro on a server which I run 24/7. About once a day the server will just appear to be offline, my plex goes down and when I try to SSH in, I just get connection refused. ...
Gullen's user avatar
  • 1
0 votes
1 answer
399 views

Filesystem reports less available disk space than LVM (lvm with luks)

There is this issue that has been bothering me for a while. LVM, lvdisplay, vgdisplay, pvdisplay, lsblk all shows the disk has the assigned 3.64 TB, but the filesystem is reporting it's only 1.5 TB. I ...
Typewar's user avatar
  • 173
0 votes
2 answers
4k views

GUI for LVM management on Ubuntu 22.04

I've seen Is there a new GUI for LVM from 5 years ago but none of the answers seem applicable to Ubuntu 22.04. I've created a 2-disk RAID and put an LVM2 physical volume on top, then created a volume ...
kbro's user avatar
  • 121
0 votes
1 answer
276 views

boot hangs and needs manual 'lvm vgchange -aay'

Related to boot hangs and needs manual 'lvm vgchange -ay' but still present in 22.04: I have an encrypted boot volume, followed by LVM root. Every boot, the other LVM volumes get activated ...
foo's user avatar
  • 137
0 votes
0 answers
66 views

Resize Ubuntu lvm2 pv partition

I'm trying to resize the Ubuntu partition, but gparted or any live Ubuntu disck are not allowing me to do it. Screenshot How can I reduce the ubuntu partition to 100GB? Thank you
Fra's user avatar
  • 1
0 votes
0 answers
95 views

How to safely reduce ubuntu-vg (LVM) to increase /boot

I keep having issues with the size of my /boot for updates (see also my post history) and so I am looking into how to increase the size of /boot from ~500MB to ~1GB. However, after booting into ...
nb137's user avatar
  • 51
2 votes
2 answers
175 views

How can I prevent certain block devices from showing up in the dock on 22.04

I have a script that creates various LVM volumes and uses them to create images etc. When those are not in use (i.e. not mounted by that script), they show up on the dock on Ubuntu 22.04 which breaks ...
Seb's user avatar
  • 61
1 vote
0 answers
3k views

How to fix lvm PV name "[unknown]" without forcing the removal of second PV from VG : WARNING: Couldn't find device with uuid CdlY5k-IynC-hYTX-hH3h-Ha

After I accidentally created a GPT label on /dev/sdb, I need to fix the PV NAME "[unknown]" (which was /dev/sdb previously) : $ sudo pvs PV VG Fmt Attr PSize PFree /dev/...
SebMa's user avatar
  • 2,331
0 votes
0 answers
480 views

Files ownership from second drive get reset on reboot

every time I reboot my system (ubuntu server 22.04) the ownership of all my files and directories from my second drive gets transferred from my regular user to user _apt and group systemd-journal. How ...
Zaha's user avatar
  • 1
0 votes
1 answer
297 views

Parted shows 2TB partition, but df says it's 98GB

I ran out of space on my root partition, df outputs: Filesystem Size Used Avail Use% Mounted on tmpfs 3.1G 2.0M 3.1G 1% /run /dev/mapper/...
Renari's user avatar
  • 101
5 votes
1 answer
14k views

Where does that new /swap.img file come from?

I installed an Ubuntu VM 22.04 LTS running on top of VMware ESXi v7 on the 4th of July 2022 with a dedicated LV for the swap : $ swapon --show NAME TYPE SIZE USED PRIO /dev/dm-3 partition ...
SebMa's user avatar
  • 2,331
2 votes
0 answers
749 views

Does the ubuntu upgrade 20.04LTS to 22.04.01LTS handle LUKS + LVM?

I saw that 22.04.01LTS is out and I am excited since I really want the new kernel! https://ubuntu.com/blog/upgrade-your-desktop-ubuntu-22-04-lts However, from my understanding there have been problems ...
Kermit's user avatar
  • 131
0 votes
0 answers
816 views

Why is my Samsung 980 Pro SSD with LUKS and LVM locking up?

Brand new fully-optioned Alienware M15R7, dual SSDs, Windows 11 Home on disk0, Ubuntu LTS on disk1 Samsung 980 Pro SSD. LUKS and LVM configured in tandem on Ubuntu (disk1). Everything has worked ...
Budouka's user avatar
0 votes
2 answers
1k views

Ubuntu 22.04 can't mount encrypted LVM

after upgrading to the latest kernel version of 22.04 my laptop gets stuck during boot. I'm prompted to insert my LUKS password, but then it fails to mount the encrypted file system. The encrypted ...
Thomas Letsch's user avatar
1 vote
0 answers
771 views

Ubuntu server 22.04 fails to install in existsing LVM

Trying to install Ubuntu server 22.04 it fails to install on existing LVM. I have created a new lv for 22.04 and told to format and mount on /. Swap on existing swap and told boot device. Fails ...
Blocket Annonser's user avatar
1 vote
1 answer
1k views

How can I define AutoInstall partitions for EFI + LVM w/ smallest drive as target for OS

Goal: Install OS onto smallest available drive, using EFI, and using LVM Problem: Currently get a fatal error early in partitioning validation due to not creating needed bootloader partition I've been ...
Kodiak Firesmith's user avatar
1 vote
1 answer
4k views

Increasing the size of swap partition/volume does not increase the size of swap

I am trying to increase the size of swap to get hibernation to working. I have followed the answer from another question but only achieved a partial success. The volume is larger # lsblk ... nvme0n1 ...
Damn Terminal's user avatar
0 votes
0 answers
82 views

Why does Ubuntu not use total LVM space?

I have 4 x 4TB hard drives in Raid10 with a total space of 8TB. I installed Ubuntu 20.04 and I see the maximum space for the file system is 63GB. How do I expand it to reach the total capacity? root@...
GHONZ TRAIL's user avatar

1
2
3 4 5
22