|
LVM Configuration - Formatting a File System |
|
|
|
|
Written by Tom Hirt
|
|
Wednesday, 13 May 2009 10:24 |
|
Page 5 of 6
Formatting a File System
We are now ready to format the file system. Linux offers many different file systems, some distributions of Linux/Unix will tend to recommend EXT3 while others might recommend XFS or ReiserFS. There is really no wrong or right answer here, different file systems will have features and advantages/disadvantages. The concept to understand here is that you must format the logical volume.
We are going to format our new LV's of type EXT3 with journaling enabled
- Format LV TCPDumpLV
[root@Linux01 ~]# mke2fs -j /dev/TCPDumpVolGRP/TCPDumpLV mke2fs 1.39 (29-May-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 409600 inodes, 819200 blocks 40960 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=838860800 25 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912
Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@Linux01 ~]#
|
- Format LV 4GLV
[root@Linux01 ~]# mke2fs -j /dev/TCPDumpVolGRP/4GLV mke2fs 1.39 (29-May-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 524288 inodes, 1048576 blocks 52428 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1073741824 32 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@Linux01 ~]#
|
|
|
Last Updated on Tuesday, 02 June 2009 10:15 |