LVM is a logical volume manager for the Linux kernel
24
votes
4answers
14k 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?
15
votes
3answers
6k 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 ...
6
votes
1answer
3k 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 ...
6
votes
2answers
14k 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 ...
6
votes
1answer
256 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
1answer
2k 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 ...
5
votes
3answers
4k 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:
...
5
votes
3answers
877 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
3k 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
1answer
5k 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 ...
5
votes
1answer
3k 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 ...
5
votes
1answer
147 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.
4
votes
1answer
454 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
1answer
818 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 ...
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
727 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
407 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
381 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 ...
3
votes
1answer
224 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
1answer
459 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
1k 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
2answers
3k views
How to change the password of a 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 ...
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
1answer
541 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
542 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
3answers
2k 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
3answers
6k 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 ...
2
votes
1answer
135 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 ...
2
votes
2answers
405 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
3answers
8k 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
2answers
13k 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 ...
2
votes
2answers
352 views
Home server filesystem
I'm planing to build a home server to act mainly as a uTorrent download and file server for me and the people I live with. I have come up with the following filesystem configuration and I would like ...
2
votes
1answer
450 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 ...
2
votes
1answer
217 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 ...
2
votes
1answer
760 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 ...
2
votes
2answers
2k 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
Converting to btrfs from md raid5 with lvm
I have decided to start the transition to btrfs this weekend. I have a desktop with one md raid1 which is used for boot, and one large md raid5 for everything else. On top of the md raid5, I have LVM ...
2
votes
2answers
941 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 ...
2
votes
1answer
146 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 ...
2
votes
1answer
244 views
How to run multiple distros using lvm
I've seen quite a few posts around about running multiple distros but not sure they apply to using LVM (and without Windows). I'm using a machine that's about 3 years old. Setup:
Intel Core i7 ...
2
votes
1answer
507 views
Alternate install to USB bootloader issues using LVM encryption
I am trying to use the alternate installer (12.04.1 i386) run from a CD to install onto a USB thumb drive (to have a portable installation).
I am using the guided LVM install. I get to the part ...
2
votes
1answer
510 views
After kernel upgrade, unable to boot with / on lvm
I did a kernel upgrade on my desktop system from 2.6.32-41 to 2.6.32-42 using apt-get dist-upgrade. I opted not to update /boot/grub/menu.lst and added the required lines myself, based on the previous ...
2
votes
1answer
139 views
Why is LSHW Only listing one of my two HDDs? [closed]
I have a 120GB HDD and a 1TB HDD in the system. I installed Ubuntu Server using LVM on the 120GB. After installation I added the 1TB to the existing volume group and added 10GB to /home as a test.
...
2
votes
1answer
108 views
Possibility of inconsistencies in backups across LVM logical volume snapshots
I'd like to start using LVM snapshots to help ensure quality backups.
If I have a /var partition that is on a separate volume from the rest of the root filesystem, can I still ensure that a backup ...
2
votes
0answers
60 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 ...
2
votes
0answers
176 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
0answers
104 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 ...
2
votes
0answers
89 views
new 12.04 on existing lvm with encrypted /home - cannot login?
After a few unsuccessful installation attempts I finally found this guide that looked all set to solve all my problems. After following it however - reinstalling and doing the "Repair the boot image ...
2
votes
0answers
92 views
How to choose LVM mapping mode when installing Ubuntu server 12.04?
I would like to create a volume group with striped mode on top of 2 RAID-1 devices.
The issue here is I cannot choose striped when configuring LVM at installation stage. It's always be linear.
2
votes
0answers
107 views
when installing /boot inside a lvm group, where do I install the boot loader?
I am setting a personal file/cloud server based on ubuntu server 12.04 and owncloud but there are certain things about the partitioning that I can't get my head around...
Let's say for example I want ...
