Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lvm]

Logical Volume Management provides storage abstraction, a generalization of disk partitioning.

4
votes
0answers
590 views

vgrename volume group with root filesystem

I am running Scientific Linux 7.4 I have run vgrename to rename the volume group that contains my root filesystem. I thought this would be easy. $ vgrename old_vg new_vg edit /etc/fstab edit /etc/...
4
votes
0answers
476 views

RAID-1 / LVM server won't boot after power outage

Strange issue. After an extended power outage (transformer exploded!) which outlasted the UPS, a server running Slackware 13 crashed. This machine has been quietly serving accounting software and ...
4
votes
0answers
843 views

LVM - Recovering from partition table corruption

I accidentally deleted a partition on a physical disk that was involved in an LVM system. I tried using testdisk's analyse feature to find the LVM partition, but it couldn't locate it. Should I invest ...
4
votes
0answers
1k views

LVM Encrypted Partition without Partition Table

I have the following Problem. My Laptop is fully encrypted with LVM I know the Passphrase, but the partition table is broken. I booted from an USB Stick in this Case sdb1. Is there any hope to get /...
3
votes
0answers
116 views

Backup: How to mirror/clone LVM LVs (or VGs) on demand?

So far, I have a semi-automated backup approach for the whole system installed in different LVs, using LVM (CoW) snapshots (which can be created upon boot to avoid data corruption). That is, if I ...
3
votes
0answers
186 views

adding new lvm mirror, all IOs only go to mirror

Here's an odd one. I added a mirror to a pre-existing disk in a vg using the standard mechanisms, and now, according to iostat, all I/O is only being serviced by the mirror. I'd expect writes to be ...
3
votes
0answers
44 views

Unwrapping an LVM2 recurrence?

I have inherited a machine, let's call it Host, that uses LVM2. On this machine, on an LVM2 logical volume, is the raw disk image for a virtual machine, let's call it Guest. Guest doesn't seem to ...
3
votes
0answers
213 views

Boot GRUB2 with Degraded RAID5

I am building a custom NAS with Debian Jessie. Has three 4TB hard drives in a software RAID5 configuration. Works perfectly when all three drives are present. I am trying to test what happens when if ...
3
votes
0answers
846 views

Mount LVM volume as external usb drive? CentOS 6

I'm trying to mount my old 2x500GB drives to the new server which has the same drive volume. Both have LVM structure but it's not working. root@server [/mnt/usb]# ls /dev/sd* /dev/sda /dev/sda2 /...
3
votes
0answers
1k views

Arch Linux boot failure: Fsck check on LVM /var mount fails

I recently installed Arch Linux on an older laptop that I am using as a personal workstation and machine to better learn how to administer Linux. I have a persistent boot failure that has started ...
3
votes
0answers
230 views

Replicate a complex partition structure with LUKS and LVM volumes

I have two external hard discs on an OpenSUSE 13.1 system. On one I have created a partition structure: An encrypted LVM partition (LUKS) Several volumes (10) on this LVM partition, some formatted ...
3
votes
0answers
2k views

How to recover a physical volume in LVM that shows as an unknown device?

I've been wanting to learn more about LVM, so I finally have taken the time to dive into it. Being the very smart computer guy that I am, I had the great wisdom to experiment with LVM on one of my ...
3
votes
0answers
4k views

What steps can I use to recover a RAID 1 array with LVM and EXT3 on it?

Someone handed me a drive that used to be part of a RAID 1 (mirror) array. The drive apparently has LVM (1?) on it and EXT3 (I believe). What steps can I take to regain access to this drive? ...
2
votes
0answers
54 views
+50

NVMe disk shows 80% io utilization, partitions show 0% io utilization

I have a CentOS 7 server (kernel 3.10.0-957.12.1.el7.x86_64) with 2 NVMe disks with the following setup: # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 477G 0 ...
2
votes
0answers
188 views

Why am I being thrown into an emergency shell when booting?

I have set up Arch Linux with full-disk encryption and partitioned my system disk using LVM. I just changed the motherboard, CPU and RAM of my machine, and after enabling legacy boot and disabling ...
2
votes
0answers
83 views

Reducing disks from a RAID5 mdadm with LVM

Checking a system, I found a server with 12 4TB drives in Raid5, with LVM on top. Single VG, single PV, and a few LGs that wouldn't need more than 6TB of space (currently only 4TB). Read speed is no ...
2
votes
0answers
756 views

Failing to boot Ubuntu 18.04 - “attempt to read or write outside of 'hd0'”

