How to list/dump dm thin pool metadata device?

news/2024/7/7 20:24:24

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

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


http://lihuaxi.xjx100.cn/news/235865.html

相关文章

maven项目中 把依赖的jar包一起打包

2019独角兽企业重金招聘Python工程师标准>>> Maven1-HelloWorld简单入门 使用Maven Assembly plugin将依赖打包进jar 1、pom.xml 配置文件&#xff1a; 在pom.xml配置文件中添加 <build> <plugins> <plugin> <artifactId>maven-assembly…

Ansible06-管理roles

目录 一、roles的结构 二、RHEL系统roles 三、创建角色 四、部署角色 随着 playbook 的增多&#xff0c;有很多代码重用的机会。ansible 提供了一种方式——roles&#xff0c;只需将 roles 从一个项目复制到另一个项目&#xff0c;然后用 play 调用即可实现代码重用。这里的…

我理解的观察者模式

什么是观察者模式&#xff1f; 当对象间存在一对多关系时,比如&#xff0c;当一个对象被修改时&#xff0c;则会自动通知它的依赖对象。观察者模式也叫做发布订阅模式。 观察者模式有什么好处&#xff1f; 观察者模式中&#xff0c;被观察者发生改变时&#xff0c;会自动通知所…

CE认证机构聚焦于CE整合

什么是CE认证机构 CE认证机构是指在需要第三方的情况下执行合格评定程序的认证机构。简单地说&#xff0c;CE认证机构有权批准制造商生产产品所使用的技术和方法。它是得到欧盟委员会认可的认证机构&#xff0c;该委员会负责评估产品是否符合欧盟指令规定的能力&#xff0c;透明…

centos8安装KVM/QEUM虚拟化

centos8安装KVM/QEUM。安装虚拟化主机组。启动libvirtd服务。 yum groupinstall "Virtualization Host" systemctl enable libvirtd systemctl start libvirtd 谁可以使用虚拟化呢&#xff1f;加入libvirt组即可。 usermod -aG libvirt <username> 安装Vir…

Linux基础命令---diffstat

diffstat这个程序读取diff的输出&#xff0c;并显示每个文件的插入、删除和修改的直方图。Diffstat是一个用于检查大型复杂修补程序文件的程序。它从包含diff输出的一个或多个输入文件中读取&#xff0c;生成针对引用的每个文件更改的总行的直方图。如果输入文件名以.bz 2、.gz…

王坚十年前的坚持,才有了今天世界顶级大数据计算平台MaxCompute ...

如果说十年前&#xff0c;王坚创立阿里云让云计算在国内得到了普及&#xff0c;那么王坚带领团队自主研发的大数据计算平台MaxCompute则推动大数据技术向前跨越了一大步。数据是企业的核心资产&#xff0c;但十年前阿里巴巴的算力已经无法满足当时急剧增长数据量的需求。基于Ha…

MySQL01-安装mysql数据库

MySQL 可以从 YUM 源直接安装 rpm 包&#xff0c;但是这样的定制化程度低&#xff0c;不利于后期维护升级。因此&#xff0c;今天记录一种更灵活的二进制安装方式。参考 MySQL 5.7 官方文档 2.2 章节&#xff0c;具体做法和官方文档略有出入。 1、配置防火墙规则 firewall-cm…