Questions tagged [lvm]

LVM is a logical volume manager for the Linux kernel

LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes. In particular, a volume manager can concatenate, stripe together or otherwise combine partitions into larger virtual ones that administrators can re-size or move, potentially without interrupting system use.

Volume management represents just one of many forms of storage virtualization; its implementation takes place in a layer in the device-driver stack of an OS (as opposed to within storage devices or in a network).

1106 questions
298
votes
5 answers

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?
133
votes
4 answers

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 of df -h : Filesystem …
CyborgDroid
  • 1,443
118
votes
8 answers

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 in use. When I opened GParted in the Live CD, I…
Idan Yadgar
  • 1,281
  • 2
  • 9
  • 5
104
votes
2 answers

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 asking for help specifically on how to do this (in a…
Jonas Malaco
  • 1,453
  • 1
  • 13
  • 15
103
votes
7 answers

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 Ubuntu install, click on Advanced features and choose…
Filbuntu
  • 13,891
87
votes
4 answers

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 novice users to perform this basic task.
ervingsb
  • 1,191
72
votes
1 answer

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?
61
votes
3 answers

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 have it mounted at say /media and not really care…
Jacob Schoen
  • 5,285
61
votes
5 answers

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 whether I am using LVM for my volumes ? In…
Agmenor
  • 16,394
58
votes
8 answers

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 with all my files on I get this…
pst007x
  • 8,210
47
votes
5 answers

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 using a live CD to do the task. No options are…
owl
  • 4,991
46
votes
2 answers

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 LVM-formatted system even need a swap? I'm using…
fredh
  • 461
45
votes
2 answers

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 new Ubuntu installation for security (you will…
44
votes
7 answers

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 swap instead of the file. Here is sudo swapon -s…
38
votes
3 answers

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, unattended-upgrades has reported this: Processing…
ygoe
  • 1,058
1
2 3
73 74