Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Tuesday, October 27, 2020

How to run explorer on Solaris 11

How to run explorer on Solaris 11 : 


Why we run explorer: To collect the hardware issues and OS related issues. It contains output of files like dmesg, system files, hardware errors etc...

How to run:  Just run explorer command, the command will run from /usr/sbin/explorer

# explorer

If you are running it for the first time:

# explorer -g

The output will get stored at /var/explorer/output

To check the explorer version:

# explorer -v

 

Regards,

Kirraan Jadhav

Monday, October 26, 2020

/boot housekeeping + linux

/boot is almost full + linux


It is recommended to have at least 1GB of space for /boot.  


The safest way of cleaning up /boot is :


Do the following to keep just the last 2 kernels on your system, to keep /boot clean.

1 - Edit /etc/yum.conf and set the following parameter

# vi /etc/yum.conf

installonly_limit=2

This will make your package manager keep just the 2 last kernels on your system(including the one that is running)

 

2 - Install yum-utils utility so the package-cleanup command will work:

# yum install yum-utils

 

3 - Make an oldkernel cleanup:

# package-cleanup --oldkernels --count=2

4. This will clear lots of space. If not, then we can note down the current kernel version and can move the other kernels files to another directory.

To know current version of kernel:

# uname -r

Or

# rpm -qa kernel

Move other kernel files to another directory

# mv /boot/<file name> /root/oldkernels

 

Regards,

Kirraan Jadhav