In computer storage, Logical Volume Management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.

learn more… | top users | synonyms (1)

7
votes
5answers
8k views

Linux md vs. LVM performance

I am trying to tune my NAS, running openfiler, and wondering why I'm getting relatively poor read performance from 4 WD RE3 drives in RAID 5. EDIT: Please note I am talking about the buffered disk ...
7
votes
2answers
3k views

Resizing lvm2 logical volume and file system: Exact sizes?

On my intranet server, I have a 100.00 GiB partition /dev/sda5, which I use as a physical volume for lvm2. It's the only physical volume in my volume group vg01. vg01 currently contains one logical ...
7
votes
6answers
36k views

Logical volumes are inactive at boot time

I resized my logical volume and filesystem and all went smoothly. I installed new kernel and after reboot I can't boot neither current nor former one. I get volume group not found error after ...
7
votes
5answers
14k views

Best practices for thin-provisioning Linux servers (on VMware)

I have a setup of about 20 Linux machines, each with about 30-150 gigabytes of customer data. Probably the size of data will grow significantly faster on some machines than others. These are virtual ...
7
votes
1answer
5k views

HP DL380 G7 + Smart Array P410i + sysbench -> poor raid 10 performance

I have running system with low IO utilization: HP DL380G7 ( 24gb RAM ) Smart Array p410i with 512mb battary backed write cache 6x SAS 10k rpm 146gb drives in RAID10 Debian Squeze linux, ext4 + LVM, ...
7
votes
2answers
4k views

LVM2 vs MDADM performance

I've used MDADM + LVM2 on many boxes for quite a while. MDADM was serving for both RAID0 and RAID1 arrays, while LVM2 where used for logical volumes on top of MDADM. Recently I've found that LVM2 ...
7
votes
4answers
405 views

Getting a textual overview of a system's LVM configuration

We are making extensive use of the logical volume manager (LVM) on our Debian servers. But I find it hard to get a good overview on which partitions (LVM as well as native) I have mounted where, from ...
7
votes
1answer
2k views

XFS: no space left on device, (but I have 850GB available!)

I'm using a combination of mdadm, lvm2, and XFS on Amazon EC2. So far, I've had success running a RAID 5 volume built from a number of EBS volumes. The EBS volumes are attached and used with mdadm to ...
7
votes
3answers
2k views

Which filesystems offer snapshot functionality for users to recover data?

I'm working on a project that will teach linux to youth. Knowing they will have a tendency to delete or corrupt items in their home directories we are looking for a good snapshot option. We will not ...
7
votes
2answers
675 views

convert 1x2TB HDD with LVM into 2x2TB HDD with RAID1+LVM or with LVM mirroring?

I have Ubuntu server with 1x2TB HDD and 1x128GB SSD (unused). There are 2 partitions: /boot, and a physical volume for LVM, which has 1 group and 5 logical volumes: /, /var/log, /home, /srv, /tmp. ...
7
votes
1answer
464 views

Where is the best place for LUKS to sit in a RAID/LVM/LUKS stack?

I am implementing a server storage setup making use of software RAID, LVM and LUKS. I can think of three combinations this configuration could take: RAID, LVM, LUKS RAID, LUKS, LVM LUKS, RAID, LVM ...
7
votes
3answers
17k views

pvresize doesn't seem to resize after increasing the size of the underlying block device

I increased the size of the partition which I'm using as a LVM PV, but running pvresize doesn't seem to see the extra space: cuttle:~# fdisk -l /dev/vda Disk /dev/vda: 21.5 GB, 21474836480 bytes 255 ...
6
votes
6answers
3k views

What is the perfect setup for a small Linux virtual server?

I have my own email server, and it serves a couple of dozen users. I need to replace it right now, and I want the replacement to be a virtual server image running under a hypervisor. My plans for ...
6
votes
5answers
49k views

How to extend a Linux PV partition online after virtual disk growth

VMware allows to extend the size of a virtual disk online - when the VM is running. The next expected steps for Linux system are: extend the partition: delete and create a larger one with fdisk ...
6
votes
3answers
38k views

How to display used devices/free space when using LVM?

I have following situation: =$ LC_ALL=C df -hP | column -t Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-rootlv 19G 854M 17G 5% / /dev/mapper/vg0-homelv 19G ...
6
votes
7answers
5k views

lvremove claims LV to be open

frequently I notice that after a $ sudo lvcreate vg -L 10G immediately followed by a $ sudo lvremove vg/<created volume> I get the error message Can't remove open logical volume "..." ...
6
votes
1answer
185 views

