Skip to main content

Oracle Solaris Guest LDOM root file system is Full

Are you stuck in same situation where your guest ldom root file system is full and VM went into the transition mode? Then this is the right technical article that will help you to overcome this issue. We encountered this issue in one of our customer environments and were able to fix it successfully. Currently there are two volumes attached to to virtual machine
DISK
    NAME         VOLUME                 TOUT ID   DEVICE  SERVER         MPGROUP
    ijrcrm5-vol1 ijrcrm5-vol1@primary-vds0      0    disk@0  primary
    ijrcrm1-vol2 ijrcrm5-vol2@primary-vds0      1    disk@1  primary
ijrcrm5-vol1 is the OS volume attached to the VM
root@IJRSVP-SOL-CDM1:/dev/zvol/dsk/rpool# zfs get volsize rpool/ijrcrm5-vol1
NAME                PROPERTY  VALUE  SOURCE
rpool/ijrcrm5-vol1  volsize   50G    local
root@IJRSVP-SOL-CDM1:/dev/zvol/dsk/rpool#
Now we need to increase the volume size from the controller domain:
root@IJRSVP-SOL-CDM1:/dev/zvol/dsk/rpool# zfs set volsize=70g rpool/ijrcrm5-vol1
root@IJRSVP-SOL-CDM1:/dev/zvol/dsk/rpool#
Login to the virtual machine in maintenance Mode:
Enter user name for system maintenance (control-d to bypass): root
Enter root password (control-d to bypass):
single-user privilege assigned to root on /dev/console.
Entering System Maintenance Mode

Jan 22 12:18:50 su: 'su root' succeeded for root on /dev/console
Oracle Solaris 11.4.49.126.2                    Assembled August 2022
You have new mail.
root@ijrpscrm-p-w2:~# df -h
Filesystem             Size   Used  Available Capacity  Mounted on
rpool/ROOT/solaris-1    49G  17.5G          0   100%    /
rpool/ROOT/solaris-1/var
                        49G  1.54G          0   100%    /var
/devices                  0      0          0     0%    /devices
/dev                      0      0          0     0%    /dev
ctfs                      0      0          0     0%    /system/contract
proc                      0      0          0     0%    /proc
mnttab                    0      0          0     0%    /etc/mnttab
swap                  27.1G    21M      27.1G     1%    /system/volatile
swap                  27.1G      0      27.1G     0%    /tmp
objfs                     0      0          0     0%    /system/object
sharefs                   0      0          0     0%    /etc/dfs/sharetab
fd                        0      0          0     0%    /dev/fd
rpool/VARSHARE          49G  4.96M          0   100%    /var/share
rpool/VARSHARE/tmp      49G   288K          0   100%    /var/tmp
rpool/VARSHARE/kvol     49G   288K          0   100%    /var/share/kvol
root@ijrpscrm-p-w2:~#
- Here we can see there is no space in root file system Set to expand rpool to autoexpand but unfortunately it failed due to out of space as listed below:
root@ijrpscrm-p-w2:~# zpool set autoexpand=on rpool
cannot set property for 'rpool': out of space
root@ijrpscrm-p-w2:~#
Reduced the size of dumpadm file system from 16GB to 5GB and the auto expand of rpool worked:
root@ijrpscrm-p-w2:/# zfs list -t vol
NAME                               USED  AVAIL  REFER  MOUNTPOINT
rpool/VARSHARE/kvol/dump_summary  1.22M  1.08M   144K  -
rpool/VARSHARE/kvol/ereports      10.2M    80K  10.2M  -
rpool/VARSHARE/kvol/kernel_log    16.2M    80K  16.2M  -
rpool/dump                          16G   3.7M    16G  -
rpool/swap                           4G     4G   144K  -
root@ijrpscrm-p-w2:/# zfs set refreservation=5.0G rpool/dump
root@ijrpscrm-p-w2:/# zpool set autoexpand=on rpool
root@ijrpscrm-p-w2:/#
Expand the rpool volume from the guest VM:

