2016-11-11 555 views
1

我有以下設置:LVM Thinpool - 如何調整thinpool LV的大小?

在硬件RAID上的12個驅動器上的LVM卷組,在Red Hat Gluster服務器上具有一個Thinpool和一個邏輯卷。它看起來如下:

[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

您可以調整薄彙集邏輯卷如下要把它從30TB調整到35TB:

lvextend -L 35T vg0/gluster 

此信息是在man lvmthin發現:

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. 
相關問題