Skip to main content

Questions tagged [lvm]

LVM is a logical volume manager for the Linux kernel

Filter by
Sorted by
Tagged with
291 votes
5 answers
540k views

What is LVM and what is it used for?

As a Linux/Ubuntu newbie, what is LVM and what is it used for? In terms of a web server installation, what benefits does it provide? Would you recommend using it?
Matthew Blackford's user avatar
123 votes
4 answers
158k 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 ...
CyborgDroid's user avatar
  • 1,343
117 votes
8 answers
464k views

How can I resize an LVM partition? (i.e: physical volume)

I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is ...
Idan Yadgar's user avatar
  • 1,271
104 votes
2 answers
7k views

How do I enable Ubuntu (using full disk encryption) to call LUKSsupend before sleeping/suspending to RAM?

This question is related to another one by @Stefan, but it is not a duplicate of it. The questions are slightly different: the author simply wanted to know if this had been implemented, while I'm ...
Jonas Malaco's user avatar
  • 1,453
101 votes
7 answers
197k views

How to change the password of an encrypted LVM system (previously alternate Installation, now advanced feature)?

I installed Ubuntu 11.10 with the alternate CD and encrypted the whole system (except boot) with the encrypted LVM. Update 2020: Encrypted LVM can be selected at the Installation type step of the ...
Filbuntu's user avatar
  • 13.2k
86 votes
4 answers
150k views

How to change LUKS passphrase?

Having installed Ubuntu 11.10 with whole disk encryption and LVM, I need to provide a way for users to easily change LUKS passphrase. Preferably, this should be done using GUI tools, thus, enabling ...
ervingsb's user avatar
  • 1,181
70 votes
1 answer
46k views

WARNING: PV /dev/sda3 in VG ubuntu-vg is using an old PV header, modify the VG to update

When I do sudo apt-get upgrade, I have the following message: WARNING: PV /dev/sda3 in VG ubuntu-vg is using an old PV header, modify the VG to update. What can I do?
JarsOfJam-Scheduler's user avatar
61 votes
4 answers
113k views

How do I check whether I am using LVM?

I installed Ubuntu by choosing the option "Something else" at the step called "Allocate drive space" of the installer. Then I created my own partition table. Now that Ubuntu is installed, can I check ...
Agmenor's user avatar
  • 16.3k
57 votes
3 answers
124k views

How to set up multiple hard drives as one volume?

I am about to set up box to basically be a file server. I plan on having multiple drives in the box, and would like to set them all up so that they appear to be a single drive. So I could essentially ...
Jacob Schoen's user avatar
  • 5,115
53 votes
8 answers
292k views

mount unknown filesystem type 'lvm2_member'

After upgrading from 14.04 to 16.06 my system failed. I have done a fresh install on a new drive, but that failed too... I have done another install but now when trying to mount my original drive ...
pst007x's user avatar
  • 8,112
46 votes
5 answers
176k views

Can't format / delete locked partition from GParted?

I can't format my hard disk for Ubuntu installation. It has Fedora installed in it. I wonder how to unlock the locked partition to delete and format it, since I am stuck at installing Ubuntu. I am now ...
owl's user avatar
  • 4,971
45 votes
2 answers
57k views

How can I modify the size of swap with LVM partitions?

I'm trying to add/modify a swap partition on my LVM-formatted hard disk by using GParted from a LiveCD. I only see one big partition taking up the whole disk. Is there a hidden swap? Does an ...
fredh's user avatar
  • 451
45 votes
2 answers
110k views

What are the advantages/disadvantages of the new encryption feature in ubuntu 13.10

I'm in the middle of installing 13.10 and the Ubuntu page I was following on how to install from a USB stick says nothing about these two choices (on the Installation type screen): 1) Encrypt the ...
user250093's user avatar
43 votes
7 answers
27k views

Increase Swap in Ubuntu 18.04 Under Lvm and Encrypted File System

I did a clean install of Ubuntu 18.04 Desktop. I used the graphical installer and chose "Encrypt the new Ubuntu installation for security". It used by default LVM and created a partition for the ...
leviatan89's user avatar
34 votes
3 answers
94k views

Adding Disks With LVM

I'm sure this has been answered somewhere on here before (I even found kinda a guide here, but seemed to be a bit spotty and incomplete) but I was wondering if someone could assist me or at least ...
oink's user avatar
  • 1,081
34 votes
5 answers
82k views

Is there a new GUI for LVM

What is the GUI manager for LVM in 17.10? There is no system-config-lvm that I can see.
bill whittaker's user avatar
34 votes
3 answers
48k views

The initramfs will attempt to resume from /dev/dm-1

I'm setting up a new Ubuntu 18.04 server and have already played through one backup/restore loop. So the entire system has been restored from backup with a fresh RAID and LVM volumes. Now recently, ...
ygoe's user avatar
  • 998
33 votes
1 answer
66k views

How is Trim enabled? [duplicate]

