Skip to main content

Questions tagged [lvm]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
16 views

LVM thinpools: is fragmentation a concern?

I'm currently migrating a ~10TB dataset from a plain LVM volume group to a new one, trying to store the data in a thin pool instead. For regular LVM volumes, I could see the physical allocation of the ...
Danya02's user avatar
  • 121
1 vote
3 answers
43 views

Remove lvm volumes after fresh Debian install

I've done a fresh Debian install on a system that had a second disk that was previously used for Proxmox and had some lvm volumes on it. If I do a lsblk I get: NAME MAJ:MIN RM ...
bibac's user avatar
  • 121
0 votes
0 answers
35 views

MD Raid / LVM / BTRFS advice for homemade NAS

Context: I'm looking to build a homemade NAS to get more flexibility (especially on the capability to add more drive) than commercial solution. My system will start with 3 SATA SSD drive or NVME (sda, ...
radius's user avatar
  • 367
5 votes
4 answers
625 views

Simulate slow disks in KVM to see effect of LVM cache in test setup

I'm setting up a Linux system in KVM (QEMU) to test the effect of adding a writeback LVM cache on a fast disk in front of a logical volume that resides on a set of very slow disks (a RAID1 LV). This ...
Kusalananda's user avatar
  • 339k
0 votes
1 answer
58 views

Linux LVM disk partitioning scheme for a server?

I would like to know the disk layout / partitioning setup on a linux server. From what I know, you need to have a physical EFI partition if it's a UEFI system (arch wiki). Also you need (recommended) ...
A.Dhond's user avatar
0 votes
2 answers
31 views

how to manipulate LVM partition size

when installing Linux from iso (Redhat-8 for example) you have the option of doing the LVM partition scheme instead of the standard hard partitions. When LVM partitions are made as described below, ...
ron's user avatar
  • 7,162
0 votes
0 answers
94 views

dracut with btrfs (raid1) on lvm on luks

I’m using Ubuntu with dracut for initramfs with BTFRS on LVM on LUKS: $ lsblk -o name,type,mountpoint,fstype NAME TYPE MOUNTPOINT FSTYPE sda disk ...
Marc's user avatar
  • 1
-1 votes
1 answer
52 views

lvm details of dm-integrity

I've added integrity checksum to my root LVM volume using lvconvert command: ~# lvconvert --raidintegrity y --raidintegritymode bitmap ... Is there a CLI syntax to get info/details related to dm-...
frank67's user avatar
0 votes
1 answer
52 views

How to restore the disks in emergency mode without losing data

The server enters emergency mode after a reboot. There are two disks on the machine, a ssd /dev/sda1 and a hdd /dev/sdb1. Originally the ssd was mounted to / and the hdd was mounted to /home. Now the ...
Cabbage's user avatar
0 votes
0 answers
30 views

is it possible to boot into luks encrypted raw disk image with qemu/libvirt/virtualbox?

Done dd of my luks encryted drive, now im courious if its possible to create libvirt/quemu guest and attach that luks encrypted raw image and run it as is? Actually I have Fedora 38 on it with several ...
tomandjerry's user avatar
0 votes
0 answers
43 views

Recover data from a raid 1 disk

i would like to recover some data from a disk which was part of a MD RAID 1 Array in an old fileserver. Drive 1 had a HW issue and it seems that drive 2 stuck in a Rebuilding State. My idea was to get ...
csiko's user avatar
  • 1
0 votes
0 answers
41 views

LUKS-LVM-LUKS - double encryption

I have FDE (LUKS-LVM), but my home directories aren't encrypted for each users. I have now: sda ├─sda1 /boot └─sda2 └─crypto0 (luks) └─vg0-root (/) └─vg0-swap ([SWAP]) └─vg0-home (/home, ...
xUr's user avatar
  • 245
0 votes
3 answers
96 views

How to extend LVM RAID5

