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)

0
votes
1answer
43 views

Can you change raid type on an active server?

I was just dabbling with a few different raid types recently for some performance testing and I was hoping someone could answer this question for the sake of knowledge. Is it possible to change the ...
7
votes
2answers
100 views

Linux device-mapper maps LVM PV nested inside LV when taking snapshot

Which is really messing with my plan to back up this machine... I have a server which is a KVM hypervisor to several virtual machines. One of these is running Docker. It has its Docker volumes on ...
0
votes
0answers
34 views

Data recovery seems impossible after kernel upgrade. MDADM (Raid1) LVM2

I opened a question about rebuilding a bad partition My Problem that din't take me anywhere. Bad news is the company trying to rescue the data says it's finding huge inconsistencies they can see some ...
-1
votes
1answer
90 views

Disaster recovery. MDADM/LVM2 Some advance but stuck on final mount

We made a stupid upgrade on a running server using wrong repositories and the system became totally unbootable. The system, a SLES 11 we used a openSuse repository to upgrade, and everything went ...
0
votes
1answer
135 views

Easy way to transfer files between host and LXC container on LVM

This is an easy task in the case of containers that share the same filesystem but I'm not sure what would be the proper approach for containers that use LVM disks. I know I could use rsync or scp but ...
0
votes
1answer
28 views

Multiple lvms or one large lvm

Say you have a server that has two VGs (base and sys) and base is the standard partitions (root, var, etc.) and sys would be application specific partitions. I can't find any real documentation for ...
0
votes
1answer
67 views

Hetzner script, configuring SSD + RAID1 image installation

