Resize Block Storage Volumes

Resize block volumes in the compute instance, in the Oracle Cloud Infrastructure console.

  1. Navigate to the block volume in the Oracle Cloud Infrastructure console. See Prepare to Work with an Essbase Stack Instance.
  2. Click Edit Block Size Or Performance, Wait until the available state.
  3. Enter the new block size in GB and click Save Changes.
  4. Wait until it's in an available state.
  5. SSH to the compute instance. See Access Oracle Essbase Using SSH.
  6. Run sudo lsblk as user opc to determine the volume files system that should be increased.
    $sudo lsblk
    NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sdd      8:48   0   64G  0 disk /u01/tmp
    sdb      8:16   0   64G  0 disk /u01/config
    sdc      8:32   0  256G  0 disk /u01/data
    sda      8:0    0 46.6G  0 disk 
    ├─sda2  8:2    0    8G  0 part [SWAP]
    ├─sda3  8:3    0 38.4G  0 part /
    └─sda1  8:1    0  200M  0 part /boot/efi
  7. Run sudo dd iflag=direct if=/dev/sdc of=/dev/null count=1
  8. Run echo "1" | sudo tee /sys/class/block/sdc/device/rescan
  9. After running, check again using sudo lsblk that the partition size is updated.
    $ sudo lsblk
    NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sdd      8:48   0   64G  0 disk /u01/tmp
    sdb      8:16   0   64G  0 disk /u01/config
    sdc      8:32   0  378G  0 disk /u01/data
    sda      8:0    0 46.6G  0 disk 
    ├─sda2  8:2    0    8G  0 part [SWAP]
    ├─sda3  8:3    0 38.4G  0 part /
    └─sda1  8:1    0  200M  0 part /boot/efi
  10. If the target volume is a partition, run sudo growpart, defining the physical disk name and partition number.
    sudo growpart /dev/sdc 1
  11. After running, check again using lsblk that the partition size is updated.
  12. Run sudo xfs_growfs to update the size of the target file system for the volume.
    $ sudo xfs_growfs -d /u01/data
    meta-data=/dev/sdc              isize=256    agcount=4, agsize=16777216 blks
             =                      sectsz=4096  attr=2, projid32bit=1         
             =                      crc=0        finobt=0 spinodes=0 rmapbt=0
             =                      reflink=0
    data     =                      bsize=4096   blocks=67108864, imaxpct=25
             =                      sunit=0      swidth=0 blks
    naming   =version 2             bsize=4096   ascii-ci=0 ftype=1
    log      =internal              bsize=4096   blocks=32768, version=2
             =                      sectsz=4096  sunit=1 blks, lazy-count=1
    realtime =none                  extsz=4096   blocks=0,rtextents=0
    data blocks changed from 67108864 to 99090432
  13. Run df -h to validate that the target file system has been resized.
    $ df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sdc        378G   33M  378G   1% /u01/data