Increase primary /dev/sda1 partition
We have a Virtual machine that is running Redhat enterprise Linux v5. Looking at the current configuration (fdisk –l) there are two partitions /dev/sda1 & other /dev/sda2 partition for swap. We recently noticed that the size of the first primary partition /dev/sda1 is increasing. We DO have more space available which is at this time unallocated. So in other words we can go ahead and create a third partition for the unallocated space and format it to use for additional space.
My question is that our recommended strategy would be to increase the size of the primary partition /dev/sd1 instead of creating a new partition because we cannot tell our application that is growing to use a newly created third partition.
What would be the best method or strategy to extend the primary /dev/sda1 partition without losing any data? Any tips would be nice please.