Centos 分割卷组 |
您所在的位置:网站首页 › centos怎么挂载硬盘 › Centos 分割卷组 |
0
分享至
用微信扫码二维码 分享至好友和朋友圈 LVM 可以创建和管理“逻辑”卷,而不是直接使用物理硬盘。可以让管理员弹性的管理逻辑卷的扩大缩小,操作简单,而不损坏已存储的数据。可以随意将新的硬盘添加到LVM,以直接扩展已经存在的逻辑卷。LVM并不需要重启就可以让内核知道分区的存在。本篇Centos7 将 lvm 的分割成两个卷组,将 Centos 卷组的大小由49G减少到40G,然后新建一个10G的 cinder-volumes 卷组。 1、首先查看卷组: vgdisplay 2、将 Centos lvm 减少10G空间: lvreduce -L -10G -n centos /dev/mapper/centos-root 现在已经有10G空间剩余了,查看centos 卷组详情: 从上图获取到LV Path:/dev/centos/root。 3、新建一个Cinder-volumes卷组: lvcreate -L 10G --name cinder-volumes /dev/centos/root 报错。。 lvcreate -L +10G -n cinder-volumes centos 其中最后面的centos为上述vgdisplay想要分割分区的卷组名。 lvdisplay df -h 没有找见刚刚创建的cinder-volumes卷组,而且/dev/mapper/centos-root大小没有改变。 4、格式化挂在使用逻辑卷: mkfs.ext4 /dev/centos/cinder-volumes 5、新建一个挂载目录: mkdir /mymount 6、挂载 mount /dev/centos/cinder-volumes /mymount/df -h 7、测试使用下逻辑卷组: 一切正常! 原文来自:http://blog.csdn.net/tantexian/article/details/38921073?locationNum=2&fps=1本文地址:https://www.linuxprobe.com/centos-cinder-volumes.html编辑:冯振华,审核员:苏西云本文原创地址:https://www.linuxprobe.com/centos-cinder-volumes.html 特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。 Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services. /阅读下一篇/ 返回网易首页 下载网易新闻客户端 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |