Wednesday, March 8, 2023

How to initialize a block device with pvcreate command in Linux

The following command initializes /dev/sdc  as a physical volume for later use by LVM logical volumes. Initialization is similar to formatting a file system.

# pvcreate /dev/sdc

Sample Output:

root@ubuntu-PC:~# pvcreate /dev/sdc

  Physical volume "/dev/sdb" successfully created.


Post a Comment