LVM is a logical volume manager for the Linux kernel

learn more… | top users | synonyms

44
votes
8answers
191k 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 ...
31
votes
1answer
50k 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 ...
3
votes
0answers
235 views

Using LVM in the already running Ubuntu system

I am using Ubuntu 14.04 dual booting Windows 10. I had one hard drive and now I've added another. I've allocated around 840GB for Ubuntu. In the past I've been able to mount this drive to /media/...
25
votes
3answers
42k 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 ...
21
votes
2answers
34k views

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

since I could not find how to post this as a blog/post/tutorial in AskUbuntu.. I decided on posting it here, were it is best exposed anyhow ... Setting up LVM Snapshot as a backup/restore point in ...
103
votes
1answer
5k 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 ...
15
votes
3answers
26k 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://...
14
votes
5answers
57k 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 ...
13
votes
3answers
87k 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 ...
5
votes
2answers
14k views

Setting Up RAID During 13.04 Install

I am attempting to install Ubuntu 13.04 Desktop on RAID 5, but I can't figure out how to do it. I have read that it can be done during the install, though I haven't found a good explanation of how ...
121
votes
5answers
134k 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?
18
votes
4answers
38k views

How to change the password of an encrypted LVM system (done with the alternate Installation)?

I installed Ubuntu 11.10 with the alternate CD and encrypted the whole system (except boot) with the encrypted LVM. Everything works great as before, but I would like to change the password of the ...
24
votes
3answers
47k 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 ...
10
votes
5answers
6k 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 ...
7
votes
3answers
22k 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 ...
4
votes
1answer
3k views

Swap encryption and hibernating

I run Ubuntu 12.04 on my laptop, with an encrypted home folder + swap partition. Before I had this encrypted setup, I used to have my hibernation enabled. I found this documentation on how to enable ...
8
votes
3answers
8k views

How do I create a multiboot environment using LVM for your *buntu operating systems on a GPT formatted system drive, in a UEFI based system?

My reason for using LVM is that I reinstall, upgrade and generally mess around with my OS installs so much that I have found that LVM gives me fantastic flexibility in moving, expanding, cloning and ...
14
votes
2answers
35k 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 ...
5
votes
4answers
42k 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 ...
2
votes
3answers
24k 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 ...
2
votes
1answer
5k views

Install Ubuntu 15.04 with full disk encryption, but without swap partition

I have a laptop with 16GB of RAM, but SSD is only 64GB. I need to install Ubuntu 15.04 with both standard options - "Encrypt the new Ubuntu installation for security" and "Use LVM with the new Ubuntu ...
13
votes
3answers
25k 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 ...
10
votes
3answers
25k 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 ...
4
votes
3answers
874 views

What is the proper way to install Ubuntu 15.04 with LVM, LUKS, and manual partitioning?

I am trying to install Xubuntu 15.04 with LVM and LUKS, manually partitioning in order to have a separate /home partition. So far I have booted the Xubuntu live CD and went through these steps: ...
15
votes
2answers
33k 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 ...
0
votes
2answers
11k views

Is It Possible To Recover A Partial LVM Logical Volume?

Background It is an Ubuntu 12.04 VirtualBox VM with 5 virtual HDDs (VDI), NOTE this is just a test VM, so not well planned ahead: ubuntu.vdi for / (/dev/mapper/ubuntu-root AKA /dev/ubuntu/root) and ...
1
vote
1answer
60 views

What's in this 524MB drive?

I have recently installed Ubuntu 14.04 on my dual boot PC with Windows 8.1. On Ubuntu I have seen a 524 MB drive popped up. As I take a look at it, its not swap or anything. Its contents are as ...
2
votes
1answer
2k views

How to migrate Ubuntu12.04 to LVM without any data loss

The current system is installed on the traditional disk, now I want to migrate it to LVM managed disk, how can I migrate it without any data loss? I'm working with vSphere, so I can add and remove ...
2
votes
1answer
5k views

install LVM dual boot with Windows

I am trying to install Ubuntu dual boot with windows. I have about 150G free space in may machine and want to install Ubuntu 14.04 there. My machine has this partition structure Partition 1 ...
2
votes
1answer
296 views

Merge LUKS-partition with partition on another HDD

I just bought a 2 TB hard disk because the home partition on the old one is almost full. What I want to do is to extend the home partition on hard disk 1 (sda2) to also include all the space on the ...
1
vote
1answer
254 views

How to grow LVM partition to include newly released partition (now unallocated space)

I had a Windows partition and I nuked it in favor of a VirtualBox VM. Now I could use the extra space it was occupying. LVM2 is in use on the Linux side but the Windows partition which has since been ...
8
votes
2answers
456 views

