LVM is a logical volume manager for the Linux kernel

learn more… | top users | synonyms

72
votes
5answers
62k 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?
47
votes
0answers
2k 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 ...
25
votes
1answer
21k 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 ...
23
votes
3answers
91k 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 ...
20
votes
3answers
19k 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 ...
12
votes
3answers
22k 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
3answers
48k 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 ...
9
votes
2answers
13k 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 ...
9
votes
0answers
11k 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 ...
8
votes
3answers
15k 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 ...
7
votes
3answers
13k 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
1answer
3k 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
5k 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
2answers
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 ...
6
votes
1answer
329 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 ...
6
votes
0answers
108 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, ...
5
votes
3answers
15k 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 ...
5
votes
2answers
4k 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 ...
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
3answers
16k 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
2answers
8k 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
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
151 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
5k 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
549 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
1answer
616 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
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
870 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
550 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
2k 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
2answers
12k 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
1answer
6k 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
3answers
2k 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
280 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
245 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
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
10k 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
10k 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 ...
3
votes
4answers
25k 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 ...
3
votes
2answers
5k 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 ...
3
votes
2answers
2k 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
20k 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 ...
3
votes
1answer
299 views

Is this example of volumes and filesystems still valid?

Hi I am learning how to manage and set up a ubuntu linux server. I'm reading a book called beginning ubuntu lts server administration. It suggests setting up the hard drive manually and also gives an ...
3
votes
2answers
1k views

Wanting to understand LVM & the default setup

From what I understand LVM allows me to resized and moved around almost at will ~ from here Then I thought, with the usual partitions, I can also resize them? Perhaps with LVM I can have 1 ...
3
votes
1answer
5k views

Using LVM, how can I tell which logical volume is near full?

I am getting errors that my disk is nearly full, but i am using three logical volumes, and would need to know which i need to extend. I still have 50GB unassigned. Up until now i always extend all ...
3
votes
1answer
2k views

Cannot access the filesystems using LiveCD (LVM2,EXT2)

I have to restore the /etc/passwd file I accidentally renamed in my Ubuntu Server, so I booted the machine using a LiveCD. Problem is, the system filesystem does not appear in Nautilus, under ...
3
votes
1answer
4k 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 ...