This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
daily_admin_issues [2011/09/21 16:25] k2patel [Telnet IMAP Test] |
daily_admin_issues [2021/09/21 16:13] k2patel [Force chronyc time sync] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Daily Admin Issue ====== | ====== Daily Admin Issue ====== | ||
- | [[ sar reporting ]] | + | * [[ sar reporting ]] |
+ | * [[ Kernel Tuning ]] | ||
+ | * [[ inotify monitor ]] | ||
+ | * [[ Security ]] | ||
+ | |||
+ | ==== Centos 6 to 7 Upgrade ==== | ||
+ | |||
+ | I've followed [[https://wiki.centos.org/TipsAndTricks/CentOSUpgradeTool]] without issue.\\ | ||
+ | But after reboot i've started seeing following error "libpcre.so.0" not found. | ||
+ | |||
+ | After looking further it appeared to the issue with "grep" package. | ||
+ | After Successful reboot simply downgrade the grep package and error will disappear. | ||
+ | |||
+ | Also it is good idea to place selinux in permissive mode before you start upgrade. | ||
==== Drupal Throw watchdog error ==== | ==== Drupal Throw watchdog error ==== | ||
Line 19: | Line 33: | ||
) | ) | ||
</code> | </code> | ||
- | |||
==== Locale Issue on Linux ==== | ==== Locale Issue on Linux ==== | ||
Line 78: | Line 91: | ||
touch /.autorelabel | touch /.autorelabel | ||
reboot | reboot | ||
+ | </code> | ||
+ | |||
+ | === Reset context on Specific Folder === | ||
+ | <code bash> | ||
+ | restorecon -Rv /var/www/html | ||
</code> | </code> | ||
Line 87: | Line 105: | ||
</code> | </code> | ||
+ | === Web Application can not connect to db === | ||
+ | This behavior can not get logged in audit.log some time.\\ | ||
+ | which make it harder to troubleshoot. you can manually enabled network connection for db on http context.\\ | ||
+ | |||
+ | <note> -P option is to make permanent change </note> | ||
+ | |||
+ | <code bash> | ||
+ | setsebool -P httpd_can_network_connect_db on | ||
+ | </code> | ||
==== Telnet IMAP Test ==== | ==== Telnet IMAP Test ==== | ||
Line 122: | Line 149: | ||
<code bash> | <code bash> | ||
- | ssh -N -D 8822 <username>@<Remote_server> | + | ssh -N -f -D 8822 <username>@<Remote_server> |
</code> | </code> | ||
Line 128: | Line 155: | ||
You are all set. | You are all set. | ||
+ | === Allow Other computer === | ||
+ | In order to allow other computer on network to access your proxy use following command. | ||
+ | <note warning>This is Open Proxy please use proper firewall rule to allow access.</note> | ||
+ | |||
+ | <code bash> | ||
+ | ssh -N -f -D 0.0.0.0:9933 k2patel@vedi.k2patel.in | ||
+ | </code> | ||
+ | |||
+ | Now setup other computer's browser to proxy socks5 host <your IP> port <9933>.\\ | ||
+ | That should do it | ||
+ | |||
+ | ==== Download java using wget ==== | ||
+ | <code bash> | ||
+ | wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-i586.rpm | ||
+ | </code> | ||
+ | |||
+ | ==== Force chronyc/chronyd/chrony time sync ==== | ||
+ | <code bash> | ||
+ | chronyc -a 'burst 4/4' | ||
+ | chronyc -a makestep | ||
+ | </code> | ||
+ | |||
+ | ==== Multiple BAR 13: no space for [io size 0x1000] ==== | ||
+ | |||
+ | :!: Multiple BAR 13: no space for [io size 0x1000] messages seen on RHEL guest on VMWare ESX vCenter 6.0 host at boot. | ||
+ | |||
+ | best bet is to contact vmware, but temporary fix should be as follow | ||
+ | <code bash> | ||
+ | try booting with pci=nocrs kernel command line option. | ||
+ | This parameter is used to discard ACPI resource information for various devices. | ||
+ | </code> |