Questions tagged [lvm]

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.

4
votes
0answers
1k views

Figure out the used space on the snapshot thin volume

I have the following lvm configuration. Hard Disk: /dev/sdb (Size 10 GB) VG: vg_root on /dev/sdb THIN_POOL thin_pool occupying the whole physical extent lvcreate -y --extents 100%free --thin vg_root/...
4
votes
0answers
502 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, ...
3
votes
0answers
440 views

How can I restore an LVM snapshot without deleting the snapshot?

Steps to reproduce create a snapshot of a volume using lvm lvcreate -L 200GB -s -n snapshotname /dev/hostname-vg/root make changes to the filesystem restore the filesystem to the state it was in ...
3
votes
0answers
143 views

What could go wrong with ext4 on LVM on a hardware RAID6?

Intro Recently one of my systems using ext4 on LVM on hardware RAID6 experienced a disastrous failure. To name some of the disasters: several filesystems failed beyond repair, at least one was ...
3
votes
0answers
113 views

Accidentally deleted LVM on raid partition

I accidentally deleted my LVM partition inside /dev/md1. The good thing that my linux root partition and swap inside this LVM are still mounted. I was able to copy all data to my backup HDD, and was ...
3
votes
0answers
750 views

LVM: failed logical volume removing from VG after disk was detached

The old storage device for backup was upgraded to new one. An old storage device was unmounted and detached from server, but NOT removed from LVM. This backup device was in separated VG and LV. I ...
3
votes
0answers
813 views

Which are possible hierarchies for bcache, mdadm RAID and LVM?

