My major problem is how to create physical and logical volumes for my LVM partition which in this case is /dev/sda5. When I use pvcreate and vgcreate with /dev/sda5, it always says the partition is in use despite deleting and creating another one. I think this is why I am getting the error 'Can't open /dev/sda5 exclusively. Mounted filesystem?' Do you guys know how to handle this?
My major problem is how to create physical and logical volumes for my LVM partition which in this case is /dev/sda5. When I use pvcreate and vgcreate with /dev/sda5, it always says the partition is in use despite deleting and creating another one. I think this is why I am getting the error 'Can't open /dev/sda5 exclusively. Mounted filesystem?' Do you guys know how to handle this?