centos 6.4 thinly-provisioned

 1、创建一个大小为100M名字为poolthin pool,并在这个thin pool 中创建提个名字为thin_lv大小为100GLV

[root@server-235 ~]# lvcreate -L100M -T datavg/pool -V 100G --name thin_lv

 

2、查看lvs(这个不知道为什么pool显示的是128M

[root@server-235 ~]# lvs

  LV      VG     Attr      LSize     Pool  Origin Data%    Move Log  Cpy%Sync   Convert

  pool    datavg twi-a-tz- 128.00m        0.00                         

  thin_lv datavg Vwi-a-tz- 100.00g  pool   0.00                         

  root    kvmvg  -wi-ao--- 30.00g                                             

  swap    kvmvg  -wi-ao--- 8.00g

 

3、此时还可以在pool中创建LV

[root@server-235 ~]# lvcreate -L100M -T datavg/pool -V 100G --name thin_lv2

 

3、向/dev/datavg/thin_lvdd

[root@server-235 ~]# dd if=/dev/zero of=/dev/datavg/thin_lv

 

4、看到thin_lv只能放入128M的数据就已经满了

[root@server-235 ~]# lvs

  LV       VG     Attr       LSize  Pool  Origin Data%  Move Log   Cpy%Sync   Convert

  pool     datavg twi-a-tz-  128.00m      100.00                          

  thin_lv  datavg Vwi-a-tz-  100.00g pool 0.12      

  thin_lv2 datavg Vwi-a-tz-  100.00g pool 0.00                                                                                         

  root     kvmvg  -wi-ao---  30.00g                                            

  swap     kvmvg  -wi-ao---  8.00g

 

你可能感兴趣的:(provisioned,thinly)