什么是 lvm 标签,如何添加 / 删除 / 显示 lvm 标签?
2010-05-13 08:49
330 查看
如果您想要激活一个指定的 vg,而不是激活所有的 vg,您可以在 /etc/lvm/lvm.conf 的 volume_list 中添加 lvm 标签。
编 辑 /etc/lvm/lvm.conf,你可以看到以下注释:
运行 vgchange 以添加或者删除一个标签:
检查标签是否已经被添加:
编辑 /etc/lvm/lvm.conf,追加 volume_list 设置:
volume_list = ["@test"]
该设置表明,只有标签为test的vg才会被激活。
删除一个标签:
如果你希望操作 lv,请使用 lvchange 命令而非 vgchange 命令。
编 辑 /etc/lvm/lvm.conf,你可以看到以下注释:
# If volume_list is defined, each LV is only activated if there is a # match against the list. # "vgname" and "vgname/lvname" are matched exactly. # "@tag" matches any tag set in the LV or VG. # "@" matches if any tag defined on the host is also set in the LV or VG # volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@" ]
运行 vgchange 以添加或者删除一个标签:
# vgchange --addtag test /dev/vg00 Volume group "vg00" successfully changed
检查标签是否已经被添加:
# vgs -o vg_tags /dev/vg00 VG Tags test
编辑 /etc/lvm/lvm.conf,追加 volume_list 设置:
volume_list = ["@test"]
该设置表明,只有标签为test的vg才会被激活。
删除一个标签:
# vgchange --deltag test /dev/vg00 Volume group "vg00" successfully changed # vgs -o vg_tags /dev/vg00 VG Tags
如果你希望操作 lv,请使用 lvchange 命令而非 vgchange 命令。
相关文章推荐
- 如何删除CKEditor中自动添加的段落P标签
- 如何在TabControl中响应右键鼠标(添加一个ContextMenu就可以了),如何让在tab标签处右键菜单和在内容处右键菜单显示不同的菜单?
- 什么是“常用联系人”,如何添加\删除联系人?
- 什么是“自定义组”?如何添加\删除我的自定义组?
- 什么是“常用部门”?如何添加\删除我的常用部门?
- C# 如何在Word文档中添加,替换和删除书签
- 如何添加标签、相关文章提取规则『博客帮助』
- 如何添加或删除ubuntu用户和组
- UITableView 系列一 :基本使用方法 (显示,删除,添加图片,添加样式等) (实例)
- 在添加/删除中不显示安装的应用程序(Hide Add/Remove Panel Entry)
- C# 如何向Excel添加、删除表单控件
- 添加标签和删除标签
- Word 2007中如何不显示(删除)换行符,段落标记
- mac系统如何显示和隐藏文件 和 删除SVN隐藏文件
- mac系统如何显示和隐藏文件 和 删除SVN隐藏文件
- h5+获取摄像头后如何在拍完照后显示添加文字等按钮
- 什么是逻辑分区管理 LVM ,如何在Ubuntu中使用?
- Eclipse中如何快速添加、删除jar包
- 如何显示bootstrap fileinput缩略图上面的删除按钮
- viewpager+fragment+Tab动态添加删除,求大神指教有什么好思路