반응형
root@Cecildebian:~# pvcreate /dev/sdb
Cannot use /dev/sdb: device is partitioned
root@Cecildebian:~# pvcreate /dev/sdd
Cannot use /dev/sdd: device is partitioned
root@Cecildebian:~# pvcreate /dev/sdc
Cannot use /dev/sdc: device is partitioned
root@Cecildebian:~# pvcreate /dev/sde
Cannot use /dev/sde: device is partitioned
원래 하드드라이브가 레이드가 구성되어있던것이라던가 lvm를 설정중이던가 하면 파일시스템정보 파티션테이블 서명 등 메타데이터가 남아있을수 있어 삭제하는 작업이 필요하다.
wipefs 명령을 사용한다.
root@Cecildebian:~# wipefs --all --backup /dev/sdb
/dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdb: calling ioctl to re-read partition table: Success
root@Cecildebian:~# wipefs --all --backup /dev/sdd
/dev/sdd: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sdd: 8 bytes were erased at offset 0x3a3817d5e00 (gpt): 45 46 49 20 50 41 52 54
/dev/sdd: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/sdd: calling ioctl to re-read partition table: Success
root@Cecildebian:~# wipefs --all --backup /dev/sdc
/dev/sdc: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 8 bytes were erased at offset 0x3a3817d5e00 (gpt): 45 46 49 20 50 41 52 54
/dev/sdc: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Success
root@Cecildebian:~# wipefs --all --backup /dev/sde
/dev/sde: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sde: calling ioctl to re-read partition table: Success
반응형
'Linux' 카테고리의 다른 글
fuser -contains a filesystem in use 에러 발생시 (0) | 2025.03.04 |
---|---|
Debian LVM 설정 (0) | 2024.02.16 |
LVM 파티션 복구 (0) | 2024.02.16 |
Rocky linux 네트워크 카드 전송속도등 변경 (1) | 2023.11.23 |
Rocky Linux 9.1 NGINX 설치 (0) | 2023.04.04 |