본문 바로가기
OS/linux

🥰 lvm에 vg에 pv추가 후 기존 pv 제거하기

by Knowledge Store In Hyunsoft 2021. 7. 8.

# vgscan
  Reading volume groups from cache.
  Found volume group "lvm-vg" using metadata type lvm2

# pvscan
  PV /dev/sdb       VG lvm-vg  lvm2 [<931.00 GiB / 46.32 GiB free]

 

 

# pvcreate /dev/nvme0n1
 
# vgextend lvm-vg /dev/nvme0n1

# pvscan
  PV /dev/sdb       VG lvm-vg   lvm2 [<931.00 GiB / 46.32 GiB free]
  PV /dev/nvme0n1   VG lvm-vg   lvm2 [931.51 GiB / <46.84 GiB free]

# pvmove /dev/sdb /dev/nvme0n1

# vgreduce lvm-vg /dev/sdb

# pvscan
  PV /dev/nvme0n1   VG lvm-vg   lvm2 [931.51 GiB / <46.84 GiB free]

 

728x90

댓글