How to increase the size of ext3 fs online

root's picture
[root@linux Tivoli]# df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-tivolivol
                      279M  237M   29M  90% /opt/Tivoli

Increase first the size of logical volume:

[root@linux Tivoli]# lvresize -L+128M /dev/mapper/rootvg-tivolivol
  Extending logical volume tivolivol to 416.00 MB
  Logical volume tivolivol successfully resized

Resize online the filesystem according to lv size:

[root@linux Tivoli]# resize2fs /dev/mapper/rootvg-tivolivol
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/rootvg-tivolivol is mounted on /opt/Tivoli; on-line resizing required
Performing an on-line resize of /dev/mapper/rootvg-tivolivol to 425984 (1k) blocks.
The filesystem on /dev/mapper/rootvg-tivolivol is now 425984 blocks long.

Filesystem resized:

[root@linux Tivoli]# df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-tivolivol
                      403M  237M  146M  62% /opt/Tivoli

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root