centos 磁盘扩容,新建lv
2015-01-17 11:11
204 查看
1,扩容已有lvm 上的lv
1.1 新建pv --> pvcreate /dev/sd*
1.2 把新增的pv添加到lvm -->vgextend vg_ruiy /dev/sd*
1.3 查看添加pv后的lvm --> vgdisplay -v vg_ruiy
1.4 扩容lv --> lvextend -L + 20G /dev/vg_ruiy/lv_root
1.5 文件系统扩容 --> resize2fs /dev/vg_ruiy/lv_root
congratulation,work out!
2,创建新lv
pvcreate /dev/sd* [pvcreate -f -B /dev/sd*]
vgcreate vg_name /dev/sd*
lvcreate -n data001 vg_ruiy(lvcreate -L 500 -n data001 vg_ruiy)
mkfs.ext4 /dev/vg_ruiy/data001
3,lvcreate –L 20G –n web01-lvm vg_lvm 在你的vg上新建lv
1.1 新建pv --> pvcreate /dev/sd*
1.2 把新增的pv添加到lvm -->vgextend vg_ruiy /dev/sd*
1.3 查看添加pv后的lvm --> vgdisplay -v vg_ruiy
1.4 扩容lv --> lvextend -L + 20G /dev/vg_ruiy/lv_root
1.5 文件系统扩容 --> resize2fs /dev/vg_ruiy/lv_root
congratulation,work out!
2,创建新lv
pvcreate /dev/sd* [pvcreate -f -B /dev/sd*]
vgcreate vg_name /dev/sd*
lvcreate -n data001 vg_ruiy(lvcreate -L 500 -n data001 vg_ruiy)
mkfs.ext4 /dev/vg_ruiy/data001
3,lvcreate –L 20G –n web01-lvm vg_lvm 在你的vg上新建lv
相关文章推荐
- Centos7----LVM扩容磁盘空间
- 记一次给centOS磁盘扩容
- CentOS虚拟机根分区磁盘扩容纪实
- CentOS7.3托管磁盘虚拟机扩容数据磁盘
- VM中CentOS7磁盘扩容
- CentOS 磁盘扩容
- virtaulBox对centos linux进行磁盘扩容
- oracle 新建表空间,参数修改,lv扩容
- CentOS-7磁盘扩容之殇
- Vmware centos 虚拟机根分区磁盘扩容(基于LVM)
- 虚拟机中centos磁盘扩容
- centos 6.8 启动功能测试2 - 干掉boot文件 + 新建一块500MB的磁盘做启动盘
- centos7 LV XFS添加磁盘
- CentOS 5.7下利用LVM分区安装Xen安装虚拟机与磁盘空间动态扩容
- 阿里云centos6.6磁盘扩容
- VMWare下的CentOs的磁盘扩容以及与windows文件系统的关系对比
- 【Linux】CentOS中lvm应用:添加新的硬盘,然后扩容lv
- CENTOS 阿里云服务器磁盘扩容
- CentOS7.3 ARM虚拟机扩容系统磁盘