Assuming I want to use bcache for caching, mdadm for RAID (1) and LVM for partitioning (and that I don't care that there might be performance drawbacks due to many levels of I/O and device management ...
3
votes
0answers
232 views

Mirroring on external SCSI and iSCSI disks inside same volume group

On IBM P5 505 (maint level 5300-07) servers there is a concurently accessed external storage, which is connected using external Ultra320 SCSI port (DAS). External storage is detected as hdisk2 which ...
3
votes
0answers
294 views

lvm PV on top of dm-cache

I am running a private cloud (opennebula, KVM) where I am running VMs both directly using LVM Logical Volumes and using disk images on a file system (one is faster, the other is easier to migrate), ...
3
votes
0answers
249 views

Bad sector on disk, part of a LVM over RAID1 array, which files are affected?

My RAID1 array /dev/md1 is rebuilding after one of the disks has been replaced. Problem : the source disk has Unrecoverable Errors, and my only choice if I do not want to lose the whole data set (no ...
3
votes
0answers
646 views

How can I specify to lvconvert which mirror leg to drop when specifying the physical volume is ambiguous?

I have managed to end up with an LV with the following mirror setup (output from lvs -a -o name,devices,lv_attr): rawphotos rawphotos_mimage_0(0),rawphotos_mimage_1(0),...
3
votes
0answers
555 views

Convert single O/S disk to RAID 1 - Ubuntu 12.04 LTS

I have a server running Ubuntu 12.04 LTS with only a single drive. There are 2 more empty hot swap bays in the chassis. I want to add a little redundancy by adding a RAID 1 to the system. The ...
3
votes
0answers
585 views

linux hardware raid 10 / lvm / virtual machine partition alignment and filesystem optimization

I've been reading everything I can find about partition alignment and filesystem optimization (ext4 and xfs) but still don't know enough to be confident in setting up my current configuration. My ...
3
votes
0answers
479 views

How do I create a RAID10 array using EBS on Amazon?

Basing this question on information I got in Why does df shows only half the size of a RAID10 array?, how should I create a RAID10 array using EBS volumes on Amazon, in a way that will not be ...
2
votes
0answers
384 views

In linux, determine if a block device is being used

I'm doing automation that will reformat a new disk and mount it. I want my automation to check and make sure the disk isn't in use so I don't break something that was already running (as happened to ...
2
votes
0answers
181 views

Partition mounted and unmounted simultaneously

Edit: Narrowed this down to virtfs mounts. To jump to the question, mount says the partition is already mounted and umount says that the partition is already unmounted, and fsck agrees with mount. ...
2
votes
0answers
187 views

Debian Jessie RAID recovery mount LVM2

I recovered a failed array, which has an LVM2 on it, how do I mount it? Here's what I've done: lvmdiskscan /dev/md0 /dev/loop0 [ 873.62 MiB] /dev/md0 [ 7.28 TiB] LVM physical volume /dev/...
2
votes
0answers
235 views

Possible to recreate LVM VG?

frequent listener first time caller A coworker in another department did an OS upgrade on a CentOS-based RAID NAS. Unfortunately the upgrade process recreated the PV that defined the VG. Basically ...
2
votes
0answers
1k views

Error when trying to mount snapshot LVM (XFS filesystem)

I have the following logical volume: --- Logical volume --- LV Path /dev/wd1/mongodb LV Name mongodb VG Name wd1 LV UUID xxxx ...
2
votes
0answers
310 views

XenServer 6.2 - could not find filesystem '/dev/root'

We have a Citrix Xenserver 6.2 install. Today we had an incident where power to the server was suddenly cut off from the server. It had been running for quite some time without issue. It has quite a ...
2
votes
0answers
346 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 ...
2
votes
0answers
468 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 ...
2
votes
0answers
1k 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 ...
2
votes
0answers
502 views

task fstrim blocked for more than 120 seconds

I'm experiencing random crashes on my system. I've narrowed the problem to the fstrim program that's launched weekly by cron. In the console, I've got a set of blocked tasks among whigetch I find ...
2
votes
0answers
327 views

fdisk with lvm: Why is first sector at 3072 instead of 2048?

Using ubuntu 12.04, i have a xen-server and several vms. Considering /dev/vm-disks/testes - an lvm volume partitioned during OS install /dev/vm-disks/testes-home - another lvm volume, unpartitioned ...
2
votes
0answers
178 views

Recover lost volume group in hp ux 11 v2

The disk containing operating system (vg00) has failed. I tried to install the operating system on a new disk and I want to restore other volume group (vg01 and vg02) on two disks that contain data.
2
votes
0answers
579 views

How to Reclaim Space from XenServer?

I found that the XenCenter storage tab claims there is 1096.6 GB used of 1107.7 GB total (708.5 GB allocated). It appears that some space has been eaten and not released. The SMLog shows: [13816] ...
2
votes
0answers
99 views

Does the LVM DM UUID contain any metadata?

For example within the name listed below is there any metadata within the name, eg based on server serial number or date created or such: dm-uuid-LVM-...
2
votes
0answers
56 views

Change the logical volume

I am quite new this snapshot process. Let, I have three logical volumes as A, B, C. I worked on logical volume C. But accidentally when I restart the system, it goes to the snapshot A. How can I ...
2
votes
0answers
3k views

Please help recovering lost volume group

After a reboot, the volume group on my server completely disappeared. [root@dal01 log]# vgdisplay No volume groups found [root@dal01 /]# lvdisplay No volume groups found [root@dal01 ~]# pvdisplay (...
2
votes
0answers
706 views

Restore LVM if VG is not consistent (XenServer 5.6.1)

i have a VG that uses the PVs /dev/md1 and /dev/md2. Now one hdd failed in /dev/md1: [root@xenserver1 ~]# cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sda3[0] 382320128 blocks [2/...
2
votes
0answers
1k views

Almost All Xenserver Logical Volumes Disappeared - Recovery?

We had a hard disc crash of one of two hard discs in a software raid with a LVM on top. The server is running Citrix xenserver. On the hard disk which is still intact, the volume group gets detected ...
2
votes
0answers
2k views

LVM DRBD Shared between nodes proxmox

Context : I have proxmox cluster with the volume group shared with drbd for the VM - KVM. I have a problem with drbd. Indeed, when a node disconnect, the associate link between the differents nodes ...
2
votes
0answers
338 views

Debian: preseed partitioning results in deadlock

I'm using this code in my preseed.cfg for debian testing (wheezy): #Partman partman-auto partman-auto/init_automatically_partition select 50some_device__________regular partman-auto partman-auto/...
2
votes
0answers
494 views

What is the default metadata size in temporary volume during a pvmove?

I ran into an interesting error when attempting to address a particular problem. We had an issue where we have to move the extents over to new physical volumes because the metadata size was too ...
1
vote
0answers
18 views

Migrate From Xen LVM to Citrix Xen

I need to migrate some production vm's from Xen 4.2 to Citrix Xen 7.1. I have very little experience with Xen. The VM disks are LVM, see below info. One possible solution might be to do the following ...
1
vote
0answers
43 views

Rescue an unbootable Bionic system which uses LVM but can't find its volumes

I currently have a Bionic Xubuntu machine which has a boot partition and an LVM partition containing a LUKS-encrypted system. It doesn't boot because xubuntu--vg-root does not exist (i.e. it isn't ...
1
vote
0answers
49 views

LVM snapshot stuck during merge

I created a snapshot of an LV and I now wish to revert it back to its original state. Unfortunately, this operation seems to have gone totally wrong and it is now stuck: # /sbin/lvconvert -v --merge ...
1
vote
0answers
30 views

Performance issue with debian guests on xenserver with iscsi storage

I am facing a performance issue with my small virtualization environnment. I have two Dell PowerEdge 2950 and a Qnap TS-453-BU. The Dells are equipped with XenServer 6.5.0 and they are attached to an ...
1
vote
0answers
93 views

Clone Centos 7 installation - MBR to GPT

I want to clone a centos 7 installation (using LVM) from a 500GB drive (using MBR) to a new 6TB HDD. I tried to use clonezilla to clone the the drives with no success. fdisk -l output from ...
1
vote
0answers
76 views

Preventing LVM from accessing “low-level” devices of DRBD

Context: Active/passive DRBD setup. KVM VMs on LVM volumes. LVM using /dev/drbd0 for physical volume and volume group. During tests of the setup I have: Shut down Secondary node. Rebooted Primary ...
1
vote
0answers
240 views

Can't find (inactive?) LVM (with root FS) on boot

I'm running a Linux Server using ArchLinux, mostly for my own development needs. It runs Arch Linux on a SW-RAID1. There's two disk drives sda and sdb, each with 3 partitions sda1-sda3, sdb1-3. SDA1+...
1
vote
0answers
292 views

RAID 10 + bcache + LVM

I'm planning to setup a new RAID 10 array using Linux mdadm with bcache and LVM. The way I think about it is that first I create the RAID 10 array then I use the array as a backing device for bcache ...
1
vote
0answers
185 views

Customized Red-Hat 6.7 to 7.4 upgrade

I have a customized RHEL6.7 server, it has several LVM2 partitions, the root volume is LVM2 based and is located on: stats/rootvol im editing the current GRUB (0.97 which part of RHEL67) to look like ...
1
vote
0answers
187 views

KVM VM won't start after installation - Loading initial ramdisk

I installed my first KVM VM on a debian 9.3 host, with debian 9.3 client in the VM with virt-install. The host is a new and clean installation on a Dell Laptop. The only thing altered by me was the ...
1
vote
0answers
36 views

LVM snapshot has virtual origin - can't merge

I'm unable to merge a lvm snapshot # lvconvert --merge vg0/lv-malte Snapshot lv-malte has virtual origin. This is what my volumes look like # lvs -a LV VG Attr LSize ...
1
vote
0answers
258 views

Correct filtering of raw devices which are multipath components out of LVM

I have a HP MSA P2000 FC with dual controllers, dual HP SAN switches and a couple of servers with QLogic "ISP2532-based" 8G dual-port cards. Everything is connected "each to each" way. The OS is ...
1
vote
0answers
308 views

LVM error causing fall back to initramfs on boot after ubuntu upgrade

I've recently updated Ubuntu from an older LTS release (12.04) to 14.04 LTS and upon reboot, ubuntu fails to load and an error in /sbin/lvm is shown: There appears to be one or more degraded LVM ...
1
vote
0answers
143 views

Moving old drive contents to an already-allocated drive via pvmove

In my setup, I've got 4x 3tb HDDs, and a brand new 10tb HDD which I'm attempting to offload one of the 3tb ones onto. Current setup: /dev/sda - /dev/sdd: 3tb drives (with /dev/sd*1 as their ...
1
vote
0answers
227 views

Extending a logical volume , stealing from others

So I've been messing about with OpenStack and noticing that the cinder-volume which is created is only 20GB. I need to increase it ( or alteast I'm 99% certain i do :) ) Was looking around on the ...