Questions tagged [lvm]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
36 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
346 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
23 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
  • 1,902
1 vote
0 answers
17 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
32 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
38 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
  • 475
1 vote
0 answers
20 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
61 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
21 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
23 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
3 answers
251 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
50 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
30 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
22 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
16 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
128 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
54 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
24 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
54 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
44 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
39 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
97 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.2k
2 votes
1 answer
63 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
55 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
170 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
39 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
61 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
  • 29k
0 votes
1 answer
109 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
119 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
285 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
249 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
44 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
98 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
0 votes
0 answers
56 views

How to locate the data of thin volume of LVM

I have a vg with pool and thin volumes. When I read the configuration, I found the extent description of 2 thin volumes are the same. thinvolume { id = "FjDv9Z-vUt0-S1h5-uVil-spU2-...
areslee's user avatar
0 votes
2 answers
128 views

The filesystem is already 65010688 (4k) blocks long

Please help me , when I try to increase the partition size in LVM, but when I try it doesn’t work, I do the following: df -h Filesystem Size Used Avail Use% Mounted on udev ...
Глеб Щеголев's user avatar
0 votes
0 answers
48 views

Problem installing LVM2 under Raspbian 10

I am trying to install lvm2 on a Raspberry Pi, but apt install is crashing: fruitloops% sudo apt install [sudo] password for heller: Reading package lists... Done Building dependency tree ...
Robert Heller's user avatar
0 votes
1 answer
186 views

Linux + is it correct to create volume using LVM over physical disks when disks size are huge

Our Goal is to use huge storage as 200TB for Kafka machine In order to achieve this Goal , we create volume using LVM over 4 physical disks in RAID10 , when each disk size is 50T , Note - each disk as ...
yael's user avatar
  • 13.2k
0 votes
3 answers
67 views

LVM after drive order change

I've got an LV consisting of the two drives /dev/sdd and /dev/sde I'm going to unplug the drives at /dev/sdb and /dev/sdc So I'm guessing the drives that were sdd and sde will no longer be so Will I ...
dhenry437's user avatar
0 votes
0 answers
30 views

Encrypting multiple new system partitions at once, when they're spread across two physical disks

I am installing Debian. I have two physical disks, and I would like to spread my system partitions across both for better performance. I also want to luks-encrypt my system, and preferably encrypt all ...
mkurz's user avatar
  • 197
0 votes
0 answers
797 views

partitionning additional disks as LVM with cloud-init

I'm using terraform and cloud-init to setup new VMs. I want to have additional disks setup and mounted in the new VM, with XFS partitions on top of LVM. Right now the only way I've found that allows ...
Edzilla's user avatar
3 votes
1 answer
231 views

How to format NVMe drive in Linux suitable for raid 1 and lvm on xen Host

I want to create a software raid on two identical SSDs How do I create partitions and format them optimal? lsblk nvme0n1 259:0 0 953.9G 0 disk nvme1n1 259:1 0 953.9G 0 ...
rubo77's user avatar
  • 29k
1 vote
0 answers
223 views

How to backup and restore full encrypted system partitions?

I want to be able to do the following: Install an arbitrary Linux distribution to one or more fully LUKS encrypted partitions (preferably one encrypted LVM group) Backup those encrypted partitions ...
mkurz's user avatar
  • 197
0 votes
1 answer
385 views

How to format RAID hard drive

I need to format(empty hdd) a RAID 0 HDD which is as follow: sdb 8:16 0 3.7T 0 disk └─md126 9:126 0 3.7T 0 raid0 └─md126p3 259:2 0 3.7T 0 part ├─rootvg01-swap 253:0 0 4G 0 lvm ├─rootvg01-...
Thu Ra's user avatar
  • 103
0 votes
0 answers
50 views

Recovering an XML file on Oracle Linux 8 with LVM and XFS

I have a VM with Oracle Linux 8.8 virtualized on VMware, LVM is used and the format is XFS (v6). If I delete a file, for example xml (in users /home), is there any way to recover it? Its clear that ...
d2rkm4n's user avatar
  • 101
0 votes
0 answers
42 views

HDD keeps locking to read-only; Cannot isolate cause of disk errors

The problem: After running with no issues for several months, one of my HDDs will lock into read-only mode seemingly at-random when in use. This can often be fixed by cycling power to the hard drives. ...
Hamaon Overdrive's user avatar
0 votes
0 answers
181 views

"umount failed: Invalid argument." when trying to umount overlapping mounts

I have a shared RHEL 8.8 system that was misconfigured such that multiple partitions have been mounted at the same mount point /home - a local LVM partition and a network share mounted using autofs: [...
jayhendren's user avatar
  • 8,384
0 votes
1 answer
218 views

LUKS on LVM: lvresize won't work - Error: "Cannot find active LUKS dm-crypt device using..."

I have a LUKs-on-LVM setup. I'm trying to lvresize, so I can remove a pv. However, I keep getting an error: Cannot find active LUKS dm-crypt device using my_vg/luks_lv. More information: My setup: ...
Teatree's user avatar
  • 103
0 votes
0 answers
26 views

What needs to be done, based on the following in order to successfully boot into the system?

Ran this command: sudo fsck -fvy /dev/mapper/root_vg-home Here's the output: fsck from util-linux 2.30 e2fsck 1.46.5 (30Dec-2021) fsck.ext2: No such file or directory while trying to open /dev/mapper/...
Alfredm's user avatar
0 votes
0 answers
42 views

Logical volumes missing in live mode

I am running Arch Linux (Linux 6.4.12-arch-1-1) on a Dell Lap top and have recently discovered that I am running out of space on one of my logical volumes i.e /dev/mapper/volgroup0-lv_root. I am ...
Jon's user avatar
  • 155
0 votes
1 answer
102 views

Seeking advise on how to divide storage between Volume Groups and Logical Volumes on SSD and HDD disks for home server

I am building a home server to host a few self hosted apps in docker (Ubuntu LTS). I would like to put all the files for the apps in the user home folder to keep them in one place and easy back up. I ...
Alabaster3552's user avatar

1
2 3 4 5
32