本帖最后由 LuoYe 于 2014-10-30 15:19 编辑
LVM = Logic Volume Manager
实验环境:
- Tencent 云主机
- CentOS 6.3系统
- CLI-命令行
在Tencent买了主机完成装机后,它默认没有添加数据盘,需要手动格式化并挂载.
官方提供了傻瓜式的自动磁盘操作和手动磁盘操作教程.但是都是基于传统磁盘分区方式,并没有使用更先进的 LVM 磁盘管理机制.(本身Tencent云主机支持此机制,我们为什么不实用呢...对于什么是 LVM 自行百度补脑.)为了日后对存储设配更方便的扩充,建议使用LVM.
教程之前就写好了,为了不打乱排版就使用图片代替了.
按照教程中 LVM实战中的 战场一 .一步一步来就行了
完成后可以查看到如下:
- [root@VM_125_209_centos ~]$lvs
- File descriptor 3 (socket:[20643]) leaked on lvs invocation. Parent PID 3174: -bash
- LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
- lv_luoye vg_luoye -wi-ao-- 20.00g
- [root@VM_125_209_centos ~]$vgs
- File descriptor 3 (socket:[20643]) leaked on vgs invocation. Parent PID 3174: -bash
- VG #PV #LV #SN Attr VSize VFree
- vg_luoye 1 1 0 wz--n- 20.00g 0
- [root@VM_125_209_centos ~]$pvs
- File descriptor 3 (socket:[20643]) leaked on pvs invocation. Parent PID 3174: -bash
- PV VG Fmt Attr PSize PFree
- /dev/vdb vg_luoye lvm2 a-- 20.00g 0
- [root@VM_125_209_centos ~]$mount
- /dev/vda1 on / type ext3 (rw,noatime,acl,user_xattr)
- proc on /proc type proc (rw)
- sysfs on /sys type sysfs (rw)
- devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
- /dev/mapper/vg_luoye-lv_luoye on /data type ext4 (rw)
- none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
- [root@VM_125_209_centos ~]$
复制代码
|