lv的snapshot

https://blog.csdn.net/weixin_44023707/article/details/94591866

今天尝试在给一个lv添加空间时,发现这个lv有snapshot

[Sun Sep 27 20:58:10][166602][root@scaz08adm08:/u01][0]# lvextend -L +2000G /dev/VGExaDb/LVDbOra1 -r
  Snapshot origin volumes can be resized only while inactive: try lvchange -an.

通过lvdisplay可以看下面这个lv是snapshot
  --- Logical volume ---
  LV Path                /dev/VGExaDb/lv_junhesnap
  LV Name                lv_junhesnap
  VG Name                VGExaDb
  LV UUID                TgBvuf-Qu7M-smZL-gnhd-3Bna-0dtQ-Z1qUsb
  LV Write Access        read/write
  LV Creation host, time scaz08adm08.us.oracle.com, 2019-12-06 11:15:09 -0800
  LV snapshot status     INACTIVE destination for LVDbOra1
  LV Status              available
  # open                 0
  LV Size                200.00 GiB
  Current LE             51200
  COW-table size         80.00 GiB
  COW-table LE           20480
  Snapshot chunk size    4.00 KiB
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           249:7
因为这个snapshot已经不用了,可以将之删除掉

remove snapshot

[Sun Sep 27 21:41:14][244740][root@scaz08adm08:~][0]# lvremove /dev/VGExaDb/lv_junhesnap
Do you really want to remove active logical volume VGExaDb/lv_junhesnap? [y/n]: y
  Logical volume "lv_junhesnap" successfully removed

再次尝试extend lv,就成功了

[Sun Sep 27 21:42:20][244740][root@scaz08adm08:~][0]# lvextend -L 2000G /dev/mapper/VGExaDb-LVDbOra1 -r
  Size of logical volume VGExaDb/LVDbOra1 changed from 200.00 GiB (51200 extents) to 1.95 TiB (512000 extents).
  Logical volume VGExaDb/LVDbOra1 successfully resized.
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/mapper/VGExaDb-LVDbOra1 is mounted on /u01; on-line resizing required
old_desc_blocks = 25, new_desc_blocks = 250
The filesystem on /dev/mapper/VGExaDb-LVDbOra1 is now 524288000 blocks long.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值