LVM is a logical volume manager for the Linux kernel

learn more… | top users | synonyms

63
votes
4answers
52k 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?
29
votes
0answers
1k views

How do I enable Ubuntu to suspend the machine using LUKSsuspend during sleep/hibernate

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 ...
20
votes
3answers
73k 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 ...
17
votes
3answers
16k 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 ...
16
votes
1answer
11k views

How is Trim enabled?

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 ...
13
votes
1answer
11k views

How can I install Ubuntu encrypted with LUKS with dual-boot?

Ubuntu 13.04 installation disk has an option to install Ubuntu encrypted using LUKS. However, there is no option to perform an encrypted installation along-side existing partitions for a dual-boot ...
8
votes
3answers
41k 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
3answers
17k 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 ...
8
votes
2answers
12k 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
2answers
10k 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 ...
7
votes
1answer
6k 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
2k 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
3answers
11k 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: ...
6
votes
1answer
325 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
5k 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 ...
5
votes
3answers
13k 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
3answers
4k 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
12k 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
4k 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
2k 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 ...
5
votes
1answer
2k 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 ...
4
votes
1answer
467 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
539 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
9k 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
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
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 ...
4
votes
1answer
535 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
0answers
44 views
+50

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 ...
3
votes
4answers
22k 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
3answers
14k 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
260 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
976 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
979 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
3k 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 ...
3
votes
1answer
677 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 ...
3
votes
1answer
5k 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
14k 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 ...
3
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 ...
3
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!
3
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 ...
3
votes
1answer
150 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 ...
3
votes
0answers
246 views

lvm disappeared after disc replacement on raid10

here my problem: I am running ubuntu 12.04 on a raid10 (4 disks), on top of which I installed an lvm with two volume groups (one for /, one for /home). The layout of the disks are as follows: Disk ...
3
votes
1answer
1k views

Install LVM on Ubuntu Server

I want to setup an Ubuntu server with LVM. I installed Ubuntu using ubuntu-12.04.1-alternate-amd64.iso because I believe that the "alternate" disc must be used to install with LVM. However it created ...
3
votes
3answers
4k 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
3answers
6k views

Manual LVM encryption setup with Ubuntu 13.04

I am trying hard to get ubiquity works. The thing is that I want to setup Ubuntu 13.04 on a full encrypted LVM aside a Windows installation. So I can't use the default option of full disk encryption. ...
2
votes
2answers
8k 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 ...