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.

334 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
1k 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 ...
8
votes
2answers
2k 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
1answer
785 views

Refresh uuid of physical device

I'm trying to clone a LUN on a server and present it to the same server and am running into UUID oddities. I don't create partitions on the LUN, just create a PV and then LVM on top of that so I can ...
5
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
2k 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 ...
4
votes
0answers
285 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 ...
4
votes
0answers
529 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, ...
4
votes
1answer
645 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 ...
4
votes
1answer
700 views

EC2 disk goes to 100% util, but fine after reboot

We've been running some production services on Amazon EC2 for a while, using mainly t1.large and t1.xlarge instances (non-EBS). Every so often one of the attached (ephemeral disks) will get into a ...
3
votes
0answers
286 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
137 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
881 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
1k 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
267 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
323 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
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 (...
3
votes
1answer
5k views

clvmd problems during the RHEV cluster deployment

We are deploying Red Hat Enterprise Virtualization cluster and we faced a problem attempting to start clvmd service after the lvm partition creating. The following has been completed successfully: ...
3
votes
0answers
710 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
595 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
3k 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 ...
3
votes
2answers
4k views

Xenserver 5.6 SR_BACKEND_FAILURE_47 no such volume group, but it is there

I've looked everywhere (Google, here, a bunch of other sites), and while I have found people with similar problems, I couldn't find a single one with a solution to this. Last night our xenserver 5.6 ...
3
votes
0answers
501 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
1answer
55 views

Disable write intent bitmap on LVM RAID1

I want to use LVM on raw devices to be able to dynamically create RAID0 and RAID1 volumes depending on my current needs. I've recently learned that the write intent bitmap feature of mdadm reduces ...
2
votes
1answer
484 views

Recover deleted LVM signature

I guess I've deleted LVM partition. I expanded the datastore in vmware ( 70 GB to 90 GB ), then I run echo 1> /sys/class/block/sdb/device/rescan. After that I run fdisk /dev/sdb. it shows my sdb ...
2
votes
3answers
539 views

LVM2 vgreduce unknown physical volume from root logical volume CentOS8

I have a removable disk in my CentOS8, but I can't reduce the volume group: [root@localhost ~]# vgs WARNING: Couldn't find device with uuid 3GDhRA-KZjA-iDum-8Ut0-s9s0-NnW2-4QQEUv. WARNING: VG cl ...
2
votes
1answer
383 views

DRBD Over LVM MKFS and accessing device

I admit I am in the experimental stage at this point, but as I read the documentation, this shouldn't be a problem. I am configuring DRBD over LVM. As I understand the drbd00.res file, I should be ...
2
votes
1answer
3k views

LVM: One or more devices used as PVs in VG have changed sizes

I recently installed LVM on Ubuntu 18.04 running on a physical workstation, and then I created my first LV. After first reboot I found a problem, as I cannot activate it anymore. I noticed this error:...
2
votes
0answers
2k 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
402 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+...
2
votes
0answers
322 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
215 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
312 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
2answers
148 views

physical vs logical disk transactions

I'm trying to analyze server requirements for a set of virtual machines. We're using LVM on them, so iostat shows numbers for both the logical volume and the physical disk, and they often don't match ...
2
votes
0answers
407 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
1answer
547 views

Set up DRBD to replicate root LVM volume

I have a server using /dev/vg1/root as its / mount. I am trying to set up DRBD so that ServerA's vg1-root is mirrored to another LVM volume on ServerB, vg1-ServerA-root. I am able to create the ...
2
votes
1answer
8k views

Linux LVM: move free space from a volume group to another

I've just read "How can you re-allocate space from one Volume Group to another Volume Group in Linux?" How can you re-allocate space from one Volume Group to another Volume Group in Linux? But I'm ...
2
votes
0answers
367 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
573 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
2k 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
683 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
353 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
186 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
669 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
115 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
1answer
249 views

Is it possible to create metadata only snapshots with LVM?

Using dm thin I understand it is now possible to store the metadata separately from the snapshot itself. Does anyone know if it would be possible to create metadata only snapshots which do not incur ...
2
votes
0answers
727 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
1answer
78 views

Why the I/O rate difference between an LV and PV?

I have been doing some benchmarks reading with dd from both the LVM device and the PV device and I got some unexpected results: $ sync ; echo 3 > /proc/sys/vm/drop_caches; dd bs=1M count=1024 if=/...
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
1answer
651 views

LVM+MongoDB. Dropping in speed of backup creation

Till recent time we have been making mongo backups archiving LVM snapshot on hidden SECONDARY server with RAID10 on SAS disks. Currently operation on making snapshot from volume with 500 Gb of data ...

1
2 3 4 5
7