Deleting old LVM devices file PVID <ID> last seen not found

On one of my servers, I used to have a storage device, /dev/sdb, attached to it. That storage was used as an LVM physical volume. It has later been removed, and now I just noticed the following message: [root@banan ~]# lvs Devices file PVID CuDRE3nMN5FMNqYLViHrnE1D7OFDlbX6 last seen on /dev/sdb not found. LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root almalinux -wi-ao---- <28.40g swap almalinux -wi-ao---- 2....

October 26, 2023 · 2 min · 274 words · kenno

LVM - How to Activate or Deactivate a Volume Group

Well, I hardly need to activate or deactivate LVM volume groups. But when I do, I also hardly remember the command required to do that. So hopefully, I can refer to this post should I need to perform one of these tasks in the future. Since a volume group is activated by default when it is created, let’s start with a command to deactivate it. # vgchange -a n example_volume_group Like wise, to activate a volume group, use the following command:...

February 3, 2022 · 1 min · 114 words · kenno

Resizing KVM qcow2 Image

I’m quite sure I’d resized qcow2 images before. However, when I needed to resize an image today for my VM at home, I totally forgot about it. Well, this means it’s a good excuse for me to just write down a few commands to help me in the future. If you try to follow a long, two things you wanna keep in in mind: do it at your own risk, and always backup your data before you make change to it....

December 25, 2021 · 5 min · 902 words · kenno

LVM Device Blah Excluded by Filter

If you use LVM frequently enough, especially when re-using existing disks, you might come a cross a problem when you’re unable to create a physical volume from that disk. For example, here is what I encountered today when I tried to create a physical volume on a device called /dev/sdb. [root@db3 ~]# pvcreate /dev/sdb Device /dev/sdb excluded by a filter. I’m sure I haven’t had any filters in /etc/lvm/lvm.conf. To fix this, I needed to wipe the signature from this device with wipefs command....

June 18, 2021 · 1 min · 169 words · kenno

Blacklisting Local Disk from Multipath

In my previous post, I wrote about my quest to identify a disk presented by the Dell server itself. At the end of the post, I mentioned that I should be able to resume with creating a LVM volume on the new disk. LVM stands for Logical Volume Management. There is a good tutorial available at this page if you’re interested in – How To Use LVM To Manage Storage Devices on Ubuntu 16....

January 28, 2018 · 3 min · 474 words · kenno