ouzhoudijie 发表于 2019-2-18 10:06:05

Linux LVM之VG

关于VG的操作
http://s1.运维网.com/images/20180301/1519836596206403.png
  VG的命令会更多
  vgs:简要显示vg信息
  vgdisplay:显示VG的详细信息
  vgextend:扩展VG
  vgcreate:创建VG
  vgreduce:VG缩减容量
  vgscan:VG扫描
  vgremove:删除VG
  vgck:检测VG
  vgimport:导入VG
  vgexport:导出VG
  vgrename:VG重命名
  vgsplit:VG分割
创建VG
  -l 指定VG包含的最大LV数量
  -p 指定VG包含的最大PV的数量
  -s 指定PE的大小这个参数不能被改变
  先写VG的名字 再写包含的PV
http://s1.运维网.com/images/20180301/1519836557263401.png
查看VG
http://s1.运维网.com/images/20180301/1519836566856149.png
  包含的PV数量1
  包含的LV熟练0
http://s1.运维网.com/images/20180301/1519836927991909.png
  再看看现在的PV
  http://s1.运维网.com/images/20180301/1519836975672147.png
  有些信息就有了
http://s1.运维网.com/images/20180301/1519836584474184.png
扩展VG
http://s1.运维网.com/images/20180301/1519836637581697.png
http://s1.运维网.com/images/20180301/1519836642185071.png
http://s1.运维网.com/images/20180301/1519836646275245.png
http://s1.运维网.com/images/20180301/1519836652855524.png
http://s1.运维网.com/images/20180301/1519836658941370.png
缩减VG
  将PV上的数据移动到同VG的不同PV上
http://s1.运维网.com/images/20180301/1519836667986383.png
  vgreduce
  -a 移除全部不可用PV
  -f 强制缩减
http://s1.运维网.com/images/20180301/1519836674782785.png
http://s1.运维网.com/images/20180301/1519836687314453.png
http://s1.运维网.com/images/20180301/1519836803235452.png
http://s1.运维网.com/images/20180301/1519836730929219.png
删除VG
http://s1.运维网.com/images/20180301/1519836740841804.png
http://s1.运维网.com/images/20180301/1519836746329974.png



页: [1]
查看完整版本: Linux LVM之VG