Is /var/opt on LVM? If so, this is a rather trivial task to complete. (Provided you have free extents, or can shrink other filesystems on the machine)
If you have free extents/space on the machine look at the lv[extend,reduce] tools on your box. Just be extremely careful when doing these tasks. The example below is for my machine, and you will have to cut it to fit, and paint it to match your environment. This is also for an RHEL4 box, running LVM2 with ext3 partitions.
Sample of how i resize lvm partitions:
In this case, I shrunk /home (was 25GB, will be 15GB when finished) and grew /var/opt by 10GB.
Get more space:
Code: Select all
service scalix stop
service scalix-tomcat stop
umount /home
e2fsck -f /dev/HS01/home
resize2fs -p /dev/HS01/home 15G
lvresize /dev/HS01/home -L 15G
mount /homeNow, resize /var/opt
Code: Select all
umount /var/opt
e2fsck -f /dev/HS01/var_opt
lvextend /dev/HS01/var_opt +10G
resize2fs /dev/HS01/var_opt
mount /var/optand restart your scalix services
Code: Select all
service scalix start
service scalix-tomcat start