itdlx080:~ # mke2fs /dev/rootvg/testlv 500000 mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 128016 inodes, 512000 blocks 25600 blocks (5.00%) reserved for the super user First data block=1 63 block groups 8192 blocks per group, 8192 fragments per group 2032 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 Writing inode tables: done Writing superblocks and filesystem accounting information: done itdlx080:~ # ext2prepare /dev/rootvg/testlv 2G ext2prepare v1.1.12 - 1999/10/02 for EXT2FS 0.5b itdlx080:~ # mount /dev/rootvg/testlv /mnt itdlx080:~ # df -k Filesystem 1k-blocks Used Available Use% Mounted on /dev/root 2620520 1646356 841044 66% / /dev/root.old 3963 2025 1734 54% /initrd /dev/hda5 69973 10326 56034 16% /boot /dev/rootvg/optlv 396672 279419 96773 74% /opt /dev/rootvg/archlv 1032088 858048 121612 88% /archive /dev/rootvg/testlv 495844 70 470174 0% /mnt itdlx080:~ # lvextend -L+200M /dev/rootvg/testlv lvextend -- extending logical volume "/dev/rootvg/testlv" to 700 MB lvextend -- doing automatic backup of volume group "rootvg" lvextend -- logical volume "/dev/rootvg/testlv" successfully extended itdlx080:~ # ext2online /dev/rootvg/testlv 550000 ext2online v1.1.12 - 1999/10/14 for EXT2FS 0.5b ext2online: resizing to 550000 blocks itdlx080:~ # cd /mnt; df -k . Filesystem 1k-blocks Used Available Use% Mounted on /dev/rootvg/testlv 532555 61 504998 0% /mnt itdlx080:/mnt # ext2online /dev/rootvg/testlv 700000 ext2online v1.1.12 - 1999/10/14 for EXT2FS 0.5b ext2online: resizing to 700000 blocks itdlx080:/mnt # df -k . Filesystem 1k-blocks Used Available Use% Mounted on /dev/rootvg/testlv 677943 66 642893 0% /mnt itdlx080:/mnt # cd .. itdlx080:/ # umount /mnt; e2fsck -f /dev/rootvg/testlv e2fsck 1.18, 11-Nov-1999 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/rootvg/testlv: 11/174752 files (18.2% non-contiguous), 22123/700000 blocks itdlx080:/ # mount /dev/rootvg/testlv /mnt itdlx080:/ # cd /mnt itdlx080:/mnt # lvextend -L2G /dev/rootvg/testlv lvextend -- extending logical volume "/dev/rootvg/testlv" to 2 GB lvextend -- doing automatic backup of volume group "rootvg" lvextend -- logical volume "/dev/rootvg/testlv" successfully extended itdlx080:/mnt # ext2online /dev/rootvg/testlv ext2online v1.1.12 - 1999/10/14 for EXT2FS 0.5b ext2online: resizing to 2097152 blocks itdlx080:/mnt # df -k . Filesystem 1k-blocks Used Available Use% Mounted on /dev/rootvg/testlv 2031507 16 1926752 0% /mnt itdlx080:/mnt # cd .. itdlx080:/ # umount /mnt; e2fsck -f /dev/rootvg/testlv e2fsck 1.18, 11-Nov-1999 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/rootvg/testlv: 11/520192 files (9.1% non-contiguous), 65661/2097152 blocks itdlx080:/ # itdlx080:/ # itdlx080:/ # itdlx080:/ # mke2fs /dev/rootvg/testlv 600000 mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 75040 inodes, 150000 blocks 7500 blocks (5.00%) reserved for the super user First data block=0 5 block groups 32768 blocks per group, 32768 fragments per group 15008 inodes per group Superblock backups stored on blocks: 32768, 98304 Writing inode tables: done Writing superblocks and filesystem accounting information: done itdlx080:/ # mount /dev/rootvg/testlv /mnt itdlx080:/ # cd /mnt itdlx080:/mnt # df -k . Filesystem 1k-blocks Used Available Use% Mounted on /dev/rootvg/testlv 590556 20 560536 0% /mnt itdlx080:/mnt # ext2online /dev/rootvg/testlv ext2online v1.1.12 - 1999/10/14 for EXT2FS 0.5b ext2online: resizing to 524288 blocks itdlx080:/mnt # df -k . Filesystem 1k-blocks Used Available Use% Mounted on /dev/rootvg/testlv 2066960 20 1962100 0% /mnt itdlx080:/mnt # cd .. itdlx080:/ # umount /mnt itdlx080:/ # e2fsck -f /dev/rootvg/testlv e2fsck 1.18, 11-Nov-1999 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/rootvg/testlv: 11/240128 files (0.0% non-contiguous), 7553/524288 blocks itdlx080:/ #