카이도스의 Tech Blog
PROXMOX 디스크 추가 본문
728x90
반응형
# 디스크 확인
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223.5G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 1G 0 part /boot/efi
└─sda3 8:3 0 222.5G 0 part
├─pve-swap 253:0 0 8G 0 lvm [SWAP]
├─pve-root 253:1 0 65.6G 0 lvm /
├─pve-data_tmeta 253:2 0 1.3G 0 lvm
│ └─pve-data 253:4 0 130.2G 0 lvm
└─pve-data_tdata 253:3 0 130.2G 0 lvm
└─pve-data 253:4 0 130.2G 0 lvm
nvme0n1 259:0 0 7T 0 disk
nvme2n1 259:1 0 7T 0 disk
nvme1n1 259:2 0 7T 0 disk
nvme3n1 259:3 0 7T 0 disk
# 기존 pv 삭제
wipefs -a /dev/nvme0n1
wipefs -a /dev/nvme1n1
wipefs -a /dev/nvme2n1
wipefs -a /dev/nvme3n1
## lvm 설정
## pv 생성
pvcreate /dev/nvme0n1
pvcreate /dev/nvme1n1
pvcreate /dev/nvme2n1
pvcreate /dev/nvme3n1
## pv 확인
pvscan
PV /dev/sda3 VG pve lvm2 [<222.54 GiB / 16.00 GiB free]
PV /dev/nvme0n1 lvm2 [<6.99 TiB]
PV /dev/nvme2n1 lvm2 [<6.99 TiB]
PV /dev/nvme1n1 lvm2 [<6.99 TiB]
PV /dev/nvme3n1 lvm2 [<6.99 TiB]
Total: 5 [28.16 TiB] / in use: 1 [<222.54 GiB] / in no VG: 4 [<27.95 TiB]
# vg 생성
vgcreate data /dev/nvme0n1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1
# vg 확인
vgscan
Found volume group "pve" using metadata type lvm2
Found volume group "data" using metadata type lvm2
# lv 생성
lvcreate -l 100%FREE --thinpool thin-pool data
# lv 확인
lvscan
ACTIVE '/dev/pve/data' [130.24 GiB] inherit
ACTIVE '/dev/pve/swap' [8.00 GiB] inherit
ACTIVE '/dev/pve/root' [65.63 GiB] inherit
ACTIVE '/dev/data/thin-pool' [27.94 TiB] inherit
728x90
반응형
'PROXMOX' 카테고리의 다른 글
PROXMOX - 클러스터 생성 (0) | 2023.12.09 |
---|---|
PROXMOX - 기존 시스템 디스크 통합 (0) | 2023.12.09 |
PROXMOX 기본 셋팅 (0) | 2023.12.09 |
PROXMOX 설치 - 2 (bonding 설정) (0) | 2023.12.09 |
VM 생성 (0) | 2023.01.11 |
Comments