Backup LVM snapshots and Grub2 problem

Long story short, I'm using obnam to take backups of my system. This is what I do: take LVM snapshot of /, /usr, /boot, /var, /home mount the snapshots on /bck-snapshots, /bck-snapshots/usr, /bck-...
7
votes
3answers
7k views

How should I configure TRIM Support for LVM logical volumes?

I am setting up a notebook for software demo purpose. The machine has a Intel Core i7 CPU, 8GB RAM, a 128GB SSD, and runs Ubuntu 12.04 LTS 64bit desktop. As it is, the SSD is configured to have a ...
4
votes
2answers
9k 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. ...
3
votes
1answer
7k views

How do I resize an encrypted LVM to install another copy of Ubuntu?

I have an old PowerBook which has been happily running Ubuntu Server for a few months. Now I want to repartition the hard drive and install Ubuntu Client, while keeping my existing installation intact....
2
votes
1answer
4k views

Can I create a hybrid software-RAID array with disks of different sizes?

Products such as Synology offer something called Synology Hybrid RAID http://www.synology.com/us/products/features/RAID.php This RAID type allows you to make best use of your disks available by ...
1
vote
3answers
1k views

No Swap Partition!

I'm in dire need of help. My system has become incredibly laggy and hardly usable. I have realised that this is because for some reason I'm running without virtual memory (this is not intentional). ...
4
votes
3answers
59k 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 ...
4
votes
0answers
803 views

Upgraded to 16.04 and now getting error message

After successfully upgraded to 16.04, I am now getting this message whilst booting lvmetad not active yet, using direct access
3
votes
1answer
710 views

How to increase /boot partition size when installing Ubuntu 14.04 using the “use entire disk and set up encrypted LVM” option?

How to edit the size of the /boot partition when installing Ubuntu? Using the guided partitioning option "use the entire disk and set up encrypted LVM" results is a /boot partition which is only 236MB....
3
votes
2answers
4k views

Move free space out of LVM

I have a 500 GB LVM2 container on a 500 GB HDD which holds a 96 GB root partition (ext4) and a 4 GB swap partition. I made this setup using the alternate cd and set the amount of disk space to be used ...
3
votes
3answers
3k views

Recover data from formatted LVM (Luks, Ext3) after Ubuntu installed over it

I have a 1TB HDD and some days ago I did a mess That disk had: One EXT3 partition ( / ) One EXT3 partition ( /boot ) One LUKS LVM which had a EXT3 partition of about 200 GB I wanted to replace ...
2
votes
2answers
8k views

Unable to mount an LVM Hard-drive after upgrade

I imagine this is a basic gotcha ... but I can't see it. I have a system with 2(physical) harddrives. The boot system (/dev/sda) was running 10.04 & the second drive (/dev/sdb) was just a mounted ...
2
votes
1answer
1k views

Should I use a volume group or a logical volume for /home on LVM?

I'm setting up Lucid on a new laptop and I'd like to use LVM - partly for flexibility and partly to make it easy to move /home to a new distro if needed. Should I be setting up /home on it's own VG (...
1
vote
1answer
10k views

Fstab Mount new LVG

I am having difficulty auto-mounting my newly created LVG. I tried adding the following line to /etc/fstab: /dev/vgBackup/lvBackup /home/stuart/volume_backup ext3 defaults 0 1 I also tried swapping ...
1
vote
2answers
3k 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: ...
3
votes
4answers
6k views

How to install in EFI mode with Encrypted LVM?

I'm trying to properly install Ubuntu 12.04.1 LTS 64-bit PC (AMD64) with the alternate install CD ".iso" on a lenovo Thinkpad X220. Default Hard Disk (with a pre-installed version of Windows 7) has ...
3
votes
1answer
9k views

LUKS initramfs boot problem: “/dev/mapper/ubuntu-root does not exist.” How can I fix it using a backup?

First time asker, relatively new to Ubuntu/Linux. Haven't had much luck with the search function. Please forgive the essay below - the problem is a bit unique, I think... I'm running 12.04 on a ...
3
votes
3answers
3k views

Logical volume is not mounted but is in use. Please close all applications using this device (eg iscsi)

How do I resize a LVM partition using system-config-lvm? As per: http://askubuntu.com/a/489909/45156 I clicked on the partition and try to resize, but get Logical volume is not mounted but is in ...
2
votes
2answers
1k views

Shrink extended partition containing lvm

I have been bashing my head against the wall, regretting ever having opted into using LVM. I need to shrink the 75GB /dev/sda2/ to make room for a new OS installation. To do this, I need to shrink ...