Questions tagged [lvm]

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

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

remove a pv from lvm

i have 2 disks (4T & 2T) as lvm formatted as ext4... i've only used around 1T and wish to remove the 2T disk. is this possible? i've tried running: pvmove /dev/sdb1 but errors No extents ...
0
votes
0answers
12 views

How large should my mirrorlog device be?

I'm using LVM to create a setup of 4 disks of 4TB each where each disk will be a mirror (so I can recover from up to 3 disks failing). I'll use a separate (faster and smaller) disk for the mirrorlog, ...
0
votes
1answer
19 views

LVM entry for logical volume in /etc/fstab - /dev/mapper/group-volume or /dev/group/volume?

I created a logical volume like the following. lvcreate -L 300G MyVolGroup -n homevol As for mounting this volume after initializing a filesystem on it, a few guides I read used /dev/MyVolGroup/...
1
vote
0answers
20 views

How to mount filesystems on OL8

I cannot mount the filesystems below on my Oracle Linux 8: /dev/mysql_vg/mysql_lv /dev/mysql_bck_vg/mysql_bck_lv How I created the volume groups: vgcreate mysql_vg /dev/sdb vgcreate mysql_bck_vg /dev/...
0
votes
1answer
31 views

Extend Disk Size of LVM

I have a LVM (/dev/data/files) with 170G which is currently on a Physical volume (/dev/sdb1) Here is the structure, shown by lsblk command lsblk sdb 8:16 0 220G 0 disk └─sdb1 ...
2
votes
1answer
53 views

Using LVM with RAID1

I am using SLES 15 SP3. I need to setup RAID1 with LVM using autoyast.xml In the AutoYast guide, I found examples of how to setup: LVM RAID They seem pretty straightforward and I even tried them and ...
0
votes
1answer
25 views

LVM2; How to tell if PV was specified when LV created

When creating an LV you can specify that (data for) that LV should only be written to a particular physical device (as opposed to letting the lvm put the data whereever it sees fit). Eg. lvcreate -L ...
1
vote
1answer
32 views

How to update /dev/mapper entries after unplugging hotswap disk

My backup disks use lvm. They are both inserted into the same cage, so only one of them can be present in the system at any one time. When I remove a disk, the entry in /dev/mapper usually doesn't go ...
0
votes
1answer
33 views

How to undo fdisk new partition on ext4 file system?

I have a LVM called /dev/data/files on a VM of mine. I allocated 50 GB on it and wanted to extend this LVM... So, instead of using lvextend command which i forgot to use i did the following: fdisk /...
2
votes
1answer
33 views

LVM2 : How to list physical partition identifiers with the UUID of the VG they are assigned to -- or trace one to the other

(Rocky Linux 4.18.0-305.25.1.el8_4.x86_64 ) I have 2 Volume Groups. Both VGs are named "rl", so I need to rename one of them and must use the correct VG UUID to do this. I cannot find a way ...
0
votes
2answers
49 views

Creating an SSD partition with a different block size

I am trying to put together a complex setup (Debian) that uses LUKS+LVM+LVM cache in a mixed SSD+HD environment. To use a partition on the SSD (partition size for lvmcache volumes: 20 GB) as the LVM ...
1
vote
0answers
28 views

Why doesn’t my system boot (Arch)?

What exactly is happening here? I had Arch installed on this system for the last couple of weeks and everything was working fine. I have LVM on LUKS. Last time I did an update was a couple of days ago,...
1
vote
1answer
24 views

Logical volume not found in volume group

I need to increase the size of centos_s0106ac9e17b4312300-root I am trying sudo lvextend -L +10G /dev/mapper/centos_s0106ac9e17b4312300-rootJESSE but getting Logical volume rootJESSE not found in ...
2
votes
1answer
37 views

Cannot clone a full SSD (LVM) to another SSD unless is exact same type

I have a CentOS 7.9 installation and I want to move all SSD contents including OS to a new/faster SSD (both are M.2 nvme). The disk is setup using LVM. I tried cloning with Macrium Reflect and other ...
0
votes
0answers
17 views

How to choose optimal size for LVM snapshot for cloning MongoDB?

Yes, I know that my question will look familiar to many of you, but I would like to double check with before I start working on it. I have read similar question: Snapshot size in lvm , but still one ...
0
votes
0answers
28 views

How to transfer root system volume /dev/vda1 to /dev/sda (LVM)

How to transfer root system volume /dev/vda1 to /dev/sda (LVM). CMD: df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 1.8G 0 1.8G 0% /dev tmpfs 1.9G 36K 1.9G ...
2
votes
1answer
69 views

"will not make a filesystem here!"

Trying to format this LV /dev/mapper/nvmeVg-var which is not mounted. See findmnt below. mkfs.ext3 /dev/mapper/nvmeVg-var mke2fs 1.45.6 (20-Mar-2020) /dev/mapper/nvmeVg-var contains a ext4 file ...
0
votes
1answer
33 views

Is it possible to mount a single LVM partition on a different machine?

I had an LVM volume group ubuntu-vg created backed by three physical disk partitions, e.g., sda1, sdb1, and sdc1. One of these (sda) three disks failed, leaving me with a broken volume group. The ...
0
votes
1answer
43 views

fdisk: unsupported wipe mode

I am trying to create a new partition fdisk -W /dev/mapper/nvmeVg-var but keep getting fdisk: unsupported wipe mode nvmeVg-var is a part of an lvm When I fdisk /dev/mapper/nvmeVg-var I get The ...
0
votes
1answer
30 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
62 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
31 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
91 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
33 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
218 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
55 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
29 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
58 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
148 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
80 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
75 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
118 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
54 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
34 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
46 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
62 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
25 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
34 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
28 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
54 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
1answer
132 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
63 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
373 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
123 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
17 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
41 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
24 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
43 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 ...

1
2 3 4 5
28