Unable to create the partition

Hi,

I am trying to create the partition, but got the following error:

Hi,

I am trying to create the partition, but got the following error:

I think that the error message is clear about the problem. The device doesn't exist.

Regards
          Racke

I am trying to create new partition.
If that is not available, so that only need to create the /dev/vdb partition.

Your logic is flawed.
You cannot create devices.
You can only create partitions on existing devices.

Thanks for providing your input.

lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

vda 252:0 0 50G 0 disk

├─vda1 252:1 0 500M 0 part /boot

├─vda2 252:2 0 4G 0 part [SWAP]

└─vda3 252:3 0 10.5G 0 part /

You appear to be trying to do something to the /boot partition.

Perhaps you are referring to the wrong device?

When in trouble, or in doubt

Run in circles, scream and shout

Can you please suggest me how to fix this issue?

On the systems that I build, the /boot partition is simply an ext4 or xfs file system. I would not be trying to use logical volume manager to try to build /boot.

I would also look at using a kick-start method or similar to automate the build and get the file systems built there rather than with ansible.

Anyway that is what I do, others may have a different method that may work better in your case.

When in trouble, or in doubt

Run in circles, scream and shout

Thanks for providing your input.