1.切三個Partition 大小為256MB 格式為(8e)
使用partedfs 建立或fdisk 建立
2.建立physical volumes
 #pvcreate /dev/hda14 /dev/hda15 /dev/hda16
  Physical volume "/dev/hda14" successfully created
  Physical volume "/dev/hda15" successfully created
  Physical volume "/dev/hda16" successfully created
3.Assign physical volumes to volumes groups
#vgcreate vg0 /dev/hda14 /dev/hda15 /dev/hda16

  Volume group "vg0" successfully created
4.從VG 中建立LV 有二種做法一種是以容量建立一種是以extents 數量建立
-L 5M   =>建立5MB 的LV
-l 10      =>建立10個extents 之LV(10*4MB=40MB)註:一個extents 內定為4MB
-n data   =>設定名稱為data
vgo        =>從vg0 中建立LV
# lvcreate -L 5M -n data vg0
  Rounding up size to full physical extent 8.00 MB
  Logical volume "data" created

# lvcreate -l 10 -n data1 vg0
  Logical volume "data1" created

5.格式化新建好的LV為ext3 之格式
# mke2fs -j /dev/vg0/data
mke2fs 1.35 (28-Feb-2004)
max_blocks 8388608, rsv_groups = 1024, rsv_gdb = 31
Filesystem ....................
.....................................
.....................................
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.





arrow
arrow
    全站熱搜

    奔騰兔 發表在 痞客邦 留言(0) 人氣()