반응형

1. Physical Volume 준비
# fdisk /dev/sdb and /dev/sdc

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1044, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1044, default 1044):
Using default value 1044
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008558f
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1           1        1044     8385898+  8e  Linux LVM
Command (m for help): wq
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.

 

2. PV(Physical Volume) 생성

# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created


# pvcreate /dev/sdc1
Physical volume "/dev/sdc1" successfully created

 

3. PV 정보 확인
3.1 /dev/sdb1 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               eIK8yi-RLcJ-N8Vi-cCDO-n4YV-sM1Y-PWlPOo

 

3.2 PV 전체 정보 확인

 # pvdisplay -v 
    Scanning for physical volume names
  "/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               eIK8yi-RLcJ-N8Vi-cCDO-n4YV-sM1Y-PWlPOo
  
  "/dev/sdc1" is a new physical volume of "8.00 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sdc1
  VG Name              
  PV Size               8.00 GiB
  Allocatable           NO
  PE Size               0  
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               WQdOWv-dNLn-CLM9-ngKG-uMBt-ZFGB-xrZ9fT
반응형

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

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