LVM: DEVICE /DEV/SDX EXCLUDED BY FILTER

https://www.simplstor.com/index.php/support/support-faqs/118-lvm-dev-excluded-by-filter

If you have created a new VD using a disk or group of disks that were previously partitioned, you may see a message like this when you try to initialize the virtual disk for LVM.

# pvcreate /dev/sdd
  Device /dev/sdd excluded by a filter.

If filter is correct (/etc/lvm/lvm.conf) and old partition table information found on the disk, you can wipe out the old partition information with “wipefs”.

# wipefs -a /dev/sdd
/dev/sdd: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdd: calling ioclt to re-read partition table: Success

Now, try pvcreate command again.

# pvcreate /dev/sdd
Physical volume "/dev/sdd" successfully created.

Cockpit packages

Package NamePurpose
cockpit-dockerManaging Docker Containers
cockpit-kubernetesVisualizing and Configuring Kubernetes Cluster
cockpit-machinesManage KVM Virtual Machines
cockpit-sosreportCreate diagnostic report with the sosreport tool
cockpit-selinuxTroubleshoot SELinux Issues
cockpit-kdumpConfigure Kernel Crash Dumps
cockpit-subscriptionsManage System subscription
cockpit-machines-ovirtManage oVirt Virtual Machines
cockpit-pcpReading PCP metrics and Loading PCP archives

Disk > Mdadm > LVM

lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT

mdadm -D /dev/md127

watch cat /proc/mdstat

# Create vg1

vgcreate vg1 /dev/md127

# Create lg disk

lvcreate -L 150M vg1 -n lv1
lvcreate -L 150M vg1 -n lv2
lvcreate -L 150M vg1 -n lv3

lvs

lvdisplay

mkfs.ext4 /dev/vg1/lv1

mkfs.ext4 /dev/vg1/lv2

mkfs.ext4 /dev/vg1/lv3

mkdir /home/lv1 && mount /dev/vg1/lv1 /home/lv1

mkdir /home/lv2 && mount /dev/vg1/lv2 /home/lv2

mkdir /home/lv3 && mount /dev/vg1/lv1 /home/lv3

#Extend lv disk, first check for free PE of PV disk with pvdisplay

lvextend -l +200 /dev/vg1/lv1

resize2fs /dev/vg1/lv1

lvextend -l +100 /dev/vg1/lv4

xfs_growfs /dev/vg1/lv4

lvextend -L50G -n /dev/vg1/lv4


xfs_growfs /media/root/87257771-0931-4d1c-b538-58e9c6b1e09b

###Note: fill all space of PV disk: lvextend -l +100%FREE /dev/vg1/lv4

lsblk

blkid