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
24 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): # ...
-1
votes
0answers
17 views

modifying a pre-existing file inside an LVM snapshot while the snapshot is mounted,i want to know how the system will do? [closed]

I guess that it will copy the file which will be changed to the snapshot area,and then modify the file in the snapshot area. Somebody know it ?and where i can get the info about it ?Tks. ps:I read ...
0
votes
0answers
17 views

Multiple LVM and Multiple hard drives.. again [migrated]

I have a little (and might sound stupid) question.. but google didn't got me to a solid answer in all the weekend. I am planning to make a file/webserver server for home/development use.. And I want ...
0
votes
0answers
9 views

Mount encrypted volume in Debian [migrated]

I was given a HDD that was encrypted using dm-crypt and I'd like to mount it as /disk2 preferably having the decryption password stored in a file, so I won't have to enter the passphrase when booting, ...
0
votes
0answers
7 views

LVM Recovery with a failing disk [migrated]

I have an LVM setup on Debian 7.8 with kernel 3.2.65-1+deb7u1 running OpenMediaVault The LV is made up from 4 disks Disk /dev/sdb: 4000.8 GB, 4000787030016 bytes Disk /dev/sdc: 2000.4 GB, ...
-1
votes
0answers
7 views

lvm safest management best practice for home workstation, in case of HD failure [migrated]

My question is for a low cost home workstation, in a hard to replace hardware situation. So what is the best practice using LVM? and without raid. 1) I think I should create logical volumes ...
2
votes
0answers
57 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
24 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
31 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
30 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
46 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
48 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
26 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
64 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
15 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
340 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
vote
0answers
33 views

Centos LVM / Volume Group problems

I am trying to remove a volume group but it says that it cannot be found, although when I try to create one with the same name, it says that it already exists. root@server [/]# vgremove backup_group ...
-1
votes
1answer
50 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
21 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
31 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
54 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
397 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
101 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
48 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
52 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
45 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
25 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
66 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
160 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
49 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
92 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
67 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
50 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
18 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
758 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
30 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
34 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
31 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
80 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
114 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
42 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
46 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
52 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
51 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
35 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
150 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
144 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
57 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
88 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
45 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 ...