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)

6
votes
6answers
24k 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 ...
6
votes
6answers
2k 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
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
2answers
144 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
1answer
3k views

Resizing a LUKS encrypted volume

I have a 500GiB ext4 filesystem on top of LUKS on top of an LVM LV. I want to resize the LV to 100GiB. I know how to resize ext4 on top of an LVM LV, but how do I deal with the LUKS volume? ...
6
votes
2answers
8k views

How to remove bad disk from LVM2 with the less data loss on other PVs?

I had a LVM2 volume with two disks. The larger disk became corrupt, so I cant pvmove. What is the best way to remove it from the group to save the most data from the other disk? Here is my pvdisplay ...
6
votes
2answers
5k 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
1answer
501 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
1answer
785 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
948 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 ...
5
votes
5answers
4k views

What are the benefits of the Logical Volume Manager

What are the features and potential benefits of Logical Volume Manager beyond what is detailed on its Wikipedia page?
5
votes
3answers
8k 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
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 ...
5
votes
5answers
23k 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 ...
5
votes
6answers
6k 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
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
5answers
6k 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
3answers
5k views

debian 6 preseeding keeps asking “Write the changes to disks and configure LVM?”

I try to use an expert recipe configuring lvm for debian 6.0.5 netinstall. I don't want to be asked any questions, but it keeps asking me "Write the changes to disks and configure LVM?" Here is part ...
5
votes
4answers
2k views

How to keep or drop LVM snapshot?

I have made an LVM snapshop by lvcreate --name snap --size 10G -s /dev/vg00/vm What command should I write if I want to drop the snapshot, and not keep the changes that have happened since the ...
5
votes
1answer
4k 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, ...
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
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
3answers
7k 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
3answers
3k 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
567 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
946 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
3answers
841 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 ...
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
233 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
3answers
9k 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 ...
5
votes
2answers
211 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
2answers
2k views

Is it possible to convert striped logical volume to linear logical volume?

I've a logical volume that is striped across three physical volumes. I had to move this logical volume to another physical volume. This worked nicely with pvmove command. However, I discovered later ...
5
votes
1answer
5k 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
2answers
1k views

LVM: resize2fs not resizing

I'm having a weird issue with resize2fs. I've performed all the commands and they all have been successful, however, my filesystem is the same size as it was before: [oracle@server~]$ df -h /backup ...
5
votes
2answers
141 views

ZFS Equivalent of lvdisplay snap_percent

I've been using LVM snapshots for backing up MySQL databases. FLUSH TABLES WITH READ LOCK is issued and then lvcreate --snapshot --size 4G etc. Because the database is live while the snapshot is ...
5
votes
1answer
635 views

Home-grown SAN — topology ideas?

I'm interested in hand-rolling a SAN solution on Linux with the following technologies: iscsi mdadm raid lvm multipath xfs/gfs/??? teamed NICs Hardware-wise, I'm thinking of 2 x gigE (or better) ...
5
votes
1answer
499 views

Trying to find the 'max files per directory' figure for an OCFS2/LVM volume

I have a bunch of RHEL/OEL Apache VMs (on ESX 3.5) hardware load-balanced into a little http file farm. I need to expand the dataset they're serving from 1TB to 10TB and although I can use OCFS2 and ...
5
votes
1answer
428 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 ...
5
votes
1answer
3k views

Change owner of LVM LV's device node in RHEL5

First time using serverfault, please excuse any breaches of etiquette. I've created several LVM2 logical volumes in local storage on a server, and would like one of the device nodes - not the ...
5
votes
3answers
8k 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 ...
4
votes
6answers
3k views

JFS or XFS or anything else?

After deciding to use LVM2 as volumemanager on our servers there was also the wish for an online resizeable filesystem. After reading a few articles I decided to use JFS in favour of XFS. Now today I ...
4
votes
3answers
18k 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 ...
4
votes
3answers
1k views

Optimize SSD storage on Centos 6.6 - KVM

I have a Dell R610 with hardware: H700 raid card 4xMicron MX100 512GB -> configured raid 10 I have installed Centos 6.6 on this server and configured: KVM virtualization Volume Group for raid 10 ...
4
votes
6answers
2k views

How to copy a large LVM volume (14TB) from one server to another?

I have to copy a very large LVM volume from server A to server B. Below is the filesystem of server A and server B Server A [root@AVDVD-Filer ~]# df -h Filesystem Size Used Avail Use% ...
4
votes
5answers
10k views

How to access LVM partitions on OS X?

I need to access ext3 partitions over an LVM logical volume in a SATA HD connected through USB2 to my iMac with OS X 10.6 . Is it possible to see LVM volumes from OS X? How? Disk Utility says that ...
4
votes
1answer
4k 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 ...
4
votes
3answers
1k views

lvm+ext3 vs ext3 recovery

I would like to hear from people who have personal experience recovering crashed systems or data from crashed drives using lvm+ext3 and ext3. Which option is harder to recover from backup or to ...
4
votes
3answers
3k views

Can't Mount LVM Snapshot Volume

I have a logical volume which serves as the filesystem for a virtual guest OS. I'm happy with the state of my guest OS and would like to make a backup of it. I created a snapshot using lvcreate and ...
4
votes
1answer
2k 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, ...
4
votes
5answers
9k views

KVM online disk resize?

We're evaluting KVM for Linux virtualization on a few projects. All is going well so far. But one of our requirements is the ability to add disk space to a running guest without rebooting or taking it ...