Questions tagged [lvm]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

How can I completely remove the LVM setting on a hard drive, and verify that?

On a hard drive with LVs and PVs under LVM, I would like to use parted to create partitions and then to use mkfs.ext4 to create filesystems on partitions, without LVM. Before being able to use parted, ...
1
vote
0answers
7 views

Initramfs fails to mount sysroot for LVM volume

I have a Dell 730xd with a PERC card that has two 32gb RAID1 disks exposed. On the first I setup Alpine Linux using standard partitioning(boot, system, swap) with Grub. This works perfectly fine. I ...
0
votes
1answer
23 views

Does LVM make data recovery easier or harder?

Does LVM make data recovery on ext 4 easier or harder? I have to consider the risk of hdd failure. Thanks. I am going to install some Linux distribution (e.g. NixOS) on a laptop. It is already ...
2
votes
1answer
72 views

reduce lvm space and create new partition

My objective is to free some space from the lvm and create new partition. Below is the devices and lvm ontop of it. # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 252:0 ...
0
votes
1answer
28 views

Extend LVM on Ubuntu 20.4

how can I add the rest of the 19.5GB from sda2 to vg00-lv01? I tried lvextend but this tells me Insufficient free space: 512 extents needed, but only 0 available. I'm using Ubuntu 20.4. NAME ...
0
votes
1answer
87 views

LVM Volume Group not found

After rebooting my server i get the following error message: Begin: Running /scripts/init-premount … done. Begin: Mounting root file system … Begin: Running /scripts/local-top … Volume group “ubuntu-...
0
votes
2answers
47 views

Mixed SSD+HDD setup with encrypted LVM

Before anyone dishes out the facile answer, my SSD is not large enough to hold everything. My /home is full of data, documents, and VMs, approx. 720 GB. I do not want to buy a larger SSD. The SSD is ...
0
votes
1answer
18 views

Properly Extend virtual volumes on a CentOS VM, new space in /dev/cl/ not occupied by /dev/mapper

I have a CentOS VM (on a windows host, managed with virtualbox) that ran out of disk space. I extended the virtual disk size, then used gparted to assign the new space to the existing partition Then I ...
0
votes
1answer
23 views

How to show the filesystem of a logical volume (LVM)? (tldr:I/O error)

How to show the filesystem of a logical volume (LVM)? lvdisplay doesn't show them and fdisk isn't suitable to work with LVM. ssm tool shows some but not all: lsblk -f I'd like to know the /dev/cl/...
2
votes
2answers
120 views

Balancing LVM Virtual group between disks

I have an LVM virtual group with 4x disks, on this virtual group there are several logical volumes. However all the logical volumes have been placed on the first disk in the group resulting in poor ...
0
votes
1answer
15 views

Working with existing LVM Partitions

Im using Ubuntu 20.02 LTS on a virtual machine. Recently the virtual disk was extended. My disk setup looks like: lshw -class disk -short H/W path Device Class Description ====...
0
votes
1answer
46 views

Not sure if I run fsck / xfs_repair correctly

Running CentOS 7.9, I seen computer freeze for many times and I want to check disk for errors. I am not sure I am doing it correctly or what the command output means. I created a Centos install disk ...
0
votes
0answers
46 views

LVM+LUKS does not boot in kernel 5.14

I've got a dual-boot setup on my laptop, with Windows 10 on unencrypted partition and everything related to my Ubuntu 20.04 installation being on LVM encrypted with LUKS1, done according to this howto ...
0
votes
2answers
69 views

LVM: How to clone multi-disk encrypted logical volume?

I'm running Arch Linux. I want to clone a 2 disk encrypted logical volume in a single volume group (LUKS on LVM). There is a slight catch. I want to swap some of the drives. I have: VG1: LV: PV(...
0
votes
1answer
37 views

Question about Ubuntu 20.04 disk partition during installation

I am trying to install Ubuntu 20.04 on a NVMe disk. The installation wizard shows below disk info: I don't quite understand it. My questions are: Why the /dev/mapper/vgubuntu-root and /dev/mapper/...
0
votes
1answer
24 views

Extending LVM on Centos with growpart

I am attempting to increase the drive space on my Centos VM. I have added more space via virsh and can see that in lsblk. I then ran growpart /dev/sda 2 which told me that I could not extend that ...
1
vote
1answer
37 views

How can I fix LVM PV size after a botched encrypted partition shrinking