This is the first time I'm posting here; usually, I always find someone who has had the same problem as me. But I'm facing an issue with my RAID5 setup using LVM and could really use some help. ...
Tonnulus's user avatar
5 votes
2 answers
781 views

How do I use LUKS encrypted partitions with Kubuntu 24.04 installation?

I am trying to install Kubuntu 24.04 with manual partitioning. I have created primary partitions for EFI and boot, and an encrypted partition with logical volumes for swap, root, and home. Previously,...
Ray P.'s user avatar
  • 161
0 votes
1 answer
22 views

Concise non-destructive mounting of LVM2 from an Old Disk

I reinstalled Fedora and kept the old disk with my data as an archive of my earlier work. Now I want to recover some of those old files. There are posts that describe how to mount an LVM2, but so far ...
DrM's user avatar
  • 345
1 vote
0 answers
334 views

Ubuntu 24.04, Manual Install: /dev/mapper/* targets unavailable

We've got a new installer, Subiquity for Ubuntu 24.04. I've always set up my disks properly, encrypting, opening, creating logical volumes and filesystems, etc. Then I'd enter the installer and find ...
Diagon's user avatar
  • 680
-2 votes
1 answer
56 views

lvextend + use variable in order to lvextend filesystem

we have different Linux machines and each Linux machine need different partition size in order to extend the root filesystem or var filesystem by script , we can use the following lvextend syntax , ...
yael's user avatar
  • 13.4k
2 votes
1 answer
57 views

Moving from plain LUKS to LVM on LUKS

At installation I forgot to create a logical volume group in LUKS container. I won't reinstall the system. So how do I create LVG in LUKS container without data loss? My plan is: Install lvm2 package ...
MPEI_stud's user avatar
4 votes
3 answers
380 views

Does writing data on one LV keep deleted files on another LV from the same group intact?

Suppose we have one LV group with 2 logical volumes: /dev/lvm/home and /dev/lvm/root. Suppose I've accidentally deleted some important data on /dev/lvm/home, then turned off the PC the moment I ...
rsxrwscjpzdzwpxaujrr's user avatar
0 votes
0 answers
35 views

Block size output from lsblk and blockdev don't match

Why the output of LOG-SEC column and --getbsz in the following don't match? Are these values of different quantities? How to find actual values? And is the output of following stat command always ...
Porcupine's user avatar
  • 2,056
1 vote
0 answers
21 views

vgrename but without writing to storage (read-only PV)

when dealing with image backups of systems I often run into issues with the VG within the mounted backup image having the same name as the live one. Also because the backup is read-only I cannot ...
K. Frank's user avatar
  • 111
0 votes
1 answer
37 views

How to work on a specific disk or partition once in lvm?

Having 1 500GB SSD and 1 1TB HD, the SSD is already part of Logical Volume, the HD is mounted with fstab. Everything works fine. However, out of curiosity, if I decide to extend the second drive (/dev/...
hyperswiss's user avatar
2 votes
0 answers
72 views

Device excluded by a filter

OS is Debian. Trying to do pvremove on a failed nvme, I get the following error: Device /dev/nvme0n1 excluded by a filter. I see no filter set up in lvm.conf. pvremove --force shows the same error. ...
cat pants's user avatar
  • 487
1 vote
0 answers
22 views

Extend /home with additional 50GB

I would like add additional space of 50GB either to existing hard disk or new disk, whichever fits well, but this space should be mounted at /home. My sda2 is already mounted at /home. I am using RHEL....
codelearner1029's user avatar
0 votes
1 answer
160 views

Emergency mode after resizing logical volumes on Ubuntu server

I run the latest version of ubuntu server on a personal computer at home that I use as a server. I have two logical volumes on it. vg0 and vg1. Recently, I noticed that my partition /dev/vg0/lv-var ...
lucienfradet's user avatar
1 vote
1 answer
37 views

LVM on LUKS - linux not booting with error "vg-xxx" not found after moving to encrypted partition

I had a working ubuntu with root and swap partitions encrypted with an LVM on LUKS set-up. Name of the LVM virtual group is vg-ubuntu. Due to a maintenance need (a boot partition, not on LVM, ...
AlexVal's user avatar
  • 21
0 votes
0 answers
34 views

LVM LV path missing after wrong lvextend

I'm a bit lost after an error I made in the command lvextend. My setup: sda3 was only PV sdb added as empty disk have LV 'data' as LVM-Thin My VG is "pve" and my LV is "data" I ...
jellex's user avatar
  • 1
2 votes
2 answers
307 views

Finding offset of a filesystem in LVM relative to beginning of a drive

Finding offset of a filesystem that resides directly on a partition is easy: check the partition start sector, multiply by sector size, done. What if the filesystem lives inside LVM? I could scan the ...
gronostaj's user avatar
  • 708
1 vote
1 answer
165 views

Is it safe to add LVM cache device to existing LVM volume group while filesystem is mounted?

I have an existing LVM volume group with a 10 TB logical volume mounted as an ext4 system which is actively in use. Is it safe to run the command lvconvert --type cache --cachepool storage/lvmcache-...
Mikko Rantalainen's user avatar
0 votes
0 answers
32 views

LVMs are showing under different partition even though they are under same volume group

I have below curtin partition configuration for a single drive of size 900 GB. curtin/partitions: storage: config: - grub_device: true id: sda name: main_disk ...
aneeshdevcube's user avatar
0 votes
1 answer
32 views

Extending rootfs on centos

so I can see in lsblk that I have a 250G disk, but when I run pvresize /dev/sda3 I am not able to see the free space to extend the volume group. Do I need to modify the partition table in single user ...
Joe's user avatar
  • 3
0 votes
1 answer
19 views

Move physical extents inside one PV on LVM

I've got the following PV : /dev/md4 vg_raid lvm2 a-- 50,93t <17,39t 0 4978957 datas 7630170 linear /dev/md4:0-4978956 /dev/md4 vg_raid lvm2 a-- 50,93t <17,39t 4978957 ...
François-Xavier Payet's user avatar
0 votes
2 answers
407 views

pvcreate No device found for /dev/vdb

I am having trouble using pvcreate command after a fresh install of Red Hat 9.3. The goal here is to increase the size of /dev/mapper/rhel-root so that I'm not running out of space. lsblk: [root@...
GoinOff's user avatar
  • 589
0 votes
2 answers
95 views

issue in adding physical volume to volume group lvm

Can anyone please help me fix the problem to add more GB to vg? lsblk Output NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128G 0 disk |-sda1 8:1 ...
ss2712's user avatar
  • 3
0 votes
0 answers
33 views

mount an LVM1 raw image

I have a raw dd image of a LVM1 volume, from an ancient backup, and I cannot mount anymore in recent distros as LVM1 has been removed, and only LVM2 is available. What should I try to mount it? I ...
George Livanoss's user avatar
0 votes
0 answers
79 views

file system error on non-existent device (ext4_mb_generate_buddy)

Ubuntu 20.04 server running virtual server guests. root@virtual3:/dev# dmesg | grep dm-11 [16067.090601] EXT4-fs (dm-11): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [...
David's user avatar
  • 29
0 votes
0 answers
51 views

Cannot mount partitions from image

I have a dd image of an old SSD. It's been sitting on an external HDD for a while, but I have previously been able to mount the image and its partitions. Now, for some reason, I can only mount the EFI ...
Chris's user avatar
  • 565
0 votes
0 answers
51 views

Problems mounting old Iomega NAS drive in unrealated Ubuntu environment

I'm posting on the StackExchange Unix&Linux community board first, as it seams to be the most likely place for the type of answers I'm looking for. I'm hoping that someone can point me in the ...
Xyhfna's user avatar
  • 1
0 votes
1 answer
164 views

LVM extend filesystem based on increasing existing disk size

before couple months we extend root XFS filesystem partition size ( it was only 20G ) by adding the VMDK sdi disk and increase the root filesystem by +100G [root@DB_OP_SERVER ~]# pvcreate /dev/sdi ...
yael's user avatar
  • 13.4k
2 votes
1 answer
109 views

lvresize showing incoherent and random final size

I'm trying to resize (reduce) a logical volume after having already resized the filesystem on it : lvresize -L 63T /dev/vg_raid/datas File system btrfs found on vg_raid/datas. File system size (62,...
François-Xavier Payet's user avatar
1 vote
1 answer
86 views

LVM Thin Pool on RAID10 + Metadata on RAID1

Given 2 SSDs and 4 HDDs with their corresponding PVs (/dev/ssd1, /dev/ssd2, /dev/hdd1 to /dev/hdd4). I know, identifiers are not correct, they are just for easier keeping track of what device I'm ...
Tux-Of-War's user avatar
2 votes
1 answer
243 views

Migrate existing RAID1 volumes to LVM on Proxmox

Notes: I read How to convert SW MD RAID1 arrays to LVM mirrors? but wanted to pose the question as that is quite an old post. This is my first post. I have a sw RAID1 (2 8TB HDDs that present to ...
stauntonjr's user avatar
1 vote
2 answers
49 views

Scan online EXT4 using LVM snapshot?

Can you make a trustworthy EXT4 filesystem-scan of an online filesystem, e.g. root, by taking a LVM snapshot and then do a scan on the snapshot, something like: Make a snapshot: lvcreate --snapshot --...
BMWW's user avatar
  • 155
1 vote
1 answer
90 views

Mount LVM backup partition inside host on XEN

I have a XEN server (4.17) with a volume group vg0 and some volumes on it where one is a logical volume especially for Nextcloud e.g.: lvcreate -n nextcloud -L2000G vg0 mkfs.ext4 /dev/vg0/nextcloud ...
rubo77's user avatar
  • 29.4k
0 votes
1 answer
179 views

Best pratice to remove a fail disk/PV from VG

I'm new to LVM and still don't know what is best practice to remove a failed disk/PV? For example: I have a thin pool my_volume_group/my_lv. I remove a disk (/dev/sde) from the raid controller, and ...
huynp's user avatar
  • 3
2 votes
1 answer
172 views

Mount LVM 1 volume from a loopfile

I've come across an old hard disk (+15 years) that contains an image of another disk I created using dd. By using losetup, I can attach it to a loop device. # lsblk -f /dev/loop0 NAME FSTYPE ...
George Livanoss's user avatar
1 vote
1 answer
373 views

multiple paritioning of loopback device leads to error

I'm in the development of a partitioning tool, for testing purposes I have to run partitioning and LVM configurations repeatedly on a loopback device Partition /dev/loop0 with 3 partitions /dev/...
wasp256's user avatar
  • 209
1 vote
1 answer
438 views

Encrypted LVM "is not a valid LUKS device", cannot boot or open

I have an Arch installation on a LUKS-encrypted LVM. After I installed Debian on a different NVME drive I'm no longer able to cryptsetup open the partition from other systems, nor can I boot into Arch....
lkjtigeve's user avatar
1 vote
0 answers
51 views

LUKS on LVM – how to manage suspend/resume on external hdd?

I've just set up LUKS on top of LVM on my external hard drive. However, when I leave the hdd idle for an hour, I am getting I/O errors in dmesg when the drive spins up again: [170969.546887] usb-...
goldmund's user avatar
0 votes
1 answer
163 views

Resetting logical Direct-Access Error || RHEL 7.x

We have an error for the LVM resetting device which has been impacting our Linux server during this period. kernel: hpsa 0000:02:00.0: scsi 0:1:0:1: resetting logical Direct-Access HP LOGICAL VOLUME ...
Moustafa's user avatar

1
2 3 4 5
32