I have heard, that Ubuntu 14.04 will have Trim enabled by default. How will this be done? By adding a discards option to the ext4 mount options or by running a cron-job? Will the default options for ...
student's user avatar
  • 2,312
33 votes
5 answers
133k views

Ubuntu won't boot because of lvmetad

I've followed this tutorial to install Ubuntu 15.10: https://web.archive.org/web/20180530122126/http://thesimplecomputer.info/full-disk-encryption-with-ubuntu After restarting my computer I got to ...
Mac Dre's user avatar
  • 331
30 votes
2 answers
64k views

Setting up LVM Snapshot as a backup/restore point in ubuntu

Setting up LVM Snapshot as a backup/restore point in ubuntu. Why? Well, as I see it, with all the great usefulness of Linux, its biggest drawback is with its mixed up way of installing apps. All the ...
rub's user avatar
  • 538
29 votes
4 answers
64k views

How to shrink Ubuntu LVM logical and physical volumes?

I have installed Ubuntu 12.10 as the only OS on my system. I told Ubuntu to overwrite everything as I was in a hurry, hence I only have the two partitions Ubuntu creates, the Boot Partition of a ...
Hailwood's user avatar
  • 4,977
27 votes
2 answers
29k views

Every time I install or remove a package I get LVM2 error [duplicate]

