308 Linux for IBM ^ zSeries and S/390: Distributions
# e2fsck -f /dev/testvg/lvol1
e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/testvg/lvol1: 11/13056 files (0.0% non-contiguous), 417/13056 blocks
# resize2fs /dev/testvg/lvol1
resize2fs 1.19 (13-Jul-2000)
The filesystem on /dev/testvg/lvol1 is now 23808 blocks long.
We again mounted and displayed it, and this time the correct size was shown:
# mount /dev/testvg/lvol1 /testvg/lv1
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/dasdb1 1.8G 125M 1.5G 7% /
/dev/dasdc1 1.8G 1007M 701M 59% ...