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
1answer
167 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
5answers
12k 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 ...
6
votes
4answers
3k 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 ...
6
votes
2answers
8k 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
6answers
3k 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
4k 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
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
3answers
13k 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
156 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
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, ...
6
votes
2answers
10k 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
6k 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
540 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
874 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 ...
5
votes
3answers
9k 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
30k 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
2answers
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 ...
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
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
3answers
6k 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
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, ...
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
692 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
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
3answers
934 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
1answer
6k 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
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
320 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
215 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
4k 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 ...
5
votes
2answers
3k 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
4k 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 ...
5
votes
2answers
2k 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
150 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
663 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
530 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
2answers
503 views

Best strategy for setting up LVM over RAID for flexibility down the road?

Alright, I'm hoping that this question is unique enough to not be considered another "What's the difference between LVM and RAID?" questions. Here goes... I'm setting up a linux server which has a ...
5
votes
1answer
440 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
4k 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
10k 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 ...
5
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. ...
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
23k 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
5answers
11k 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 ...