I am having issues booting and end up in a grub rescue shell. error: attempt to read or write outside of disk 'hd0'. Entering rescue mode... grub rescue> Searching around the web, i have found ...
2
votes
0answers
88 views

recover from snapshot

I have snapshotted an LV named roa to a snapshot volume named ima, then accidentally removed A file, I need to recover A file from the snapshot volume like what Btrfs snapshot did, but guides on LVM ...
2
votes
0answers
172 views

How do I create Free Extents, so I can replace a physical drive in this lvm Volume Group?

I have a Fedora Linux 28 system with 4 physical drives all in one LVM Volume Group. This system's motherboard only has 4 SATA slots. My goal is to remove the /dev/sdd physical drive from the Volume ...
2
votes
0answers
51 views

Creating from scratch a bootable M2 disk with backed up image of lvm partition with Linux Mint

I had created an dd image of lvm volume and I would like to restore it on a new pc. The older one is not available right now. On my old computer, I had 120Gb ssd with something like this: /dev/sda1 ...
2
votes
0answers
170 views

LVM boot activation sequence

I should write a SystemD service to execute a fsck on some LVM volumes. In order to set the right dependencies I have analyzed the boot sequence by the command systemd-analyze plot. Unfortunately my ...
2
votes
0answers
175 views

How to move LVM to new server

The current setup of my server, I have a storage disk array (RAID60) which hold 110TB of data. All the data is stored in multiple volumes created by LVM. Now, I want to upgrade my server with Cent OS ...
2
votes
0answers
1k views

LVM: How to recover LVM thin pool / volume after failed repair?

I would like some advise with recovering from broken LVM thin pool / volumes. The step that cause my broken LVM thin is as follows: My thin pool metadata was full (99.4%), so the pool freeze. I tried ...
2
votes
0answers
204 views

Libvirt managed storage volume encryption of a volume on 'logical' storage pool

I can't figure out how to make encrypted storage volume (managed by libvirt) for a volume which sits on 'logical' pool type (ie. on LVM). # virsh vol-create ocz-5ef92v58m9be7jo9 /tmp/in error: Failed ...
2
votes
0answers
496 views

create a device-mapper snapshot of an lvm volume multiple linear device with cow data outside of volume group

I need to make an in-memory snapshot of a running mounted root filesystem. The filesystem itself is on an lvm device, but there is zero free space in the VG and there is no way to expand it. However ...
2
votes
0answers
64 views

Can't use provisioned space on thin virtual disk

I have this issue with my virtualized RHEL 7.1. I created this VM with thin-provisioned disk. I thought that I know how it should work - provisioned space would be available to the VM, but as long as ...
2
votes
0answers
65 views

recover last state of full lvm snapshot

