6. Format the newly created LV
[root@mann ~]# mkfs.ext3 -m 0 /dev/myvg/lvol0 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) Stride=0 blocks, Stripe width=0 blocks 51200 inodes, 204800 blocks 0 blocks (0.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67371008 25 block groups 8192 blocks per group, 8192 fragments per group 2048 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 38 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
7. Add the entry in the fstab so that it will get mounted automatically while booting of the server.
[root@mann ~]# vi /etc/fstab -- > below entry /dev/myvg/lvol0 /test ext3 defaults 0 0
8. Create mount where the filesystem need to mounted.
[root@mann ~]# mkdir /test
9. Mount the filesystem.
[root@mann ~]# mount /test
10. Recheck the mountpoint.
[root@mann ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 16G 2.0G 13G 14% / tmpfs 1012M 0 1012M 0% /dev/shm /dev/sda1 291M 29M 248M 11% /boot /dev/mapper/myvg-lvol0 194M 5.6M 189M 3% /test
Pages: 1 2
Leave a Reply