Linux/LVM

LV(Logical Volume) Snapshot

변익수 2012. 4. 2. 18:26
반응형

## VG 용량 확인

# vgs
  VG         #PV #LV #SN Attr   VSize  VFree
  vg_isbyeon   2   1   0 wz--n- 15.99g 7.99g

 

### /dev/vg_isbyeon/lv_isbyeon의 Shapshot

# lvcreate -s -L 7.99G -n snap-lv_storage /dev/vg_isbyeon/lv_isbyeon
  Rounding up size to full physical extent 7.99 GiB
  Logical volume "snap-lv_storage" created

 

### Shapshot 확인

# lvdisplay
  --- Logical volume ---
  LV Name                /dev/vg_isbyeon/lv_isbyeon
  VG Name                vg_isbyeon
  LV UUID                RQYQwG-asFH-7C46-NSde-Qef5-YKNH-YhgwGV
  LV Write Access        read/write
  LV snapshot status     source of
                         /dev/vg_isbyeon/snap-lv_storage [active]
  LV Status              available
  # open                 0
  LV Size                8.00 GiB
  Current LE             2048
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
  
  --- Logical volume ---
  LV Name                /dev/vg_isbyeon/snap-lv_storage
  VG Name                vg_isbyeon
  LV UUID                BxtkKg-sfAi-3yJM-Q33X-4HPm-5vbz-fLxiCR
  LV Write Access        read/write
  LV snapshot status     active destination for /dev/vg_isbyeon/lv_isbyeon
  LV Status              available
  # open                 0
  LV Size                8.00 GiB
  Current LE             2048
  COW-table size         7.99 GiB
  COW-table LE           2046
  Allocated to snapshot  0.00%
  Snapshot chunk size    4.00 KiB
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

 

# lvs

  LV              VG         Attr   LSize Origin     Snap%  Move Log Copy%  Convert
  lv_isbyeon      vg_isbyeon owi-a- 8.00g                                         
  snap-lv_storage vg_isbyeon swi-a- 7.99g lv_isbyeon   0.00
반응형