I recently ran into the case that an LVM snapshot overflowed. The reasons are unclear: * there was probably no write access to the origin at all * both snapshot and origin have same size (100g, 25600 ...
2
votes
0answers
828 views

Black screen after hibernation

I have the problem described here: https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Hibernation On the latest version of Arch Linux (4.7.5-1), on a mid-2012 MacBook Air (...
2
votes
0answers
564 views

ArchLinux: Error installing grub on encrypted lvm partition(lvm on luks)

I am trying to install Arch Linux on an encrypted partition (LVM on LUKS). I followed the relevant Arch Wiki guide, but when I do: grub-install --recheck /dev/sda it gives me this output: grub-...
2
votes
0answers
2k views

Backup partition in LVM using Clonezilla

I installed a Debian Jessie machine on a 1.4TB disk (technically a hardware RAID but this shouldn't matter). At installation, I created an unencrypted LVM with 3 volumes, including a 30 GB volume I ...
2
votes
0answers
731 views

LVM partition not mounting

There was a drive failure on a disk in a RAID1 configuration. I removed the bad disk and reconfigured the RAID1 to only use the good disk. When I reboot the machine there are missing LVM partitions. ...
2
votes
0answers
308 views

Encrypted boot drops to shell, how to set LVM crypttab consistently? 'ALERT! {logical volume path} does not exist'

I used Luks to encrypt my whole hard drive, and created that sda drive as a physical volume. Under that volume, I create a volume group vg00 with my 3 logical volumes lv00_root, lv01_home, and ...
2
votes
0answers
136 views

recover lvm formatted partition

I had 2 old drives having LVM installed showing as 1 drive. They were attached by the datacenter to the new server to migrate data but they weren't able to be mounted I tried everything possible until ...
2
votes
0answers
189 views

Recoving LVM logical volumes after having to recreate the physical volumes

After reinstalling my system to a new SSD, my existing LVM was toast, it couldn’t find any physical volumes or volume groups. I also don’t have backups of my LVM configuration. Also to further ...
2
votes
0answers
5k views

Jessie: can't boot the kernel 3.16.0-4-amd64

I have been using Jessie for a few months now, and I had a problem booting my computer a few weeks ago. I had this error on boot: early console in decompress_kernel Decompressing Linux... Parsing ...
2
votes
0answers
971 views

Dual Boot Debian on Raid 0 in UEFI mode

My new notebook came from the factory with Windows 8 on two 128GB SSDs in RAID 0 mode. I wanted to dual boot it with a Linux distro, I settled on Debian, so I resized my C: drive as one normally would ...
2
votes
0answers
699 views

Unable to boot with dracut and luks: '/dev/resume' : file exists

I am installing gentoo and have performed my first reboot after configuration and installation within my chroot environment. I am using LUKS and LVM to manage encryption of my drives. I am encrypting ...
2
votes
0answers
91 views

recover lvm after loosing partition table

On one of my hard drives had a few physical volumes/partitions and lvm on them. And then I lost partition table. I still have files from /etc/lvm/* how can I recover my data?
2
votes
0answers
4k views

How to restore /sysroot on Fedora 20

I can't boot my Fedora 20 system as usual. Upon boot I get the message Entering emergency mode. Exit the shell to continue. journalctl reveals the following: systemd[1]: Starting Switch Root... ...
2
votes
0answers
18 views

How to increase an FS using a LiveCD - that has SW RAID+LVM

If we have an older OS and can only increase the FS if we umount the FS because it is the ex.: /usr - then we have to use a LiveCD. The /usr is in the rootvg (LVM) that is on a SW raid Q: What are ...
2
votes
0answers
885 views

Unmount external drive with LVM2 Physical Volume on it

I've got my Ubuntu 13.04 install backed up to my external hard drive using deja-dup. I formatted the drive with lvm so I could use the rest of the drive for external storage while having the resize ...
2
votes
0answers
209 views

What changed between kernels 3.7 and 3.9 that affects LVM/RAID root file systems?

I'm trying to fix a (very messy) system that the user hosed by running a kernel upgrade from 3.7.10 to 3.9.6. the root file system is on an LVM volume on top of a software RAID array. The boot manager ...
2
votes
0answers
355 views

Setup Cloudmin on Centos installed in LVM

I installed CentOS 6 with default LVM partition pattern. according to this pattern Can I use Cloudmin and store KVM Disks in LVM as Logical Volume? I think Cloudmin requires creating new logical ...
1
vote
0answers
12 views

Broken LVM Physical volume after resizing partition

I bought a new larger SSD to replace my old one. The old one has 3 partitions, 2 for booting and a third (last) one with LVM2 on LUKS. I did the following to migrate: dd the contents of the old drive ...
1
vote
0answers
44 views

unable to create a bootable USB Debian Stretch disk using LVM with GPT partitions

I'm stuck for several days whith a issue when I try to create a bootable USB disk GPT partitonned. I would like this disk to be like a bootable "backup" disk for my live system. (In fact the system ...
1
vote
0answers
137 views

Automount LVM logical volume with a udev rule and udisks2

I want to automatically mount an LVM logical volume on an external drive as soon as it is connected to the computer. The solution I choose here is to use udev to detect plug in events and udisks2 to ...
1
vote
0answers
88 views

ls command is too slow for some directories

When I run ls command for some directories, it may take about 1.5 seconds to complete even if directory has just a few files, but for most of directories it's very fast. It seems that it's slow for ...
1
vote
0answers
72 views

Unable to enable discard/fstrim on a luks encrypted lvm-volume with Siduction (Debian Unstable)

i'm to get discard/fstrim enabled on my Siduction-System on a thinkpad x250. I use Siduction (Debian Unstable) with LVM 2.03.02(2). I have a big partition /dev/sda2 which is LUKS-Encrypted and in it ...
1
vote
0answers
238 views

Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes

My laptop has Lubuntu 18.04 installed, and I boot into a live Lubuntu via a bootable flash drive, and then examine the partitions and filesystems. Is the following warning some serious problem to ...
1
vote
0answers
48 views

How to shrink a lvm partition?

I'm trying to shrink an lvm partition, I have already shrunk the home volume, but I still can't shrink the partition in gparted. I am getting the following error: Archiving volume group fedora ...