PV resize

Linux/LVM / / 2012. 4. 2. 17:37
반응형

### PV 크기 설정(4G)

# pvcreate --setphysicalvolumesize 4G /dev/sdb1
  Writing physical volume data to disk "/dev/sdb1"
  Physical volume "/dev/sdb1" successfully created

 

### 4G로 설정된 PV 정보 확인

# pvdisplay /dev/sdb1
  "/dev/sdb1" is a new physical volume of "4.00 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sdb1
  VG Name              
  PV Size               4.00 GiB
  Allocatable           NO
  PE Size               0  
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               Agpyhe-vSZ5-icqD-KdHG-QJtS-Ojic-J4qLfx

 

### PV 크기 설정(8G)

# pvcreate --setphysicalvolumesize 8G /dev/sdb1
  WARNING: /dev/sdb1: Overriding real size. You could lose data.
  Writing physical volume data to disk "/dev/sdb1"
  Physical volume "/dev/sdb1" successfully created


### 8G로 설정된 PV 정보 확인

# pvdisplay /dev/sdb1
  "/dev/sdb1" is a new physical volume of "8.00 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sdb1
  VG Name              
  PV Size               8.00 GiB
  Allocatable           NO
  PE Size               0  
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               PhLhKg-jTKH-rggK-ZL6M-Lq1I-e1fA-UD4cV4

 

### pvs

# pvs /dev/sdb1
  PV         VG   Fmt  Attr PSize PFree
  /dev/sdb1       lvm2 a--  8.00g 8.00g

 

### pvscan

# pvscan /dev/sdb1
  PV /dev/sdb1                      lvm2 [8.00 GiB]
  Total: 1 [8.00 GiB] / in use: 0 [0   ] / in no VG: 1 [8.00 GiB]
반응형

'Linux > LVM' 카테고리의 다른 글

VG에 PV(/dev/sdc1) 추가  (0) 2012.04.02
VG(Volume Group) 생성  (0) 2012.04.02
PV Remove  (0) 2012.04.02
PV(Pysical Volume) 준비 및 생성  (0) 2012.04.02
LVM 용어  (0) 2012.04.02
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기