标签:lvm
LVM( Logical Volume Manager)
基本操作:
fdisk /dev/sdb
mkfs -ext3 /dev/sdb1
pvcreate /dev/sdb1
vgcreate vgname /dev/sdb1
lvcreate -L 10G -n lvname vgname
resize2fs /dev/vgname/lvname
mkdir /app
vim /etc/fstab
/dev/vgname/lvname /app ext3 default 0 0
mount -a
扩容vg和lv
pvcreate /dev/sdc
vgextend vgname /dev/sdc
lvextend -L +10G /dev/vgname/lvname
resize2fs /dev/vgname/lvname
(rhcs集群创建lv后要使用vgchange -ay vgname激活vg)
本文出自 “记笔记” 博客,请务必保留此出处http://qiuuu.blog.51cto.com/9875929/1608475
标签:lvm
原文地址:http://qiuuu.blog.51cto.com/9875929/1608475