2016-11-11 3 views
1

は、私は次のセットアップを持っています。次のようになります。LVM Thinpool - thinpool LVのサイズを変更するには? 1 thinpoolとRed Hat Glusterサーバー上の1つの論理ボリュームを持つハードウェアRAIDの</p> <p>アンLVMボリュームグループ12オーバードライブ:

[email protected]:pts/1 - [17:33] 
~ % pvs 
    PV   VG Fmt Attr PSize PFree 
    /dev/sdb vg0 lvm2 a-- 36.38t 0 

[email protected]:pts/1 - [17:34] 
~ % vgs 
    VG #PV #LV #SN Attr VSize VFree 
    vg0 1 2 0 wz--n- 36.38t 0 

[email protected]:pts/1 - [17:34] 
~ % lvs 
    LV  VG Attr  LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert 
    gluster vg0 Vwi-aot--- 30.02t tp0   7.06 
    tp0  vg0 twi-aot--- 36.35t    5.83 0.36 

そして、私はグーグルと同じように扱いにくい部分がありましたが、解決策はありませんでした。仮想容量30 TBのシンプールにあるLV "gluster"のサイズを変更したい。私はすべての拡張機能とサイズを変更しようとしましたが、LVMのマニュアルページに何も表示されませんでした。だからここで助けを知っているかもしれない?

答えて

3

することはでき、それは35TBに30TBからリサイズしていると、次のように薄いプールされた論理ボリュームのサイズを変更:この情報はman lvmthinで発見された

lvextend -L 35T vg0/gluster 

Manually manage free data space of thin pool LV 

     The available free space in a thin pool LV can be displayed with the lvs command. Free space can be added by extending the thin pool LV. 

     Command to extend thin pool data space: 
     lvextend -L Size VG/ThinPoolLV 

     Example 
     1. A thin pool LV is using 26.96% of its data blocks. 
     # lvs 
     LV VG   Attr  LSize Pool Origin Data% 
     pool0 vg   twi-a-tz-- 10.00g    26.96 

     2. Double the amount of physical space in the thin pool LV. 
     # lvextend -L+10G vg/pool0 

     3. The percentage of used data blocks is half the previous value. 
     # lvs 
     LV VG   Attr  LSize Pool Origin Data% 
     pool0 vg   twi-a-tz-- 20.00g    13.48 

     Other methods of increasing free data space in a thin pool LV include removing a thin LV and its related snapsots, or running fstrim on the file system using a thin LV. 
関連する問題