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)

2
votes
1answer
44 views

LVM Partition being detected as wrong size

There is a server I'm responsible for that is showing a drive (full) and much smaller than the drive should be. My knowledge of LVM is not deep enough to see why. I could use some help from a good ...
0
votes
0answers
19 views

Recover overwritten RAID5 array (XOR)

as I've mentioned in a recent question (RAID5 rescue with LVM2 running on it) I'm rebuilding an RAID5 array. Now, I think that the initial wrong mdadm --create ... command has started the ...
0
votes
1answer
38 views

RAID5 rescue with LVM2 running on it

I have a RAID5-array consisting out of 6 1TB drives. Recently with hardware changes i needed to recreate the raid to rewrite the bootloader on each drive. Now the problem starts. Starting the Debian ...
0
votes
2answers
24 views

I added space to a kvm img file but the physical extents do not show up in lvm

I ran qemu-img resize kick.img +12G and thought I'd see some free physical extents when running pvdisplay but nope. When I run virt-filesystems --long --parts --blkdevs -h -a kick.img I see the space ...
-1
votes
0answers
9 views

Data rescue for lvm-raid

i've had to change mainboard and CPU of my storage server consisting out of 6x1Tb devices. As it was operated by a Software RAID (dm-raid) i've thought plug and play. But then no bootsector was ...
0
votes
0answers
13 views

Logical Volumes fails to mount with dmsetup and no table present [migrated]

I am stuck with all the volumes on a volume group unable to mount, after a yum update on a CentOS 5.11. device-mapper upgraded from 1.02.24-1 to 1.02.67-2 The machine boots correctly from ...
1
vote
1answer
26 views

Shrinking LVM Volumes

We have a Synology RS3614rpxs NAS head containing (9) 3TB hard drives in a RAID 6 + 1 hot spare. The storage became exhausted and we added an expansion chassis where 5TB hard drivers were installed ...
1
vote
1answer
19 views

Storage volume is not avaliable from second node AIX 6.1 OS

My environment comprised AIX 6.1 OS installed over six physical servers and connected via brocade switch to DS8000 SAN storage. I am aiming to build HACMP cluster on two physical machines in a way ...
1
vote
1answer
54 views

copy LVM partition to new disk

I have a question about making copy of LVM partition to new disk. I want co copy not to move data. My operating system is Debian. On LVM partition I have running Xen virtual systems. Information ...
0
votes
0answers
29 views

Booting from LVM without boot partition

I have recently rebooted a server with over a year uptime which was partitioned like this (and of course it never come back, it couldn't boot): Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes 255 ...
1
vote
1answer
18 views

How to change the PVID of a device and still be able to import the Volume Group in AIX?

I have 3 disks that are copies of other disks so they have the same PVID's. I would like to change the PVID of those disks and import the volume group but as I understand the VGDA information on the ...
-1
votes
0answers
17 views

An ext4 filesystem spanning multiple RAID arrays and calculating alignment parameters [closed]

So I have the following setup: 3x4TB RAID-5 (Hardware RAID) (two data disks) 5x2TB RAID-5 (Hardware RAID) (four data disks) = six data disks in total? These will be encrypted using LUKS and then ...
0
votes
1answer
46 views

Back up incremental snapshots to another volume

I'm looking for a way to implement something close to the following backup scheme: Initially, a full image is copied to the backup target. Periodically (e.g. nightly), only blocks that have changed ...
0
votes
2answers
62 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 ...
8
votes
2answers
185 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
45 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
114 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
194 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
36 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
127 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
81 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 ...
1
vote
1answer
90 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
48 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
40 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
75 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
60 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
78 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
148 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
31 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
514 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
59 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
43 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
71 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
1k 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
236 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
64 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
78 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
79 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
30 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
121 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
516 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
53 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
113 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
89 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
65 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
21 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
33 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
57 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 ...