LVM的使用需要先做成物理LVM,现做成LVM组,然后再创建逻辑LVM,最后最成文件系统。在REDHAT6.3安装过程中,由于疏忽只做了物理LVM,在安装结束后,手工将物理LVM作成文件系统。
1. 查看磁盘状态
[root@JTE7DEVAPP1 home]# vgdisplay
No volume groups found
[root@JTE7DEVAPP1 home]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 99G 4.1G 90G 5% /
tmpfs 32G 264K 32G 1% /dev/shm
/dev/sda1 243M 32M 198M 14% /boot
/dev/sda5 2.0G 67M 1.9G 4% /home
[root@JTE7DEVAPP1 home]# fdisk -l
Disk /dev/sda: 898.3 GB, 898319253504 bytes
255 heads, 63 sectors/track, 109214 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x54cd77c7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 256000