[root@localhost ~]# lvcreate -L 500M
[root@localhost ~]# lvdisplay vg1
4.格式化分区(ext3格式)
[root@localhost ~]# mkfs.ext3 /dev/vg1/lvol0
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
128016 inodes, 512000 blocks
25600 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
63 block groups
8192 blocks per group, 8192 fragments per group
2032 inodes per group
Superblock backups stored on blocks:
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.
同步分区表 : partprobe /dev/hdb
5.挂载使用:
[root@localhost ~]#mkdir -p /tmp/test1
[root@localhost ~]#mount /dev/mapper/vg1-lvol0 /tmp/test1
[root@localhost ~]# df -lh
文件系统
/dev/mapper/VolGroup00-LogVol00
/dev/sda1