I apparently messed up today. I have to resize an encrypted root partition to make room for a windows dual boot. I followed instructions from the arch wiki since it seemed to match my needs even ...
2
votes
0answers
52 views

Recover LVM metadata, failed repair after filled metadata

I have a lvm where the metadata got full, I didn't understand what was wrong and attempted to fix it with lvconvert --repair pve/data This turned out to be a bad idea, as it now says that there is no ...
0
votes
1answer
22 views

Adjust a disk space available for a directory in Linux

I need to adjust the disk space given for an ordinary directory such as /opt directory. I'd found that the /opt directory allocates the space 4.0G, by using the below command: sudo du -sh /opt I need ...
0
votes
1answer
30 views

M2 SSD disk - bad sectors

I have a m2 SSD disk and it has 100 bad sectors (over 3 years). Is there a risk that this type of drive will eventually break, should i do something about it or not necessarily ? thanks
0
votes
1answer
22 views

LVM writecache not fully emptying

I'm struggling with an LVM issue. I have a writecache attached to an existing LV. I've been polling the LV as well as the writecache with lvs -o+writecache_total_blocks,writecache_free_blocks but no ...
0
votes
1answer
47 views

LVM recovery with physical disk failure on remote system

Questions like this have been asked a lot here but I've not found any with the same situation as I have. I have a system with a failed LVM volume group and I have no physical access to it. More ...
1
vote
0answers
71 views

device is not in a usable state / try to create pv out of lv

i think its a newbie question, i try to create a nested lvm or stack lvm. so i try to create a pv out of a lv, but i just get this message: pvcreate /dev/SSD-Pool/raid1-ssd Cannot use /dev/SSD-Pool/...
0
votes
0answers
52 views

Installing Ubuntu 21.04 with LVM on LUKS2 with integrity check returns errors when generating initramfs

TL;DR: I'm unable to generate initramfs after encrypting volumes with LUKS2 with integrity option and LVM on top of those volumes: cryptsetup: ERROR: first: Source mismatch cryptsetup: WARNING: target ...
1
vote
2answers
176 views

LVM root partition only uses half the volume size

I have an Ubuntu server 20.04 with an encrypted 50GB LVM root partition and I just realized the filesystem itself only shows 25GB The install was default (apart from the encryption bit) and I don't ...
0
votes
0answers
86 views

Breaking Luks encryption from a Memory Dump

I lost my LUKS encryption passphrase and I know that there are ways to recover the disk from a memory dump so I used the post of Subash SN I used findaes to extract the keys from the dump: Searching ...
0
votes
1answer
18 views

Can't repartiton disk after scientific Linux (stubborn LVM)

I'm distro hopping from scientific Linux, but can't free any disk space. root@archiso~# lsblk NAME TYPE sda disk |-sda1 part |-sda2 part |-sl-swap lvm |-...
0
votes
0answers
16 views

LVM with Virtaul Disk and GPT type partition - Create FS ext4 or do not created?

I have 2 linux servers , both have LVM. I expanded primary disk & created a partition (sda4) & then i added to LVM with pvcreate, vgextend & lvextend , resize2fs i used parted as fdisk ...
0
votes
1answer
32 views

Increase CentOS root partition with unused Windows partition space on dualbooot system

I am using windows and centos 8 stream dual boot. I want to extend the size of the centos root . I found this link Increase Linux partition with unused Windows partition space on dualbooot system and ...
0
votes
0answers
21 views

systemd/udev high CPU via systemd-udevd because of MMP EXT4 feature

I partitioned and formatted my two new drives and suddenly my CPU usage went up to half of my available processing power. I checked and there were several processes, one of which was systemd-udevd. ...
0
votes
0answers
37 views

Does LVM2 enable trimming of hard disks - does it really get zeroed?

I recently had to buy a new hard disk for my system. I'm running on a ssd, but for virtual machines i tend to use a hard disk. Since it had to be partitioned and formatted, i used LVM to add it to its ...
0
votes
1answer
33 views

LVM: migrate pv data to another pv at same lv

First: pvcreate /dev/sdb(1GB) vgcreate vg1 /dev/sdb lvcreate -n lv1 -l 100%FREE vg1 then mount to /data Second: upload 500MB file to /data add 3GB disk, create pv (/dev/sdc) and add it to vg1 upload ...
0
votes
0answers
16 views

LVM cache rebuild upon failure

