rhces 发表于 2019-2-18 10:05:05

Linux LVM 之LV

  创建LV
  -L 指定LV大小
  -l(L) 指定LV包含LE的数量
  -n 指定LV名称
  http://s1.运维网.com/images/20180301/1519833916157281.png

  http://s1.运维网.com/images/20180301/1519833946388484.png

  查看LV
  http://s1.运维网.com/images/20180301/1519834610599777.png
http://s1.运维网.com/images/20180301/1519834646956987.png
http://s1.运维网.com/images/20180301/1519834688394177.png
http://s1.运维网.com/images/20180301/1519834741547056.png
  这个是创建了LV之后才出现的。
http://s1.运维网.com/images/20180301/1519834803149976.png
  扩展LV
http://s1.运维网.com/images/20180301/1519834895777422.png
  -l(L) 指定LE数量
  -L 指定扩容容量
http://s1.运维网.com/images/20180301/1519834980479302.png
  注意:如果命令中没有加号,表示LV扩展到XXG ,有加号表示扩展了XXXG
  现在底层硬盘扩容了,文件系统也要扩容
http://s1.运维网.com/images/20180301/1519835347547087.png
  因为要格式化,如果新增容量大了,需要消耗一些时间。
http://s1.运维网.com/images/20180301/1519835149700194.png
  缩减LV
  缩减LV必须先卸载文件系统
http://s1.运维网.com/images/20180301/1519835223404453.png
  再检测当前的文件系统的状态
http://s1.运维网.com/images/20180301/1519835251168783.png
  没报错就好
  正式缩减文件系统
http://s1.运维网.com/images/20180301/1519835396664301.png
  这里的1G指的是现有的文件系统的容量
  缩减LV
  -L 指定缩减容量 如果参数没有减号则命令是减少到指定数量,有减号就是减少指定的容量
  -l(L) 指定缩减LE
http://s1.运维网.com/images/20180301/1519835739288923.png
http://s1.运维网.com/images/20180301/1519835723410920.png
  删除LV
http://s1.运维网.com/images/20180301/1519836270968827.png
  删除LV应该先卸载文件系统。



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