首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >LVM Thinpool -如何调整精简池LV的大小?

LVM Thinpool -如何调整精简池LV的大小?
EN

Stack Overflow用户
提问于 2016-11-12 01:47:10
回答 1查看 26.8K关注 0票数 2

我有以下设置:

硬件RAID上12个驱动器上的LVM卷组,其中Red Hat Gluster Server上有一个精简池和一个逻辑卷。如下所示:

代码语言:javascript
复制
root@server:pts/1 - [17:33]
~ % pvs
  PV         VG  Fmt  Attr PSize  PFree
  /dev/sdb   vg0 lvm2 a--  36.38t    0

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

root@server: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

现在,棘手的部分,就像谷歌搜索一样,我没有得到任何解决方案。我想调整LV "gluster“的大小,它位于一个虚拟大小为30TB的精简池中。我尝试了所有的扩展和调整大小函数,但在LVM的手册页中没有看到任何内容。所以也许你知道怎么帮上忙?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-11-14 23:40:02

您可以按如下方式调整精简池化逻辑卷的大小,使其从30TB调整为35TB:

代码语言:javascript
复制
lvextend -L 35T vg0/gluster

此信息在man lvmthin中找到

代码语言:javascript
复制
   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.
票数 9
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40553483

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档