Questions tagged [lvm]
In computer storage, Logical Volume Management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.
1,535
questions
0
votes
1
answer
14
views
Physical volume "/dev/sdb1" still in use, How can i remove a PV to simulate its failure
I'm trying to remove a physical volume from a VG
sudo vgreduce mirrorgroup /dev/sdb1
I made two PV sdb1 and sdb2 and mirrored this based on the activity I'm performing.
I needed to simulate a drive ...
-1
votes
1
answer
64
views
Thin provisioned LVM snapshot became separate volume without origin
I was playing with my LVM thin installation. Created multiple snapshots, merged them with origin many times. At some point in the output of lvs -a command oldest snapshots lost its origin. In the ...
0
votes
0
answers
18
views
Repartitioning proxmox root/data LVM and zfs pool recovery
Ok so I created my first proxmox virtual environment about a month or two ago and due to inexperience and miscalculations I created a partition table I am not really happy with. Along with that it ...
4
votes
2
answers
426
views
How to expand a volume group from a single physical volume
I am using LVMs on RHEL9. I have a logical volume on a partition(/dev/sda4) and need to give it more space. I went into VMWare and made the drive larger. I then expanded the partition using parted and ...
2
votes
1
answer
108
views
Monitoring LVM Thin Pool with lvs -a regularly using Zabbix (or any other method)
For my OpenStack setup, I'm using LVM as Cinder Block storage backend. I've created a cinder-volumes vg for Thin Provisioning.
Now, I want to monitor how much that vg is used (not seperate disks in ...
1
vote
2
answers
38
views
How to find the underlying device for a file on top of ext4 on top of LVM on top of multiple underlying storage devices?
I have a system with 3 SSD devices (/dev/sda, /dev/sdb, /dev/sdc) which contain a single LVM logical volume that span over all the devices. I have a single ext4 partition on the logical volume.
I ...
0
votes
1
answer
5k
views
How to resize Partitions on Proxmox?
Hey im Hosting Proxmox on a Small Hosting Provider and after i added more Space to my "sda" Proxmox refused to start and i wasnt able to go on the WebInterface.
I still was able to go into ...
3
votes
0
answers
55
views
CEPH Quincy installation with multipathd enabled
we have a setup comprising of 6 servers hosting CentOS 8 Minimal Installation with CEPH Quincy version 18.2.2 supported by 20Gbps fiber optics NICs and a dual Xeon Intel processors, bootstrapped the ...
0
votes
1
answer
538
views
vgcreate fails with 'already exists in filesystem' error
I have an installation test environment, where occasionally an issue is observed causing volume group creation to fail.
At the beginning of test, the disk contains four partitions.
# parted -l
Model: ...
0
votes
0
answers
62
views
LVM RAID1 always rebuilds on boot — why?
I have a Debian (Bookworm) NAS with software RAID1 that has an interesting problem: every boot, one of the RAID1 mirrors is flagged as dirty and has to rebuild. The other mirror is fine.
I have the ...
196
votes
6
answers
85k
views
LVM dangers and caveats
I have recently started using LVM on some servers for hard drives larger than 1 TB. They're useful, expandable and quite easy to install. However, I could not find any data about the dangers and ...
3
votes
2
answers
5k
views
Xenserver 5.6 SR_BACKEND_FAILURE_47 no such volume group, but it is there
I've looked everywhere (Google, here, a bunch of other sites), and while I have found people with similar problems, I couldn't find a single one with a solution to this.
Last night our xenserver 5.6 ...
0
votes
2
answers
6k
views
home logical volume is not available after reboot
On a server with RHEL 7.2 it gets to emergency mode when rebooting. Looking a bit I found out that what happens is that the /home partition was missing and the reason was LVM:
--- Logical volume ---...
0
votes
1
answer
99
views
Add caching for existing LVM
my AlmaLinux 9.3 server currently uses LVM.
One VG is mapped to the system SSD drive, consists of two LV, root and swap. This is fine as it is.
One VG consist of three hard-drives and is called Vault. ...
0
votes
0
answers
14
views
how to mark LVM raid1 PV as in-sync [duplicate]
I am recovering from bad sectors on both sides of my LVM raid setup.
(It's the backup server, dammit). I have new disks and a new install.
I could wipe the backup partition and suck 1TB of data ...
0
votes
0
answers
33
views
how to mark LVM raid1 PV as in-sync
I am recovering from bad sectors on both sides of my LVM raid setup.
(It's the backup server, dammit). I have new disks and a new install.
I could wipe the backup partition and suck 1TB of data ...
0
votes
1
answer
296
views
LVM volumes not present when linux start
We have a VMware cluster with 2 hypervisors, named as ESX6 and ESX7, the past Thursday we made a hypervisor fail drill. We shutdown ESX6, we unplugged the cable.
All virtual machines starting to go ...
30
votes
14
answers
144k
views
Can't remove open logical volume
When I try to remove a logical volume I get the message
#lvremove /dev/my-volumes/volume-1
Can't remove open logical volume "volume-1"
#lvchange -an -v /dev/my-volumes/volume-1
Using logical ...
1
vote
0
answers
78
views
Write out stale data from ext4 fs, once a disk has become available again
This is about an ext4 filesystem on a logical volume managed with LVM on a LUKS encryption on a hardware RAID. The operating system is a generic Ubuntu 22.04 LTS.
The RAID unfortunately failed ...
0
votes
1
answer
154
views
Extending LVM on virtualized ubuntu server
Ok, I hope I can explain this correctly. I am running ubuntu server on proxmox. Unbuntu is running my docker instance. My LVM i originally assigned it is full and I added more storage in proxmox ...
1
vote
0
answers
40
views
LVM Expand RAID1 with Asymmetric Segments Across 3 Heterogeneous Disks
I have 3 disks: one 1TB drive (A1), one 2TB drive (A2), and one 3TB drive (B). Currently, A2 has data on it in one LV that is 1.6TB in size. A1, A2, and B are PVs, in a volume group MyVG. I desire a ...
19
votes
7
answers
31k
views
Commit or revert a Linux LVM snapshot?
I'm about to perform an experimental upgrade on my CentOS 5 server. If the upgrade fails, I want to be able to back out the changes to the filesystem. This scenario seems similar to the example in ...
2
votes
2
answers
6k
views
Delete LVM and anything related to it
I want to delete /dev/sdb disk from the server. Before doing that I guess I should remove lvm and anything related to it. I don't care about /dev/sdb1 data.
I'm trying to follow this article https://...
0
votes
1
answer
121
views
How to reclaim unused space from lvm volume group to create new physical partition
I would like to reclaim some space from my lvm2 volume group to create a new physical partition to install a second OS for dual boots. I am afraid I may have painted myself into a corner with the disk ...
16
votes
1
answer
28k
views
linux + lvextend vs lvresize - what are the differences
what are the diffrences between lvextend to lvresize as the below example?
lvextend -L+1m /dev/mapper/rootvg-home
lvresize -L+1m /dev/mapper/rootvg-home
dose the both examples do exactly the same ?...
11
votes
5
answers
71k
views
Insufficient free space: X extents needed, but only Y available
I'm trying to extend a LVM in a Vmware Workstation 12 Pro CentOS VM. Below are the steps I am following and where I stopped because don't know how to folow from there:
Create the primary partition ...
24
votes
8
answers
278k
views
How to extend a Linux PV partition online after virtual disk growth
VMware allows to extend the size of a virtual disk online - when the VM is running.
The next expected steps for Linux system are:
extend the partition: delete and create a larger one with fdisk
...
4
votes
1
answer
6k
views
clvmd problems during the RHEV cluster deployment
We are deploying Red Hat Enterprise Virtualization cluster and we faced a problem attempting to start clvmd service after the lvm partition creating. The following has been completed successfully:
...
2
votes
0
answers
304
views
is it safe to use allow_mixed_block_sizes = 1 in LVM when using ext4 with 4k blocks on LVs?
i have Physical Volumes with different blocksizes:
blockdev -v --getss --getpbsz --getbsz /dev/md1
get logical ...
0
votes
1
answer
105
views
How do you make an encrypted swap partition setup persistent across boots?
I have a procedure which will manually create a plain dm-crypt swap volume, with a random key, which appears to work. This is a QEMU/Ubuntu 22.04 system. However, there's no swap after a reboot, so I'...
0
votes
0
answers
144
views
LUKS: encrypting swap without requiring a passphrase on boot?
I have a setup where I have a logical volume (data) that should be LUKS-encrypted. However, my feeling is that the rest of the filesystem shouldn't be encrypted, which gives some advantages:
The data ...
7
votes
3
answers
11k
views
Linux LVM - PVID last seen on
Devices file sys_wwid nvme. PVID last seen on /dev/nvme0n1p2 not found.
OR
Please remove the lvm.conf filter, it is ignored with the devices file.
Seems this is happening on RHEL 9 / CentOS 9.
0
votes
0
answers
399
views
"Can't read superblock" when trying to boot . Failed to mount /dev/mapper/xxxxxxx on real root
I finished setting up my new Arch system about a month ago. Since I had two nvme drives to use for the system I did some research on how I could use both of them to utilize the full capacity of both ...
2
votes
1
answer
9k
views
LVM: One or more devices used as PVs in VG have changed sizes
I recently installed LVM on Ubuntu 18.04 running on a physical workstation, and then I created my first LV. After first reboot I found a problem, as I cannot activate it anymore.
I noticed this error:...
14
votes
4
answers
17k
views
Which filesystems offer snapshot functionality for users to recover data?
I'm working on a project that will teach linux to youth. Knowing they will have a tendency to delete or corrupt items in their home directories we are looking for a good snapshot option. We will not ...
0
votes
1
answer
74
views
Setup raid for a volume group consisting out of 2 nvme drives
I bought 4 x 4tb nvme volumes.
I already tested them and they are doing fine.
Operating system is Ubuntu-server 23.04.
What i want to achieve is the following:
2 drives act as one. (I think that is a ...
0
votes
0
answers
40
views
An error occurs when executing the multipath -f command in the Controller when creating a openstack-cinder volume
An error occurs when executing the multipath -f command in the Controller when creating a cinder volume.
==============Infrastructure configuration================
[Openstack Controller01] <--------...
0
votes
1
answer
40
views
apache redirects to local IP on virtual machine
I'm having a problem with my apache setup.
I'm using a Proxmox server with multiple virtual machines and only one public IP.
Apache runs on the Proxmox host and forwards the requests to the virtual ...
7
votes
4
answers
10k
views
Convert full hard drive to LVM without external storage
Recently, my 2TB hard drive ran out of space, so I purchased another one to supplement it. My old drive is mounted in a specific folder (does not have system files or anything). Technically, I could ...
0
votes
0
answers
125
views
"ceph-volume lvm new-db" does not seem to perform as should be
A database device seems to be added to the OSD (via ceph-volume lvm new-db), despite an error is thrown.
Until now, it is unclear to me if the DB device was actually successfully added to the OSD or ...
0
votes
1
answer
52
views
ceph remove spurious data
I’d like to remove some “spurious" data:
root@XX03:/# ceph df
--- RAW STORAGE ---
CLASS SIZE AVAIL USED RAW USED %RAW USED
hdd 1.0 PiB 1.0 PiB 47 GiB 47 GiB 0
TOTAL ...
1
vote
1
answer
373
views
How to rescue an encrypted LUKS partition that was partially modified by a Windows tool?
On a system with dual boot, the Windows tool Dell SupportAssist started to modify partitions now I ended up with a broken Linux installation.
The Linux installation is/was Ubuntu with an encrypted ...
0
votes
0
answers
173
views
RAID 6, SSD Cache, Journaling, mdadm, LVM, Filesystem Strategies for Data Resiliance
I'm replacing a NAS server thats been in loyal service for almost a decade now. It will be repurposed as my offsite backup, but now I'm setting up a new NAS from scratch for homelab and need some ...
20
votes
10
answers
38k
views
LVM snapshots as a backup strategy
How viable as a backup strategy would be periodical LVM snapshots of xen domU's? Pros, cons, any gotchas?
To me it seems like the perfect solution for a fast, brainless restore. Any investigation ...
0
votes
1
answer
353
views
Optimal RAID + LVM configuration
I'm new to LVM and RAID management.
I've got a Linux machine (Ubuntu 18.04) with two 4Tb HDDs that are joined into an LVM group. That PC has also two 1.8 Tb SSDs. OS is installed on a separate NVME ...
3
votes
2
answers
6k
views
How to recover a cached LVM with cache on ram-disk?
In this article there is a nice recipe for how to use a RAM-disk as cache-device for a classical LVM volume.
Assumed you have an elder disk, lots of RAM and no SSD, you can boost disk performance to ...
3
votes
1
answer
336
views
Proxmox: Good Idea to use LVM thin together with LVM-Caching
I want to migrate my bare metal Debian server into Proxmox. My existing server uses a 120GB SSD and a 8 TB HDD. The HDD is cached on SSD (20G), which improves (read) performance a lot.
Here are all my ...
0
votes
1
answer
44
views
Curious? LVM on a brand new drive?
i wanted to replace a broken zfs-drive on my server and got a "sealed" drive from my storage for that usage, but when i first checked the drive it shows me that there is a LVM on it.
My ...
1
vote
1
answer
123
views
Duplicate LV names after cloning a disk with clonezilla
I have cloned my bare metal installation of Debian Bookworm on LVM to Proxmox VE. The cloning was done via Clonezilla (remote), disk to disk. The Disks were the same size but I'm unaware if I selected ...
10
votes
1
answer
21k
views
How do I expand the root's volume size?
I have Ubuntu Server 18.04 LTS running off a 16GB SanDisk USB pendrive in my server. From what I can remember, when I installed Ubuntu on there I had enabled LVM support. For some reason, when I ssh ...