I need help dealing with this error. I run Ubuntu Budgie 18.04LTS. anon@computer:~$ sudo dpkg --configure -a Setting up lvm2 (2.02.176-4.1ubuntu3) ... update-initramfs: deferring update (trigger ...
Chris's user avatar
  • 373
25 votes
9 answers
47k views

How do you rename the volume group that contains the root volume in LVM?

I want to rename the volume group that my root volume is on. How can I do this?
flickerfly's user avatar
  • 7,309
24 votes
4 answers
71k views

How to configure LVM & LUKS to autodecrypt partition?

I have recently installed ubuntu server 11.04 with the full lvm encryption(installed from the setup) . I wish now to use a key file to do automatic unlock. I have tried to follow this guide http://...
isoman's user avatar
  • 669
23 votes
3 answers
35k views

Expanding disk inside Hyper-V using LVM

In my lab environment I have an Ubuntu server 12.04 which I am trying to add space to. LVM was set up at boot up and after adding 100GB through the edit disk wizard I am unable to add that space to ...
Joseph Barker's user avatar
22 votes
5 answers
107k views

How to remove all LVs VGs and Partitions On All Drives Before Installing 12.04

I have 2 hard drives that had been used for Ubuntu Server 11.10. Now I would like to start from scratch with 12.04 but I'm having some trouble with the existing logical volumes and volume groups. ...
Mark's user avatar
  • 463
22 votes
4 answers
106k views

How can I create one logical volume over two disks using LVM?

Hi. I've got a working Ubuntu 12.04 server, which is going to serve as media server. I've added two disks of size 3TB to put my data on, and I wish to combine these as one 6TB logical volume which I ...
Hydrosine's user avatar
  • 323
22 votes
1 answer
47k views

Logical Volume, Physical Volume and Volume Groups

Please can someone explain to me the meaning of Logical Volume, Physical Volume and Volume Groups? Of what importance and advantage are they in linux?
user245621's user avatar
22 votes
2 answers
51k views

Mounting encrypted LUKS partition from Live CD

Error to begin with, can't boot I had to do a hard reboot of my computer, and when booting up it (initramfs I think) gave an error: mount: mounting /dev/mapper/ubuntu--vg-root on /root failed: ...
Mads Skjern's user avatar
  • 1,026
22 votes
3 answers
147k views

How to resize / enlarge / grow a non-LVM ext4 partition

I have already searched the forums, but couldnt find a good suitable answer: I have an Ubuntu Server 10.04 as KVM Host and a guest system, that also runs 10.04. The host system uses LVM and there are ...
Mischa's user avatar
  • 325
21 votes
3 answers
51k views

What is the use of /boot (lvm based) in partitioning?

As separate /home partition helps in easy reinstallation/upgrade. Does having /boot help while dualbooting with windows? I mean is it useful for normal desktop/notebook users or it is advanced ...
saiki4116's user avatar
  • 659
21 votes
1 answer
8k views

How can I use LVM snapshots in Ubuntu?

I've installed Ubuntu using these options: Erase the disk and install Ubuntu Encrypt the new Ubuntu installation Use LVM How can I create LVM snapshots, so that I'm able to revert system changes ...
Olek Gornostal's user avatar
20 votes
2 answers
50k views

How do I move my LVM 250 GB root partition to a new 120GB hard disk?

I have the following situation: My current Ubuntu (12.04) installation is running from an external HDD (250 GB) because I was to lazy to buy an new internal hdd. Now i've got a new internal (120GB) ...
NotANormalNerd's user avatar
20 votes
7 answers
87k views

How to move / copy logical volume (lv) to another volume group (vg)?

Basically, I want to move / copy several logical volumes (lv) into a new volume group (vg). The new volume group reside on a new set of physical volumes. Does anyone know how to do that safely without ...
nobody's user avatar
  • 681
20 votes
3 answers
27k views

Failed to connect to lvmetad - Stuck on boot

I upgraded my PC to Ubuntu 17.10, and now that I've restarted my PC I get this message: Failed to connect to lvmetad. Falling back to device scanning. /dev/mapper/ubuntu--vg--root: clean, 500699/...
Ravers's user avatar
  • 303
18 votes
1 answer
9k views

update-grub not working -- No medium found

I'm running Ubuntu 20.04 LTS with LVM and UEFI on a Thinkpad T480. Whenever I run sudo update-grub, I get this output: Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-...
Chaitu Nookala's user avatar
17 votes
6 answers
44k views

How do I know what physical drives/partitions are behind my /dev/mapper/isw_dghbbcaabe_RAID_Volume11?

This is a just upgraded Ubuntu 10.04.1 LTS machine. The /dev/mapper/isw_dghbbcaabe_RAID_Volume11 is "new" to the upgrade but I don't know what physical drives/partitions are included in the "device". ...
Sebas's user avatar
  • 173
17 votes
3 answers
96k views

How do I shrink the root logical volume (LV) on LVM?

I don’t need to actually shrink the MBR partition, just the logical volume that contains the root “/” filesystem. It’s ~200GB now, and I need to shrink it to ~150GB to make room for a new logical ...
Michael Kropat's user avatar
17 votes
5 answers
51k views

Can't find LVM root dropped back to initramfs

When I boot up I get a screen saying: Gave up waiting for root device Then it lists common problems: ALERT! /dev/mapper/ubuntu--vg-root does npt exist. Dropping to a shell! Then I get an initramfs ...
tillius's user avatar
  • 171
17 votes
1 answer
5k views

GRUB_TIMEOUT in /etc/default/grub not changing the wait time with LVM

First of all: Yes, I ran sudo update-grub after changing the value. After a new install of Ubuntu 18.10 on an empty disk the wait time at the grub menu is of 30 seconds (half an eternity!). The line ...
muclux's user avatar
  • 5,174
17 votes
6 answers
15k views

How to migrate an encrypted LVM install to a new disk

I have a somewhat customised laptop install I want to move to a SSD directly, without having to reinstall Ubuntu, reinstall all the apps and make all the other changes again. The SSD is smaller, so I ...
Hamish Downer's user avatar
16 votes
2 answers
118k views

umount: /: target is busy

When I ran the command umount /dev/mapper/ubuntu--gnome--vg-root I I got : umount: /: target is busy (In some cases useful info about processes that use the device is found by lsof(...
user avatar
16 votes
3 answers
58k views

How can I resize an active LVM partition?

I am quite new to LVM and I'm uncertain about what is happening here. I was not the one to initially setup this machine. There is a harddrive of 1tb in size and an LVM partition of only 50gb in size. ...
Alex Dow's user avatar
  • 283
16 votes
3 answers
188k views

How to unlock partition in Gparted? [duplicate]

Im new in using Ubuntu and I cant seem to make any partitions for a new dual boot OS and the swap file or for any other matter i would want to use the partition because the drive is locked. I have ...
Shelly's user avatar
  • 161
15 votes
3 answers
56k views

How to install Ubuntu server with UEFI and RAID1 + LVM

I used to install my servers with LVM over software RAID1, and grub install on the MBR of both drives. Now I have an UEFI server, and the compatibility (BIOS) mode does not seem to work. So I went ...
alci's user avatar
  • 5,839
14 votes
2 answers
71k views

Install Ubuntu 18.04 desktop with RAID 1 and LVM on machine with UEFI BIOS

I have a machine with UEFI BIOS. I want to install Ubuntu 18.04, desktop version with RAID 1 (and LVM) so my system will continue to work even if one of the drives fail. I haven't found a HOWTO of how ...
Niclas Börlin's user avatar
14 votes
2 answers
5k views

Installing Lubuntu 16.10 with Encrytion

As some of you may know, there is bug in the installer of Lubuntu regarding full disk encryption with LVM. I have read at multiple places to use sudo swapoff --all as a workaround. That does not ...
Torrintino's user avatar
13 votes
1 answer
23k views

Ubuntu does not use full disk space - how to extend?

I recently installed Ubuntu 20.04 server*, and after a while got into trouble because of "no space left on device". It was only then when I realized that the Ubuntu install had not used the ...
not2savvy's user avatar
  • 515
13 votes
1 answer
44k views

lvmetad is not active yet; using direct activation during sysinit [duplicate]

After install Lubuntu 16.04 show the following message during the boot: lvmetad is not active yet; using direct activation during sysinit /dev/mapper/lubuntu--vg-root: clean, 121574/7168000 files, ...
Pablo Schweitzer's user avatar
12 votes
2 answers
83k views

How do I rescan drives I've expanded?

I frequently expand drives on my VMs. How can I rescan the drives without rebooting the server?
flickerfly's user avatar
  • 7,309

1
2 3 4 5
22