LVM is a logical volume manager for the Linux kernel

learn more… | top users | synonyms

23
votes
3answers
92k 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 ...
25
votes
1answer
22k 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 ...
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 ...
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 ...
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 ...
2
votes
3answers
11k 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 ...
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 ...
9
votes
0answers
12k 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 ...
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 ...
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 ...
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 ...
2
votes
3answers
1k 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 ...
1
vote
1answer
51 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 ...
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 ...
2
votes
1answer
213 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 ...
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 ...
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 ...
6
votes
0answers
110 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, ...
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 ...
0
votes
3answers
236 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). ...
0
votes
2answers
6k 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 ...
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 ...
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
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 ...
2
votes
1answer
838 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
4k views

Mount LVM encrypted partition on external HDD - Device /dev/sdc5 is not a valid LUKS device

Recently, my Ubuntu server was unable to boot on my 500Go HDD I removed the HDD from my server case, put it in an external case, and connected it via USB to an Ubuntu laptop. I have SSH access on ...
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 ...
2
votes
1answer
377 views

Remove lvm to install Ubuntu

I am trying to install Ubuntu. However I have an lvm on the drive I want to install Ubuntu on. Gparted cannot remove the lvm which is /dev/sda6. How can I remove the lvm to instal lvm over it?
2
votes
2answers
11k views

view LVM paritions in windows 7

im trying to browse in windows an old harddisk that i got, but its a LVM patition. How can I see a partition that is ext3/4 or part of LVM partition in windows? Anyone can recommend on a tool?
1
vote
0answers
286 views

Is Ubuntu still toxic to Macs with Fusion Drive?

Installing Ubuntu BROKE my (since-repaired) Fusion Drive. I burned ubuntu-14.04-desktop-amd64+mac.iso to a DVD, and booted it and I asked it to install beside my OSX install on my homemade* Fusion ...
1
vote
1answer
408 views

Encrypt home directory / LVM encryption - Ubuntu Server 14.04 setup

There seems to be two different steps in the Ubuntu Server 14.04 installation that involve encryption. The first asks if I want to encrypt my home directory: The second has an option for encrypted ...
1
vote
2answers
707 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 ...
1
vote
0answers
902 views

12.10 installation with LUKS encryption & LVM in EFI mode

I try to figure out how to perform an installation of Ubuntu 12.10 (EFI Mode) with LUKS encryption and LVM scheme. What I've done so far: Booted on a GParted Live CD 0.14.1-6 in "EFI mode only" (in ...
0
votes
0answers
230 views

How to recover encrypted LUKS lubuntu data?

I installed lubuntu 13.10 with encryption from the CD and then updated to 14.04 when it became available. Now booting up fails. My hard drive has at least two partitions, one boot and one LUKS ...
0
votes
0answers
145 views

Extend lvm with unallocated space of a ssd

I've cloned my ubuntu 14.04 install from a smaller ssd (256Gb) to a bigger one (512Gb). How can I extend my home with the unallocated space? I usually know how to extand a partition, but I don't how ...
0
votes
1answer
115 views

How to partition for a successfull boot with raid5 + lvm +encryption

I have been trying to make this setup work for several days. The system never boots... When I do a setup without the software raid I can get it to work. How should I set up my system partition to be ...
0
votes
1answer
474 views

accidentally use lvm during installation of 13.10

I have 2 partitions, one is for window and the other one is for Ubuntu. However I had a 12.04 version of Ubuntu , and I want to upgrade to 13.10. During installation process I choose replace 12.04 ...
0
votes
1answer
4k views

How to install ubuntu 12.10 with / partition on LVM?

After installing Ubuntu 12.10 I cannot boot my machine anymore. I get the following error. Gave up waiting for root device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= ...