您的位置:首页 > 运维架构 > Linux

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: