本文共 1029 字,大约阅读时间需要 3 分钟。
vg,lv命名规则,建议采用:
1. /dev/vg00/lvol00
2. /dev/VolGroup00/LogVol00
lvm 创建流程 pvcreate - vgcreate - lvcreate
# pvcreate /dev/sdb4 Physical volume "/dev/sdb4" successfully created# vgcreate vg1 /dev/sdb4 Volume group "vg1" successfully created# lvcreate -l 10239 -n lv0 vg1 Logical volume "lv0" created
将整个硬盘划为物理卷
# pvcreate /dev/hdb
将单个分区创建为物理卷的命令为:
# pvcreate /dev/hda5
实例
# pvcreate /dev/sdb4 Physical volume "/dev/sdb4" successfully created
# pvdisplay --- Physical volume --- PV Name /dev/sdb4 VG Name vg1 PV Size 1.02 TiB / not usable 4.90 MiB Allocatable yes PE Size 4.00 MiB Total PE 267301 Free PE 257062 Allocated PE 10239 PV UUID g2xLQ8-7tgm-iNZc-8dVq-vo3z-CFJp-LryYAs
# pvs PV VG Fmt Attr PSize PFree /dev/sdb4 vg1 lvm2 a- 1.02t 1004.15g
原文出处:Netkiller 系列 手札
本文作者:陈景峯 转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。