VLM (一)基本建立
时间:2007-07-05 来源:weiyue57
500)this.width=500;" border=0>
1. 用fdisk命令的t选项,将分区标记改为8e
2. 建立pv
[root@RAID /]# pvcreate /dev/hdb2 Physical volume "/dev/hdb2" successfully created [root@RAID /]# pvcreate /dev/hdc2 Physical volume "/dev/hdc2" successfully created [root@RAID /]# pvcreate /dev/hdd2 Physical volume "/dev/hdd2" successfully created3. 建立vg
[root@RAID /]# vgcreate wy /dev/hdb2 /dev/hdc2 /dev/hdd2 Volume group "wy" successfully created4. 建立lv
[root@RAID /]# lvcreate -L 100M -n wy1 wy Logical volume "wy1" created [root@RAID /]# lvcreate -L 100M -n wy2 wy Logical volume "wy2" created [root@RAID /]# lvcreate -L 100M-n wy3 wy Logical volume "wy3" created5. 格式化:设备名在/dev/vg同名目录里面
例如:
[root@RAID /]# cd /dev/wy [root@RAID wy]# ls wy1 wy2 wy3格式化,例如:
[root@RAID /]# mkfs -t ext3 /dev/wy/wy1
6. 挂载!
相关阅读 更多 +










