Chapter 13. Miscellaneous tasks 209
LV Status available
# open 0
LV Size 2.29 GiB
Current LE 586
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 1024
Block device 253:4
Making a file system from the logical volume
Now you have a logical volume. Create an ext4 file system out of it by using the mkfs.ext4
command:
# mkfs.ext4 /dev/homevg/homelv
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=1 blocks, Stripe width=0 blocks
150176 inodes, 600064 blocks
30003 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=616562688
19 block groups
32768 blocks per group, 32768 fragments per group
7904 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 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
The file system created from the logical volume is now ready to be mounted.
13.2.2 Updating the file system table
You could now mount the file system manually. However, if you add the mount to the file
system table file, /etc/fstab, you can effectively test the change by using the mount
command with only one argument. Make a backup copy and then add the following line to the
file:
# cd /etc
# cp fstab fstab.works
# vi fstab
#
# /etc/fstab
# Created by anaconda on Tue Oct 19 15:52:06 2010
#
Commenti su questo manuale