Trace: lvm_reference

MISC NOTES

LVM REFERENCE

pvcreate: Can't use /dev/sda: device is partitioned

Upon my first attempt, pvcreate -ff /dev/vdh did not work for me, whether or not the disk contains a partition.

''pvcreate -ff /dev/vdh
Cannot use /dev/vdh: device is partitioned
''

I had to use wipefs first to get rid of all metadata.

''root@nextcloud:~ # wipefs --all --backup /dev/vdh
/dev/vdh : 8 bytes were erased at index 0x00000200 (gpt) : 45 46 49 20 50 41 52 54
/dev/vdh : 8 bytes were erased at index 0x9c3fffffe00 (gpt) : 45 46 49 20 50 41 52 54
/dev/vdh : bytes were erased at index 0x000001fe (PMBR) : 55 aa
/dev/vdh : ioctl call to reread partition table: Success''