[root@kerneltalks ~]# mkfs.ext4 /dev/vgdata/lvdata mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 327680 inodes, 1310720 blocks 65536 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1342177280 40 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
在挂载点上从新磁盘挂载卷
使用 mount 命令,在 /data 安装点上安装已创建并格式化的 5GB 逻辑卷。
1 2 3 4
[root@kerneltalks ~]# mount /dev/vgdata/lvdata /data [root@kerneltalks ~]# df -Ph /data Filesystem Size Used Avail Use% Mounted on /dev/mapper/vgdata-lvdata 4.8G 20M 4.6G 1% /data