I have this VM Oracle Virtual Sysadmin Days ( downloadded at http://download.oracle.com/technetwork/community/developer-vm/OracleLinux63.ova)
In the VM, I have this filesystens
[oracle@oraclelinux6 ~]$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
7897088 3570272 2888064 56% /
tmpfs 1027420 112 1027308 1% /dev/shm
/dev/sda1 495844 100353 369891 22% /boot
I'd like to install Oracle 11g for tests.
What is the easiest way for resize the filesystem /dev/mapper/vg_oraclelinux6-lv_root for have enought space for install Oracle DB (for exemple 40Gb of free space) ?
Have same question... Did you find an answer? Thanks!
EDIT: Found the answer: https://wikis.oracle.com/display/oraclelinux/Hands-on+lab+-+Storage+Management
And you need to resize btrfs once you increase the root lv.
sudo lvextend -v -L +2G -r vg_oraclelinux6/lv_root
this will report some errors but now you do
sudo btrfs filesystem resize +2G /
Power down the VM. Use OVMM to grow the vdisk. Power up the VM again and do the usual LVM stuff to resize the partition where the VG is located on.
If this seems too weird, create another partition on the drive using the new, unused blocks and create another PV on that and add that PV to the VG. Then issue a lvresize on /dev/mapper/vg_oraclelinux6-lv_root with an resize2fs afterwards.