root@ijrpscrm-p-w2:~# zpool online -e rpool c1d0
root@ijrpscrm-p-w2:~# df -h
Filesystem             Size   Used  Available Capacity  Mounted on
rpool/ROOT/solaris-1  68.7G  17.5G      19.7G    48%    /
rpool/ROOT/solaris-1/var
                      68.7G  1.54G      19.7G     8%    /var
/devices                  0      0          0     0%    /devices
/dev                      0      0          0     0%    /dev
ctfs                      0      0          0     0%    /system/contract
proc                      0      0          0     0%    /proc
mnttab                    0      0          0     0%    /etc/mnttab
swap                  28.7G  20.9M      28.7G     1%    /system/volatile
swap                  28.7G      0      28.7G     0%    /tmp
objfs                     0      0          0     0%    /system/object
sharefs                   0      0          0     0%    /etc/dfs/sharetab
fd                        0      0          0     0%    /dev/fd
rpool/VARSHARE        68.7G  4.96M      19.7G     1%    /var/share
rpool/VARSHARE/tmp    68.7G   288K      19.7G     1%    /var/tmp
rpool/VARSHARE/kvol   68.7G   288K      19.7G     1%    /var/share/kvol
root@ijrpscrm-p-w2:~#
We are successfully able to overcome and fix the rpool issue in the guest VM. Thanks for reading and hope it helped 😊 Regards, Zaheer

Comments

Popular posts from this blog

Disable Firewall on Oracle Linux 8

In this blogpost we will see how we can stop/disable the firewall on Oracle Linux 8, the firewall command is same in both linux 7 an linux 8. The below listed is the procedure for stopping and disabling the  firewall on Oracle Linux 8. - Here we can see the firewall deamon in active state - Here when we stop the firewall in previous command, now the firewall daemon is dead - For permanent disabling the firewall on server, we can use "disable" option The following commands will be helpful: #systemctl status firewalld #systemctl stop firewalld #systemctl disable firewalld #systemctl enable firewalld #systemctl start firewalld Hope it helps !! Thanks for reading :) regards, X A H E E R

Enable Desktop on Oracle Solaris 11.4

Oracle Solaris 11 installation has multiple options to choose for installation of an Operating Environment, but mostly Oracle Solaris text install media is used and this installation media doesn't offer the GUI Desktop Environment by default after the installation. This blog post will explain how we can enable the desktop for Oracle Solaris 11.4 operating system, after the completion of installation. We have to install "solaris-desktop" package and reboot the machine and GUI desktop will be enabled for the Operating System. In this blog post my virtual machine is connected to the internet and hence I am able to use available pupblic repository for package installation, if in case internet is not available for the server/machine then we have configure the local/Server  repository for the installation. Follow the below steps for desktop package installation: After installation of dekstop package we are now able to login with GUI desktop environment...

Oracle Applications R12.2 Installation on Linux using virtual box

Oracle E-Business suite R12.2 is released a month ago. I received too many requests from my followers to demonstrate this Installation. This is a step by step detailed article for Installing Oracle E-business suite R12,2 on Oracle Enterprise Linux 5.7 (64-bit). I've used oracle virtual box for Installing Linux. Note:  This Installation is demonstrated on virtual machine with 8GB RAM and Installation completed in 7 hours. I am not sure whether this Installation will work with less than this .  My Virtual Machine configuration: CPU    = 1 core RAM   = 8 GB HDD   =  380 GB Software's Required: 1) Oracle Virtual Box 2) Oracle Enterprise Linux 5.7 (64-bit) 3) Oracle E-Business suite R12.2 for LinuxX86-64-bit Installation Steps: Hardware requirements Create virtual machine and Install operating system Operating System pre-requisites Prepare Stage Area Install Oracle EBS R12.2 software Verify Insta...