Linux-LVM

在使用lvcreate创建thinLV时出现错误,由于缺少/usr/sbin/thin_check和/usr/sbin/thin_repair工具。解决此问题需要安装相关工具。通过-l|--extents选项指定新LV的大小,可以以逻辑扩展或百分比形式表示。对于快照,大小可以用源LV的百分比表示。在实际操作中,百分比定义的是LV逻辑扩展的上限,实际数量会在命令完成时确定。
摘要由CSDN通过智能技术生成

lvcreate

创建thinLV时报错 

root@test:~# lvcreate -V 250M --thin -n thin_lv1 test-vg/data_pool
  Using default stripesize 64.00 KiB.
  Rounding up size to full physical extent 252.00 MiB
  /usr/sbin/thin_check: execvp failed: No such file or directory
  WARNING: Integrity check of metadata for pool test-vg/data_pool failed.
  /usr/sbin/thin_check: execvp failed: No such file or directory
  Check of pool test-vg/data_pool failed (status:2). Manual repair required!
  Failed to activate thin pool test-vg/data_pool.

原因是缺少/usr/sbin/thin_check和/usr/sbin/thin_repair,安装如下工具即可

apt-get -y install thin-provisioning-tools

-l|--extents Number[PERCENT]
              Specifies the size of the new LV in logical extents.  The --size and --extents options are alternate methods of specifying size.  The total number of physical extents used will be greater when redundant data is needed for RAID levels.  An alternate s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值