This is done with the fdisk command.
Hopefully you have some free space to allocate on the box.
I do not believe that either /usr or /opt has a requirement that it be contiguous.
If you are using LVM once the partition is set up, you can use extendfs on the filesystem.
In general, I overengineer my systems to avoid this issue, because the disk druid in install makes for easier filesystem/parition configuration.
I can tell you how to preserve your existing configuraion and do an OS reinstall to get you the larger partitions. Depends on what you are running.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com