Growing File System on OEL 8 Guest. Almost there

Discussions about using Linux guests in VirtualBox.
Post Reply
bobyera1
Posts: 6
Joined: 16. Jan 2013, 07:28

Growing File System on OEL 8 Guest. Almost there

Post by bobyera1 »

Hi,
My OEL 8 guest (Windows 10 host) was running out of space on /. Using the Gparted CD, I managed to add 10+ gb to the disk physically. I just don't know how to get the OS to see the extra space now. Not sure what command to use. Any help is appreciated. - TIA - Bob

# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 3895084 0 3895084 0% /dev
tmpfs 3925564 14140 3911424 1% /dev/shm
tmpfs 3925564 9456 3916108 1% /run
tmpfs 3925564 0 3925564 0% /sys/fs/cgroup
/dev/mapper/ol-root 26156568 23474644 2681924 90% /
/dev/sda1 1038336 660828 377508 64% /boot
F_DRIVE 1939073020 410202976 1528870044 22% /media/sf_F_DRIVE
tmpfs 785112 32 785080 1% /run/user/1000

# fdisk -l /dev/sda2
Disk /dev/sda2: 39.7 GiB, 42561699840 bytes, 83128320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

# parted /dev/sda unit s print
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 85393536s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 2048s 2099199s 2097152s primary xfs boot
2 2099200s 85227519s 83128320s primary lvm
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Growing File System on OEL 8 Guest. Almost there

Post by scottgus1 »

bobyera1 wrote:Using the Gparted CD, I managed to add 10+ gb to the disk physically.
See How to Resize a Drive. Note that Gparted'ing is the second step. Did you do the first?

Once both steps are in place, it's up to the OS inside the VM to be told to handle the extra space. How this is done is an OS thing, not a Virtualbox thing. Consult the OS help channels on how to get the extra partition space to be recognized and used. Backing up and restoring disk images to new drives, some of which are bigger, is a thing nowadays, so the OS author & website ought to be able to explain how.
bobyera1
Posts: 6
Joined: 16. Jan 2013, 07:28

Re: Growing File System on OEL 8 Guest. Almost there

Post by bobyera1 »

Thanks for the reply. Yes, I did the 1st part too, df -k shows the available (newly added) space. Now i will just work on getting the OS to see it.

# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 3895084 0 3895084 0% /dev
tmpfs 3925564 14140 3911424 1% /dev/shm
tmpfs 3925564 9456 3916108 1% /run
tmpfs 3925564 0 3925564 0% /sys/fs/cgroup
/dev/mapper/ol-root 26156568 23474644 2681924 90% /
/dev/sda1 1038336 660828 377508 64% /boot
Post Reply