pvcreate 명령어로 만들려면 에러가 발생한다
1 2 |
[root@block1 ~]# pvcreate /dev/nvme0n1 Cannot use /dev/nvme0n1: device is partitioned |
이럴땐 wipefs 명령어로 초기화 후 작업 하면 된다
1 2 3 4 5 |
[root@block1 ~]# wipefs -a /dev/nvme0n1 /dev/nvme0n1: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 /dev/nvme0n1: 8 bytes were erased at offset 0x7470c05e00 (gpt): 45 46 49 20 50 41 52 54 /dev/nvme0n1: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa /dev/nvme0n1: calling ioctl to re-read partition table: 성공 |
pvcreate 생성 정상적으로 진행완료
1 2 3 |
[root@block1 ~]# pvcreate /dev/nvme0n1 Physical volume "/dev/nvme0n1" successfully created. Creating devices file /etc/lvm/devices/system.devices |