From 31f0dbce71cc8b4ed50e6458c6fd6b1d875c8812 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 5 Mar 2021 15:35:02 +0100 Subject: [PATCH] lvm: added excluded by a filter bugfix --- wiki/linux/lvm.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wiki/linux/lvm.md b/wiki/linux/lvm.md index d1d1654..4496d9f 100644 --- a/wiki/linux/lvm.md +++ b/wiki/linux/lvm.md @@ -4,7 +4,11 @@ ## Create VG for proxmox +We will use `/dev/sdb` as our drive. Setup the disk for the physical volume with `sgdisk -N 1 /dev/sdb`. -Then create the physical volume `pvcreate --metadatasize 250k -y -ff /dev/sdb1`. -And finally create the volume group `vgcreate vmdata /dev/sdb1`. +Then create the physical volume `pvcreate /dev/sdb`. +The previous step can come to a halt when the device already contains an old +partition table and will display the error `Device /dev/sdb excluded by a filter`. +This can be solved by removing the old partition table with `wipefs -a /dev/sdb`. +And finally create the volume group `vgcreate vmdata /dev/sdb`. Then follow the guide in proxmox on how to connect a `vg` to proxmox.