Forgot to create partition before running pvmove

I ran pvmove to migrate extents from an old LVM disk to a new one but I forgot to create the partition structure on the new disk first: pvmove /dev/sdb1 /dev/sdc Everything seems to be fine, but I'm ...
6
votes
2answers
12k views

Used vgextend/lvextend to add addtional 8GB space but it is not reflected in df output

I have created an instance of ubuntu VM in VirtualBox. At the beginning I have only allocated 7GB for the storage and the VM has now run out of space. First I added another 8GB (/dev/sdb) to the VM ...
6
votes
4answers
24k views

Device /dev/sdb1 not found (or ignored by filtering)

I am trying to add a physical volume for use to add volume groups and thus LV inside them. Sadly I am getting the following error. [root@server ~]# pvcreate /dev/sdb1 Device /dev/sdb1 not found (or ...
6
votes
2answers
182 views

Accessing the partitions on an LVM volume

Suppose you have an LVM volume /dev/vg0/mylv. You have presented this as a virtual disk to a virtualised or emulated guest system. During installation the guest system sees it as /dev/sda and ...
6
votes
2answers
7k views

How to do the equivalent of Synology Hybrid Raid on Linux myself?

http://forum.synology.com/wiki/index.php/What_is_Synology_Hybrid_RAID%3F Synology is just Linux and uses LVM. How do their tools automate LVM to achieve what they call their Hybrid Raid?
6
votes
3answers
2k views

Backing up Xen domains

I'm currently developing a Xen backup system, however I have met the following problem: I have two methods of backing up: doing dd from the LVM snapshot, and tarring it., and rsync it remotely ...
6
votes
1answer
3k views

CentOS Kickstart on KVM doesn't clear partition labels

I used a kickstart file with the command clearpart --all --initlabel to make sure anaconda would clear any disks before trying to create and format new partitions. This has worked in the past for me, ...
6
votes
1answer
5k views

losetup -d giving : device busy

I am mounting a KVM disk (LVM) following these commands : # losetup /dev/loop0 foo.img # kpartx -av /dev/loop0 # mount /dev/mapper/loop0p1 /mnt # unmount /mnt # kpartx -dv /dev/loop0 # losetup -d ...
6
votes
1answer
632 views

How can I copy a LVM logical volume to a loopback file on another system?

I am trying to copy an LVM logical volume with an ext3 filesystem from one system to a file on another system that I will be able to mount as a loopback device. I have tried the following command to ...
6
votes
4answers
3k views

is it possible to simultaneously mount 2 LVM volumes that are exact copies of each other (same UUIDs)?

I have cloned (using dd) the hard drive in a live system onto several multiple backup hard drives. The root partition in the live system is a LVM volume. The backup copies are intended to be drop-in ...
6
votes
1answer
1k views

Simulating a missing superblock error on EXT4 linux system

I'm trying to write reference material for a friend who has power outages a couple of times a year which affect their linux server. This person is not well versed in linux systems administration, so I ...
6
votes
2answers
1k views

Grub2 reports physical volume pv0 not found on server non bootable anymore

I first installed my ubuntu server (11.10 amd64) using lvm but not fully mastering the concept of it. I think that's partly what made the mess of partitions on my two disks (seems to me). I installed ...
6
votes
2answers
2k views

e2fsck / resize2fs problems

I've got 6 drives (each 1.5T, all same model and firmware revision) that are part of a RAID5 array. The RAID5 makes a LVM volume group and a logical group. The latter contains only one ext3 partition. ...
5
votes
3answers
13k views

Moving a Logical Volume directly from one server to another over the network?

I have a KVM host machine with several VMs on it. Each VM uses a Logical Volume on the host. I need to copy the LVs to another host machine. Normally, I would use something like: dd ...
5
votes
5answers
7k views

LVM mirroring VS RAID1

Having learned a bit about LVM mirroring, I thought about replacing the current RAID-1 scheme I'm using to gain some flexibility. Problem is that according to what I found on the Internet, LVM is: ...
5
votes
6answers
8k views

Is there a way to do something like LVM over NFS?

I realize that since NFS is not block-level, LVM can't be used directly. However: is there a way to combine multiple NFS exports (from, say, 3 servers) into one mount point on a different server? ...
5
votes
2answers
6k views

LVM logical volume partition corrupted after lvreduce

I encounter the problem when I try to shrink one logical volume. I took the actions as following steps shows: # unmount /home # lvreduce --size -100G /dev/vg_dev/lv_home # lvdisplay ...
5
votes
5answers
1k views

