Enpand root mount that doesn't use LVM

General support questions
Post Reply
npolite
Posts: 29
Joined: 2007/11/30 03:35:01
Contact:

Enpand root mount that doesn't use LVM

Post by npolite » 2018/09/25 12:57:31

Hi All,

I'm trying to setup an Oracle Cloud VM instance using Oracle's provided templates. Their root mount doesn't use LVM so it's being a pain to try to get this expanded since I can't use a boot CD to fix it. By default the root parition is set to 40GB and I created from their template a 75GB boot volume size. Does anyone know of a way I can increase the mount without using a boot CD?

parted /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: The backup GPT table is not at the end of the disk, as it should be. This might mean that another operating system believes the disk is smaller. Fix, by moving the backup to the
end (and removing the old backup)?
Fix/Ignore/Cancel? f
Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 59609088 blocks) or continue with the current setting?
Fix/Ignore? fix
Model: ORACLE BlockVolume (scsi)
Disk /dev/sda: 80.5GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 211MB 210MB fat16 EFI System Partition boot
2 211MB 8801MB 8590MB linux-swap(v1)
3 8801MB 50.0GB 41.2GB xfs

Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 30762188 0 30762188 0% /dev
tmpfs 30788256 0 30788256 0% /dev/shm
tmpfs 30788256 16944 30771312 1% /run
tmpfs 30788256 0 30788256 0% /sys/fs/cgroup
/dev/sda3 40223552 1903348 38320204 5% /
/dev/sda1 204580 9972 194608 5% /boot/efi
tmpfs 6157652 0 6157652 0% /run/user/1000


Thanks

npolite
Posts: 29
Joined: 2007/11/30 03:35:01
Contact:

Re: Enpand root mount that doesn't use LVM

Post by npolite » 2018/09/25 15:55:43

I was able to grow it using the following command:

growpart /dev/sda 3

Post Reply