LVM is a logical volume manager for the Linux kernel

learn more… | top users | synonyms

80
votes
5answers
75k 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?
67
votes
0answers
3k 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 ...
28
votes
5answers
110k 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 ...
27
votes
1answer
29k 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 ...
20
votes
3answers
24k 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 ...
18
votes
3answers
27k 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 ...
13
votes
0answers
17k views

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

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 ...
10
votes
2answers
15k 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 ...
10
votes
3answers
56k 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 ...
8
votes
5answers
30k 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 ...
8
votes
3answers
19k 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 ...
8
votes
3answers
3k 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 ...
8
votes
2answers
238 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, ...
7
votes
3answers
15k views

Fixing unbootable installation on LVM root from Desktop LiveCD

I just did an installation from the 10.10 Desktop LiveCD, making the root volume an LVM LV. Apparently this is not supported; I managed it by taking these steps before starting the GUI installer app: ...
7
votes
1answer
7k views

How do I check / modify LVM state on a pre-installed system?

So I just got a nice little home server (not 100% a server, it's also destined to run a few GUI jobs, but, mostly) configured to my specs, and it came with Ubuntu 10.4 pre-installed by the guys who ...
7
votes
2answers
9k 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 ...
7
votes
1answer
5k 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 ...
7
votes
3answers
6k 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 ...
6
votes
3answers
17k 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 ...
6
votes
2answers
14k 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 ...
6
votes
1answer
330 views

Combine two partitions belonging to one phsyical drive?

when I first setup my Ubuntu Server, I had 1 x 3TB drive. Since I couldn't partition/format it into a 3TB ext4, I partitioned it into 2 x 1.5TB ext4. partition1 = 1.5TB partition2 = 1.5TB Now I ...
5
votes
4answers
28k 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 ...
5
votes
3answers
5k 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 ...
5
votes
2answers
7k views

how to modify size of swap with a lvm partition?

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 ...
5
votes
3answers
19k 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 ...
5
votes
2answers
13k 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 ...
5
votes
2answers
5k views

How can I either free up enough space on root or resize my partitions?

I'll start my saying that although I've used Ubuntu for a number of years I've rarely taken the time to explore Linux under the hood. I've been content to rely on GUI tools for most of my needs, only ...
5
votes
3answers
15k 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 ...
5
votes
1answer
3k views

Setting up lvm with HDD and SSD

My current hard drive is just about full and rather than just toss it and get a new one (since it works fine), I want to get a new drive and set them both up using lvm. While I'm at it, I also want to ...
5
votes
1answer
153 views

What is the best way to convert or copy an VM image into an lvm?

I have a couple of VMs running on images instead of lvms. I am not concerned about downtime but just about convenience of the process.
5
votes
1answer
6k views

What grub modules are necessary to boot from LVM on a DOS partition?

I am trying to make my Ubuntu machine boot from a /boot LVM, and it seems that the default core.img does not support LVM, so I am trying to figure out what modules I need to supply to grub-mkimage in ...
5
votes
1answer
563 views

Using LVM snapshots on a live system: possibility of corruption due to system activity

If I am doing backups from LVM snapshots of a live system, how can I best avoid problems due to the snapshot being taken during things like upgrades? Presumably this wouldn't be catastrophic, since ...
4
votes
3answers
13k 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
740 views

Can't boot after converting lvm2 root to lvm2 raid1

I have Ubuntu 12.10 (no updates, kernel 3.5.0-17-generic) on first HDD (sda), which uses MBR and was partitioned as "Use whole disk for ubuntu" with LVM2 enabled. Root filesystem is on LVM2 ...
4
votes
3answers
26k 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
1answer
1k views

MD + LUKS + LVM will not cleanly shutdown

My setup is currently raid1 + luks on each md partition and lvm on top to stripe between the arrays. There is only one volume group with one logical volume currently. sdc ...
4
votes
1answer
2k 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 ...
4
votes
1answer
558 views

11.04 server does not boot after installation

Have successfully finished the re-installation of 11.04 server (single OS), but when I reboot the text "Linux Operating System ..." is displayed and then it stops. Previous test installation of 11.04 ...
4
votes
2answers
3k views

Encrypted LVM not accepting my passphrase anymore

I have Ubuntu 11.04 on Thinkpad X41 and have been using it for a couple of months. From time to time System Update used to run and show me a list of recommended updates. Finaly, yesterday I accepted ...
4
votes
1answer
7k views

Disks constantly spinning no matter what I do (jbd2). I'm on the brink of insanity

My disks have been spinning for months. It started with Ubuntu 11.10, and continues with 12.04. I can't figure out how to stop it. I've looked at various folks suggestions online about ext4 commit ...
4
votes
1answer
2k views

SSD + TRIM + ext4 OK. What about LVM and RAID?

I've read that SSD TRIM is now supported in the recent kernels with ext4 too (see How to enable TRIM? ). Is it OK/safe to enable TRIM when having a) LVM b) RAID1+LVM? Thanks!
4
votes
3answers
3k views

recover LVM after hdd crash

Yesterday, one hdd of my LVM crashed (smart-error) The Machine has the following setup: - 4 hdds - 1 Partition Raid10 (System, 4*50GB) - 1 Partition normal (/boot, 200MB, sda) - 1 Partition LVM2 ...
4
votes
1answer
24 views

Can I disable LVM on my ubuntu installation

I have workin Ubuntu instance. Now I decided to refuse of LVM usage. Can I disable LVM and reformat filesystem so that regular file system will be used?
4
votes
1answer
658 views

Proper way to remove an active / inactive LVM snapshot

I have created a sample ruby script file for removing extra LVM snapshots from the system. For removing LVM snapshot, we are using lvremove command. This command is working fine and we can remove ...
4
votes
1answer
344 views

Is it safe to disable resize_inode on ext4 FS?

I have 2TB spanned LVM ext4 volume which contains large and mostly static files. With "static" I mean they usualy don't change in time. The volume is 99% full, and adding new files becomes very slow ...
4
votes
1answer
2k views

Unattended Ubuntu installation LVM confirmation

I am working on getting an unattended install iso setup for deploying the current LTS of Ubuntu (12.04.3) and have everything just the way I want it, except it is still asking for me to confirm the ...
4
votes
4answers
3k views

It is possible to install dual boot Ubuntu and WIndows 7, using LVM?

I am installing a fresh install of ubuntu 12.10, and says than I can install ubuntu using the entire disk and creating LVM "partitions", but my plan is to install Windows 7 using one of those LVM ...
3
votes
2answers
11k 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 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) and i ...
3
votes
3answers
2k 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 ...
3
votes
1answer
80 views

How to install Warty Warthog on VirtualBox? [closed]

I was following this tutorial on how to install Ubuntu 4.10 But in the step for partitioning disks, I only get the option: Manually edit partition table When I try to create a new logical volume ...