I am trying to figure out how to set this configuration on my Hetzner server. The hetzner installimage script provides a default configuration (with comments: http://pastebin.com/tBqezpFn): # ...
2
votes
0answers
71 views

How to emulate union mount behaviour with LVM in CentOS?

In short, I want to create a system restore image. My idea with AUFS is like the image below Now, as I require this mount setup at boot-time, I don't think I can do it with fuse and will require AUFS ...
0
votes
1answer
50 views

lvextend: New size (3071999 extents) matches existing size (3071999 extents)

I configured LVM on a 12TB device with 1 partition. I then tried to extend the LVM across a second 12TB device with 1 partition. vgextend worked, but lvextend doesn't see the space on the second ...
0
votes
1answer
36 views

How to fsck a partition that is part of a software Raid that again is part of a LVM volume group?

The faulty partition is /dev/sdb3. from /proc/mdstat: md2 : active raid1 sda3[2] 2896184639 blocks super 1.2 [2/1] [U_] says /etc/fstab: # /dev/md/2 belongs to LVM volume group 'vg0' ...
1
vote
1answer
37 views

How do I replace a disk with LUKS on LVM2 - no raid, no span

I have LUKS on LVM (LVM Partitions created first, then each partition is encrypted separately, following this guide on Arch Wiki). I am using two volume groups, and each is isolated to a drive. This ...
1
vote
0answers
62 views

LVM psychical volume partitions

I have 2 logical volumes in a volume group that span two hard drives. The problem that I'm currently having is that the I can no longer mount the volume group because the superblock is misreporting ...
0
votes
2answers
52 views

Extendable RAID storage system

I am currently building a storage unit for our office. It is rather low budget at the moment, but it needs to be extendable. basically we have a huge database that will grow over the next few months ...
0
votes
1answer
49 views

Mount LVM partition from Ubuntu LiveCD/ISO

I have an old Ubuntu server inside a Virtual Box. I migrated to a new laptop a while ago and now for whatever reason I can't remember the password nor ssh to the box. Ordinarily I'd fire up a Live CD ...
2
votes
1answer
101 views

Removing failing drive from LVM volume group … and recovering partial data from an incomplete LV (with a missing PV)

I've been fighting this issue for some time now. I have a Logical Volume with 3 disks, 1.5TB, 2TB and 3TB. The 1.5TB drive is failing. Lots of I/O errors and dead bad sectors. I started pvmove to ...
0
votes
1answer
23 views

lvm clone logical volumes layout to another host

I want to clone LVM logical volume layout to another host ( = Create volumes with same size ). Does anyone know solution for this ? I know I can execute something like: sudo LC_ALL=C lvs -o ...
1
vote
2answers
477 views

Can't open /dev/xxx exclusively. Mounted filesystem. How to create volume groups and lvm on mounted disk?

I've 3 partitions sdb1 sdb2 and sdb3. I wanna to create a volume group and lvms in the sdb3 which is the mounted linux partition where is located my root folder. I'm typing: pvcreate /dev/sdb3 ...
-1
votes
1answer
56 views

How to migrate RAID-6 from 5 disks to 4 disks while increasing disk sizes

I am having a quite complex problem and while I found solutions to individual steps (and already applied some of them in different contexts), I am not quite sure on how to do the whole procedure ...
0
votes
0answers
30 views

Preseeding with RAID1 Encrypted LVM

I would like to preseed a debian wheezy system with Encrypted RAID1 LVM. I've done some google searching, seen others asking the same question, but have not found any answers. I have successful ...
1
vote
2answers
35 views

LVM: Removing physical volume

I want to repartition my disk. My current partition table is as follows: Disk /dev/vda: 1 TiB, 1136018849792 bytes, 2218786816 sectors Units: sectors of 1 * 512 = 512 bytes Sector size ...
1
vote
2answers
60 views

Disk Partitioning and Layout with LVM

I am trying to determine the best disk configuration/disk layout/partitioning scheme for a large, virtualized, multi tenanted environment. Our current scheme is very similar to rhel/centos defaults, ...
0
votes
1answer
707 views

XenServer 6.5 - Creating local iso storage/library failed - SR_BACKEND_FAILURE_222

I was trying to adapt instructions for XenServer 6.2 on how to create a local ISO library to a freshly installed XenServer 6.5 host. However the command ... xe sr-create name-label=LocalIso type=iso ...
4
votes
3answers
138 views

Which scheduler to change on LVM to benefit virtual machines

When you have LVM, you have an entry for a scheduler in /sys/block for your physical volumes, but also for each individual logical volume, and the raw device. We have a Debian 6 LTS x64, kernel ...
0
votes
1answer
57 views

LVM2: pvscan with offset?

After I played with mdadm a bit too hard, I'm now tryng to recover my lvm2 volumes that were sitting in the original RAID1 array. pvscan finds nothing, but that's not a surprise: since mdadm is not ...
1
vote
1answer
66 views

After resizing an encrypted LVM device, the machine takes 4 hours to boot

I have a host, under Debian Wheezy. The virtualisation software is qemu/KVM, and uses LVM Volumes as disks for the guests. The guests all have been installed using debian wheezy, full-disk ...
1
vote
0answers
60 views

Debian KVM Host, Debian guests : where full-disk encryption should be done?

I have a host under Debian Wheezy, running qemu/KVM. I want to have all my guests fully-encrypted. I can see to possibilities : - Either I encrypt the LVM Volume using dm-crypt (cryptsetup) and use ...
0
votes
0answers
29 views

Transient errors on Linux RAID1 and RAID10

On the Arch Linux wiki you can read: Due to the fact that RAID1 and RAID10 writes in the kernel are unbuffered, an array can have non-0 mismatch counts even when the array is healthy. These non-0 ...
3
votes
1answer
99 views

cannot remove faulty device from LVM2 raid1 mirror

One of the three disks went off in my LVM raid1 logical volume. (It was a bad experiment actually). The volume is a pure LVM raid1 one (no, not an LVM mirror), without any mdadm / fakeraid. The ...
1
vote
1answer
305 views

Issue with Centos 7 + kickstart raid configuration

I've had an odd issue trying to set up kickstart with Centos 7. First of all, the relevant portion of the file itself. The following works, although it's not optimal. zerombr clearpart --all ...
0
votes
2answers
50 views

Multiple physical volumes in a block device

I have a single (unpartitioned) block device in a server which is used as the single physical volume (pv1) to a volume group (vg1). Without attaching more storage to the server, is there any way to ...
1
vote
0answers
106 views

Mysql table doesnt exist error after trying run from lvm snapshot

I'm trying to set up mysql replication by making lvm snapshot of master datadir and copying it to slave. The procedure is quite simple, on master server I execute "FLUSH TABLES WITH READ LOCK" and on ...
0
votes
1answer
79 views

VMware, LVM & Linux: Expanding a volume… temporarily, and without downtime

Our storage layers are the following in a standard setup: Outside of the OS: LUN on SAN VMware VMFS volume on LUN virtual disks (VMDKs) on the VMFS Inside the OS (Linux): the VMDK corresponds to ...
0
votes
1answer
58 views

Using lvm2 snapshot of MySQL InnoDB file-per-table, do I need to stop the server for backup?

I've read a bunch of articles on taking consistent backups of mySQL, including What's the meaning of consistent dataset? (MySQL), but I still don't think I know enough to answer this question with ...
0
votes
0answers
19 views

mounting logical volume attached to vm while vm is running

i am experimenting lvm2 and qemu-kvm. and I want to share and ask some questions. at the end of there is appendix what i am doing. a logical volume on host is attached on guest host (vm) as vda. this ...
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 ...
2
votes
1answer
31 views

Abstract physical drives to create a resizable raid array: is it possible?

I want to set up two hard drives with a portion of them set in raid1. I want that portion to be scalable too, as logical LVM volumes are. Is it possible to abstract physical volumes or to create an ...
1
vote
0answers
43 views

lvm archive and backup files not purging

I do hourly backups doing snapshots, and every time I do it creates files in /etc/lvm/archive. But lvm doesn't appear to pay any attention to the "retain_days" parameter under "backup" in ...
0
votes
0answers
43 views

Backup MySQL with LVM, questions about the MySQL Session

I want backup my mysql database with lvm. I will do the backup with cronjob. Here the pseudocode Open mysql session Run SQL FLUSH TABLES WITH READ LOCK Do backup lvcreate -l100%FREE -s -n ...
0
votes
2answers
128 views

Using System-Config-LVM in CentOS 6 results in a corrupt filesystem

I am used to being able to use the system-config-lvm utility in RedHat Linux (I was using RHEL 5) to resize the LVM while the system was running. To be clear, I did this while running on the disk I ...
1
vote
1answer
146 views

/usr/sbin/thin_check: execvp failed: No such file or directory

Running CentOS 6.5, a brand new "minimal" server install, trying to use LVM2 thin pool feature. Packages installed are: lvm2 (2.02.111) device-mapper-persistent-data-0.3.2-1.el6.x86_64 ...
3
votes
0answers
47 views

Efficiently get file deltas for backups

With many large Xen sparse image files that have to be backed up, I'm looking for a way to do this efficiently both in terms of disk space (saving space with a differential tool like duplicity, bup, ...
0
votes
1answer
53 views

LVM on disk with no partition table. How to reallocate free space with fdisk?

I shrank an LVM in half using these commands: e2fsck -f /dev/VG/LV resize2fs /dev/VG/LV 5G lvreduce -L 5G /dev/VG/LV Inspecting the physical volume yields this: --- Physical volume --- PV Name ...
1
vote
0answers
64 views

pvs/vgs/lvs and block device size not matching

I have a LV with a filesystem on it. The LUNs behind this filesystem have been grown on SAN, as have the PV, VG, and LV. But the block device seems not to match so my resize2fs fails. I never saw ...
1
vote
0answers
65 views

LVM2 Thin pool transaction_id mismatch

I believe we trashed some LVM thinpool metadata while moving 2 volume groups to a different machine. We now trying to reactivate the volume groups on the original machine. The physical volumes, volume ...
0
votes
1answer
42 views

The partitioning of a big disk is necessary for LVM's vg space expansion

I am maintaining a LVM's vg as users' /home directory's storage space. But now I need to add a new 2T sized disk for extending the /home space. I wonder if the partitioning is necessary or not and ...
3
votes
1answer
184 views

How do you actually create LVM snapshot?

I'm trying to test LVM, but I failed on first, potentially simple task - create a snapshot. I have following situation: root@debian:~# vgs VG #PV #LV #SN Attr VSize VFree big 1 1 0 ...
1
vote
3answers
159 views

Long running VMWare snapshots are bad… but what about VMDKs on a ZFS\LVM snapshot?

The VMWare KB and multiple blogs state that long running snapshots are bad for both performance reasons and integrity. They have valid points. Granted this is not with ESXi but rather ...
0
votes
0answers
67 views

mdadm/grub2/lvm boot failure if all drives are physically connected

Weird problem here. I've got a Debian 7 server (quad core, 32GB RAM) that runs a whole bunch of VMs. The main boot drive is a RAID 1, with an LVM volume group called System, which contains a bunch of ...
1
vote
0answers
98 views

grub: Booting Ubuntu off /boot in LVM, broken after upgrade

I have servers I want to upgrade remotely and headlessly from Ubuntu 12.04 LTS to 14.04 LTS. This upgrade has to happen via script, with no interaction. The do-release-upgrade command exits cleanly, ...
-1
votes
1answer
46 views

Linux: When to create a new partition?

I am a newbie on LVM management trying to learn how to create new logical volumes. This is what I understand on how to do it: (Just want to make sure I understand it correct.) create partitions on ...