2019独角兽企业重金招聘Python工程师标准>>>

See:

How to create metadata-snap for thin tools using?

I don't think LVM provides any support for metadata snapshots so you will need to drive this process through dmsetup. The kernel interface is described here:https://github.com/torvalds/linux/blob/master/Documentation/device-mapper/thin-provisioning.txtDon't get confused between a normal data snapshot, which takes a snapshot of a thin volume, and a metadata snapshot, which takes a snapshot of the metadata. Both of these commands that you used are for taking data snapshots (there are other reasons why those commands wouldn't work):lvcreate -L1G -n matadata-snap -s vg0/mythinpool_tmeta
dmsetup message /dev/mapper/vg0-mythinpool 0 "create_snap metadata_snap vg0-mythinpool_tmeta"You want to do something like:dmsetup message /dev/mapper/vg0-mythinpool 0 "reserve_metadata_snap"You will then be able to run thin_ls --metadata-snap on the live metadata.Note that the kernel driver doesn't use names for thin volumes, only 32bit identifiers, so you will need to store some metadata of your own mapping user friendly names to ids if you don't want to use LVM.Make sure you release the metadata snap as soon as you're finished with it:dmsetup message /dev/mapper/vg0-mythinpool 0 "release_metadata_snap"It might be helpful for you to look through this file of the dm test suite:https://github.com/jthornber/device-mapper-test-suite/blob/master/lib/dmtest/tests/thin-provisioning/tools_tests.rb

转载于:https://my.oschina.net/u/2475751/blog/3032608

How to list/dump dm thin pool metadata device?相关推荐

  1. mysql5.6 load_MySQL 5.6 dump/load buffer pool实验

    Using MySQL Preloading Buffer Pool for fast restart. 什么场景下,会使用该功能. 当你的数据库系统较大,比如有128G物理内存,那么对应的buffe ...

  2. MySQL 5.6 dump/load buffer pool实验

    Using MySQL Preloading Buffer Pool for fast restart. 什么场景下,会使用该功能. 当你的数据库系统较大,比如有128G物理内存,那么对应的buffe ...

  3. Device Mapper系列基础教程:Thin Provisioning 实践

    docker Thin Provisioning 实践 文章目录 docker Thin Provisioning 实践 1. Thin Provisioning Snapshot 演示 2. Doc ...

  4. docker存储结构解析

    2019独角兽企业重金招聘Python工程师标准>>> docker存储结构解析 博客分类: docker 由于aufs并未并入内核,故而目前只有Ubuntu系统上能够使用aufs作 ...

  5. centos7+ docker1.12 实践部署docker及配置direct_lvm

    2019独角兽企业重金招聘Python工程师标准>>> centos7+ docker1.12 实践部署docker及配置direct_lvm 博客分类: docker 前言 Doc ...

  6. 文末送书啦!| Device Mapper,那些你不知道的Docker核心技术

    戳蓝字"CSDN云计算"关注我们哦! 接触Docker 比较早的同学应该知道,Docker 在最开始只能在Ubuntu和Debian等少数的Linux 发行版上运行,并且在这些发行 ...

  7. Docker存储驱动devicemapper介绍和配置

    一.devicemapper介绍 1 2 3 4 5 6 7 8 9 Device Mapper是Linux系统中基于内核的高级卷管理技术框架.Docker的devicemapper存储驱动就是基于该 ...

  8. Linux学习-逻辑滚动条管理员 (Logical Volume Manager)

    LVM 可以整合多个实体 partition 在一起, 让这些 partitions 看起来就像是一个磁盘一样!而且,还可以在未来新增或移除其他的实 体 partition 到这个 LVM 管理的磁盘 ...

  9. docker存储驱动模式之direct-lvm配置

    最近在虚拟机上玩docker,但是发现默认安装使用的是loop-lvm的模式做后端存储,这个肯对对后面的实验会造成影响,而且docker官方也不建议在生产环境下使用loop-lvm,下图为docker ...

最新文章

  1. 福建省高等学校非计算机考试大纲,福建省高等院校学生计算机一级考试大纲
  2. 算法1:找出第一个非重复字符在字符串中的位置
  3. 18M 超轻量系统开源
  4. 电影院为何有散落的青瓜?
  5. 【HDU - 4781】Assignment For Princess(图上构造)
  6. Qt笔记-使用正则表达式匹配URL及获取Get请求后面的参数(QRegExp)
  7. 52linux crond入门53crond时间规则54应用实例
  8. Educational Codeforces Round 68 (Rated for Div. 2)-D. 1-2-K Game
  9. linux实现访问自动挂载
  10. 优化篇-“移动端”图片上传架构的变迁
  11. CCNP精粹系列之三----OSPF(open short path first)
  12. Java 设计模式——工厂模式
  13. reset()方法 submit()方法
  14. The following signatures couldn‘t be verified because the public key is not available: NO_PUBKEY
  15. 2020最新WordPress网站优化教程
  16. Android 字体颜色渐变效果 Span实现
  17. 抖音app开发时,在录制视频添加背景音乐功能实现流程
  18. 凸包问题--旋转卡壳
  19. Qt QTreeWidget/QTreeView去焦点(虚线框)
  20. 邮箱客户端如何登录?

热门文章

  1. Python3中上下文管理器介绍
  2. C++中指向类成员指针的用法
  3. 提高C++性能的编程技术笔记:设计优化/可扩展性/系统体系结构相关+测试代码
  4. 【Ubuntu】ping: unknown host www.baidu.com
  5. 【QT】Qtcreator的设计模式中将控件提升为自定义的控件
  6. 写注册机犯法吗_逼着一个受害者去向另一个受害者道歉,不过分吗?
  7. 腐蚀rust高速箭怎么做不了_皮带轮动平衡怎么做
  8. python二级考试试题4答案_第4卷讲解Python语言计算机等级考试二级操作题
  9. java安装傻瓜_安装Java傻瓜式教程
  10. MySql库中所有表的属性_SQL查询某库所有的表所有的字段及字段的属性