Need help with recovering RAID array

To make a long story short, I am responsible for a media server that has two RAID arrays (/dev/md0 and /dev/md2). I still have a ton to learn about software RAID and LVM, etc. We had a drive fail in ...
5
votes
1answer
218 views

How to extend LVM PV to the beginning of disk?

I have server with 2TB disk, that someone initially partitioned like this: 300GB standard primary partition for operating system files(CentOS 7). 1.7TB LVM with some pretty big logical volumes - for ...
5
votes
2answers
3k views

Should I be using LVM snapshots along with rsnapshot?

I manage a CentOS 4.8 server for a small workgroup. Last year I converted the filesystem to LVM over software RAID (RAID 1, two mirrored drives). I now have the following filesystems on LVM/RAID: ...
5
votes
4answers
2k views

SSD drives and RAID configurations vs LVM

Background: I'm familiar with the basic RAID levels, and am curious to know if using SSD devices in a RAID0 or RAID5 would be a better deployment than adding them to a large LVM volume. ...
5
votes
1answer
1k views

find file by block number on ext3 fs on lvm

smartd has detected a bad block on my hard drive and I'd like to know what file does that block belong to. I have ext3 filesystem on a logical volume. Google gave me a lot of tutorials (like this one: ...
5
votes
3answers
2k views

increase disk size - use LVM or not?

A co-worker asked me why we should use LVM. With my limited LVM knowledge, I said because it allow you to easily resize/manage volumes! His idea is this: We use ESX, and have the ability to increase ...
5
votes
2answers
2k views

Is the fdisk partition type important when using lvm

I have inherited a few LVM volumes and I noticed that fdisk reports the disks that make up the volume group as partition type 83 (Linux) and not 8e (Linux LVM). Is this a problem and how important ...
5
votes
3answers
8k views

Using LVM snapshots for KVM virtual machine clones

So, I've got a pretty awesome KVM setup running now, CentOS5.5 on the host and guest domains, libvirt managing all the configuration, etc. The guest domain filesystems are stored in LVM on top of a ...
5
votes
2answers
3k views

What's the difference between “mirror” and “raid1” in LVM?

On the lvconvert(8) man page it says: --type SegmentType Used to convert a logical volume to another segment type or to explicitly state the desired RAID1 segment type ("mirror" ...
5
votes
3answers
4k views

Linux Software RAID1: How to boot after (physically) removing /dev/sda? (LVM, mdadm, Grub2)

A server set up with Debian 6.0/squeeze. During the squeeze installation, I configured the two 500GB SATA disks (/dev/sda and /dev/sdb) as a RAID1 (managed with mdadm). The RAID keeps a 500 GB LVM ...
5
votes
1answer
7k views

LVM is reporting I/O errors, but the disk reports no problems. Argh

I've started seeing errors reported by LVM on certain Logical Volumes (and by Xen when attempting to create virtual machines on these LVs). But I've run tests on the disk, and can't see any hardware ...
5
votes
1answer
3k views

What is the difference between the Linux and Linux LVM partition type?

Fdisk shows multiple partition types. What is the difference between choosing 83) Linux and 8e) Linux LVM? Choosing 83) Linux also works fine for using LVM, even creating a physical volume on ...
5
votes
3answers
1k views

User reduced LVM logical volume without resizing filesystem

I received an email yesterday that one of our users was trying to make room for a heartbeat/clustering package which requires its own partition to act as a voting disk. To do this, he attempted to ...
5
votes
2answers
3k views

Ubuntu Kickstart installation using LVM waits for input

I have a PXE Boot Setup for installing CentOS 5 and Ubuntu 10.04 via Kickstart. I use LVM and installing CentOS without any user interaction works but Ubuntu always asks to "confirm to write changes ...
5
votes
2answers
589 views

Can I get LVM to check if my mirrors are consistent?

I'm using LVM mirroring. Following some disk issues I'm concerned about the consistency of the data in my mirrors. Is there anyway I can get LVM to physically compare the data in each mirror?
5
votes
2answers
223 views

Moving an existing Linux into an LVM

We have a server with an existing Linux installation (CentOS 6) + boot partition on disk 1, and an empty disk 2. What we'd like to setup is this: One disk (1 or 2, doesn't matter): The main system ...
5
votes
1answer
5k views

Advantages and disadvantages of Logical Volume Manager (LVM)? And LVM vs encrypted LVM?

In my situation, it's for a local build/staging server running ubuntu server. Things I'd like to know are: Why I should/shouldn't use LVM? What problems might it cause in terms of either regular ...