三步曲:node
建立 ,格式化文件系統,掛載app
[root@cnsz142685 ~]# lvcreate -L 15g -n LVpalog VolGroup00 Logical volume "LVpalog" created [root@cnsz142685 ~]# mkfs.ext4 /dev/VolGroup00/LV LVhome LVpalog LVroot LVswap LVtmp LVvar [root@cnsz142685 ~]# mkfs.ext4 /dev/VolGroup00/LVpalog mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 983040 inodes, 3932160 blocks 196608 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4026531840 120 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, 1605632, 2654208 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 31 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@cnsz142685 ~]# mount /palog/ [root@cnsz142685 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LVroot 30G 2.6G 26G 10% / tmpfs 7.8G 12K 7.8G 1% /dev/shm /dev/sda1 976M 32M 894M 4% /boot /dev/mapper/VolGroup00-LVhome 2.0G 3.2M 1.9G 1% /home /dev/mapper/VolGroup00-LVtmp 9.8G 23M 9.2G 1% /tmp /dev/mapper/VolGroup00-LVvar 20G 151M 19G 1% /var /dev/mapper/VolGroup00-LVpalog 15G 38M 14G 1% /palog