I have a simple setup in which a hdd is write-through cached via a ssd. The partitions size sum up to like 600 Gb. When the system fails the whole cache is being recreated (even if no files have been ...
0
votes
1answer
50 views

How to move disk space from one lvm to another?

I have disk space allocated in one of my machine in below way.As you can see , it has two disks : sda and sdb Root LVM - vg01-lv_root - has 445.6G size ( sda ) Home LVM - vg02-lv_home - has 893.7G ...
2
votes
2answers
50 views

Unable to extend LV file system in Ubuntu Server

I run a bare metal Ubuntu server with several VMs running in a KVM environment. I want to increase the size of one VM from 50GB to 100GB. I ran the following command to increase the nextcloudph-lv ...
0
votes
1answer
56 views

KVM disk-based VM on a luks-encrypted disk

I have an Arch linux running windows 10 disk-based VMs. The disk is on a different volume group and is luks encrypted. I have a logical volume for each VM with ext4 file system. I manually edited the ...
0
votes
1answer
79 views

How do I extend LUKS partition to fill the whole logical volume of 2 disks on LVM?

I have added a second disk to my LVM system. I created a physical volume there, added it to the volume group of ubuntu, 'vgubuntu', extended logical volume to fill the whole disk. How do I extend the ...
0
votes
1answer
46 views

LVM recovery after loss of system drive

I have made a LVM using multiple HDDs. The OS was installed on a different SSD. I lost that SSD. How can I recover the LVM from those HDDs?
3
votes
2answers
226 views

Shrink root LVM on LUKS2 btrfs root partition to enlarge swap partition

Here's my setup $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS nvme0n1 259:0 0 238.5G 0 disk ├─nvme0n1p1 259:1 0 100M 0 part /boot/efi ├─...
0
votes
0answers
28 views

How do I convert ubuntu 16.04 / partition from a standard partition to LVM?

How do I convert ubuntu 16.04 / partition from a standard partition to LVM ?
4
votes
1answer
262 views

Is there any risk to create an LVM group with two disks of different physical sector size?

I have two hard drives of different physical sector size. I would like to create an LVM volume group with them, however, when I do so with vgcreate, I get a warning telling me that the two disks have ...
0
votes
0answers
25 views

How do I combine two "devices" so that I can expand a partition that I want to span both on Ubuntu 20 LTS without a GUI / GParted. (SSH only.)

I have been looking all over to figure out how to expand a partition on one "device" to use space on another "device". I am putting quotes around device because that is what it ...
0
votes
0answers
124 views

LUKS-LVM partition resize problems

I have a concerning adventure while trying to resize(shrink) my LUKS lvm partition. I wanted to shrink my partition so that I can easily copy my system to a new smaller sized drive. Before I started ...
0
votes
0answers
41 views

How to mount an LVM from Read-only to Read and Write

I have a VM with an LVM. Occasionally when updates are performed, and the system has restarted it will go into a read-only state. This is an issue because I perform daily backups. Unfortunately, for ...
1
vote
1answer
220 views

What is an encrypted LVM?

If I install Debian, I can choose to set up the disk using an encrypted LVM. But what exactly does this set up? Is just the partition table encrypted, or are all files on all partitions encrypted?
0
votes
0answers
20 views

Installation of Windows at encrypted Arch

Scope: Windows 10 (not installed) ArchLinux (for example OS has been installed by usage of the following guide Partitions: - sda - sda1 - 1M part - sda2 - 550M part /efi - sda3 - 465.2G part ...
1
vote
1answer
38 views

Combine physical drives and lose minimal files in case of failure

I need to store large files on a lot HDDs. I don't care losing data but I want to lose as few files as possible if/when a drive fails. As far as I understand, it's not possible to setup drives in raid ...
0
votes
1answer
27 views

Disk size is show wrong value for Available

I have two disks 4G each. I create raid with lvm. The size for Available is wrong or is my mistake.I don't understand why it show 6.9T and not 7.2T or 7.3T :/ thanks lsblk sda 8:0 0 3....
0
votes
2answers
59 views

Disk replacement in encrypted LUKS LVM without data loss

so here's my setup of an off-site rsync backup server. Ubuntu 20.10 with 9 hard disks. Disks /dev/sd[a-h] belong to backup volume group. System is on /dev/sdi Server is: powered on via network-...
0
votes
0answers
196 views

lvremove failed because the Logical Volume contains a filesystem that is supposed to be in use

The title of my question is what I think is the main problem, but I am actually not sure of anything. I have a backup routine that involves an LVM snapshot that when wrong and I'm stuck with : an ...

1
2 3 4 5
27