Skip to main content

Posts

Showing posts from August, 2019

Satellite Traceback failure alert troubleshoot

The tracebacks are coming from system "<server>.<domain>.com".  Is seems there is one or more systems using the same jabber id 'osad-d89e8dd1a0@<satellite_server>.<domain>.com/osad' via the same /etc/sysconfig/rhn/osad-auth.conf file and this causes the deadlock condition to occur. Check the OSAD config file on the system  # cd /etc/sysconfig/rhn/ # ls -al total 44 drwxr-xr-x. 4 root root 4096 Apr  5  2018 . drwxr-xr-x. 8 root root 4096 Aug  2 04:43 .. drwxr-xr-x. 4 root root 4096 Apr  5  2018 allowed-actions drwxr-xr-x. 2 root root 4096 Apr  5  2018 clientCaps.d -rw-------. 1 root root  129 Apr 17  2017 osad-auth.conf -rw-rw-r--. 1 root root 1785 Sep 23  2016 osad.conf -rw-r--r--. 1 root root 1446 Oct 29  2015 rhncfg-client.conf -rw-r--r--. 1 root root   10 Apr 17  2017 rhnsd -rw-------  1 root root 1322 Jun  4  2018 systemid -rw-------. 1 root root 1320 Ap...

Use of systemctl to manage systemd

Use the below systemctl command to determine systemd version: # systemctl --version systemd 219 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN # All active services available on your system: # systemctl list-units --type=service List all services including inactive services simply execute: # systemctl list-units --type=service --all Will list currently running/failed services # systemctl | grep running # systemctl list-units --type=service --state=running/failed # systemctl list-units --type=service | grep running/failed Systemctl to Manage Systemd services & its unit: # systemctl list-unit-files --a # systemctl list-unit-files --all Will list all enabled loaded units # systemctl list-unit-files | grep enabled # systemctl list-unit-files --state=enabled Ref:  https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manag...

Enjoy Custom repo.. Use wisely

cat /etc/yum.repos.d/docker.repo [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg cat /etc/yum.repos.d/docker-ce.repo [docker-ce-stable] name=Docker CE Stable - $basearch baseurl=https://download.docker.com/linux/centos/7/$basearch/stable enabled=1 gpgcheck=1 gpgkey=https://download.docker.com/linux/centos/gpg [docker-ce-stable-debuginfo] name=Docker CE Stable - Debuginfo $basearch baseurl=https://download.docker.com/linux/centos/7/debug-$basearch/stable enabled=0 gpgcheck=1 gpgkey=https://download.docker.com/linux/centos/gpg [docker-ce-stable-source] name=Docker CE Stable - Sources baseurl=https://download.docker.com/linux/centos/7/source/stable enabled=0 gpgcheck=1 gpgkey=https://download.docker.com/linux/centos/gpg [docker-ce-edge] name=Docker CE Edge - $basearch baseurl=https://download.docker.com/linux/centos/7/$basearch/edge enabled=0 gpgcheck...

Veritas Device tree clean-up in Solaris

Stop the running event source # vxddladm stop eventsource It always recommended taking a backup of the disk info along with its array frame # mv /etc/vx/disk.info /etc/vx/disk.info-bkp # mv /etc/vx/array.info /etc/vx/array.info-bkp Destroy all device tree and its residue  # rm /dev/vx/dmp/* # rm /dev/vx/rdmp/* Clean configure device tree # vxconfigd -k -x cleartempdir Start event souce  # vxddladm start eventsource 

Remove LUN's from Veritas Disk group(dg)

## To get all LUNS details presented vxdisk -o alldgs list ## To get all the deported LUNS, especially it will start (container-dg) so we filtered with "(" along with printing only the first columns vxdisk -o alldgs list | grep "(" | awk {'print $1'} ## Take a count if many LUNS need to remove from Veritas Disk group vxdisk -o alldgs list | grep "(" | awk {'print $1'} | wc -l ## All with previous comments, we are printing only the first columns that represent LUNS details along with LUNS UDID number. Also do take a note of this LUNS UDID. for i in `vxdisk -o alldgs list | grep "(" | awk {'print $1'}`;do echo "##### $i #####";vxdisk -o alldgs list $i | grep udid;done ## Remove permanetly from Veritas disk group for i in `vxdisk -o alldgs list | grep "(" | awk {'print $1'}`;do echo "##### $i #####";vxdisk rm $i;done Hope this helps ;)