Procedure to Expand the Virtual Filesystems of Large and Extra Large Vservers to Fully Use the Allotted Space (Doc ID 1562526.1)

Last updated on MARCH 22, 2017

Applies to:

Oracle Exalogic Elastic Cloud Software - Version 2.0.4.0.0 and later
Linux x86-64

Goal

In the current release of the Exalogic Virtual environment, vservers can be created to varying sizes using vtypes. The default vtypes are small, large and extra large. Although the vtypes create virtual disks or volumes in sizes of 5584 MB, 8589 MB and 17.1 GB respectively, all the disks are formatting and appear to the operating system as 679 cylinders or 5584 MB. The following fdisk output illustrates this point.

Initial Partition Size: SMALL

[root@small ~]# fdisk -l

Disk /dev/xvda: 5584 MB, 5584965120 bytes
255 heads, 63 sectors/track, 679 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1          13      104391   83  Linux
/dev/xvda2              14         615     4835565   83  Linux
/dev/xvda3             616         679      514080   82  Linux swap / Solaris

Initial Partition Size: LARGE

[root@large ~]# fdisk -l

Disk /dev/xvda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1          13      104391   83  Linux
/dev/xvda2              14         615     4835565   83  Linux
/dev/xvda3             616         679      514080   82  Linux swap / Solaris

Initial Partition Size: EXTRA LARGE

[root@xlarge ~]# fdisk -l

Disk /dev/xvda: 17.1 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1          13      104391   83  Linux
/dev/xvda2              14         615     4835565   83  Linux
/dev/xvda3             616         679      514080   82  Linux swap / Solaris

Note that in each case the partition sizes are always the same, with the END cylinder always at 679. In the case of the LARGE and EXTRA LARGE vServer types, note that not all the available cylinders are used and therefore the partitions are not sized to use all available space.

In our solution, we will focus on resizing the extra large vtype but the process will be the same for any vserver larger than 5584 MB including custom vtypes.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms