ASMLib

How to Resolve ASMLib Scanned No Disks on Boot

Posted on
ASMLib Scanned Nothing on Boot-Time ASMLib seems to be started too soon to scan iSCSI disks which may not be ready on boot in Enterprise Linux 7. [root@primary01 ~]# oracleasm listdisks [root@primary01 ~]# oracleasm-discover Using ASMLib from /opt/oracle/extapi/64/asm/orcl/1/libasm.so [ASM Library – Generic Linux, version 2.0.12 (KABI_V2)] Nothing was found there when we tried to list […]
Apache

How to Resolve Too many open files AH00132: file permissions deny server access

Posted on
Saw some errors in httpd log:[Sat Jun 10 18:20:54.048569 2017] [core:error] [pid 5596] (24)Too many open files: [client 123.123.123.123:56399] AH00132: file permissions deny server access: /var/www/html/logo.png, referer: http://logic.edchen.org/Check the resource limit on open files. This includes hard limit and soft limit.[root@test ~]# ulimit -H -n4096[root@test ~]# ulimit -S -n1024It could be too small to support […]
Installation and Upgrade

How to Install Oracle Database 11.2.0.4 on Oracle Linux 7.2

Posted on
First of all, I take a short cut to prepare almost all required packages by installing oracle-rdbms-server-11gR2-preinstall. [root@db1 ~]# yum -y install oracle-rdbms-server-11gR2-preinstall Loaded plugins: ulninfo Resolving Dependencies –> Running transaction check —> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-4.el7 will be installed –> Processing Dependency: gcc for package: oracle-rdbms-server-11gR2-preinstall-1.0-4.el7.x86_64 –> Processing Dependency: sysstat for package: oracle-rdbms-server-11gR2-preinstall-1.0-4.el7.x86_64 –> Processing […]
Firewalld

How to Install Newest LAMP on CentOS 7.2 Minimal (4/4) – Configure Daemons and Firewall

Posted on
Configure MySQL Daemon [root@test ~]# systemctl status mysqld.service â— mysqld.service – MySQL Server    Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)    Active: active (running) since Tue 2016-03-22 20:40:37 EDT; 5min ago   Process: 2158 ExecStart=/usr/sbin/mysqld –daemonize –pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)   Process: 1620 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)  Main PID: 2814 (mysqld)    CGroup: /system.slice/mysqld.service   […]
LAMP

How to Install Newest LAMP on CentOS 7.2 Minimal (3/4) – Install PHP 7.0 Modules

Posted on
Check the available version of PHP from base repository.[root@test ~]# yum info php Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: ftp.ksu.edu.tw * extras: ftp.ksu.edu.tw * updates: ftp.ksu.edu.twAvailable PackagesName        : phpArch        : x86_64Version     : 5.4.16Release     : 36.el7_1Size        : 1.4 MRepo       […]
Apache

How to Install Newest LAMP on CentOS 7.2 Minimal (2/4) – Install Apache httpd 2.4.6

Posted on
Check the version in the repository.[root@test ~]# yum info httpdLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: ftp.ksu.edu.tw * extras: ftp.ksu.edu.tw * updates: ftp.ksu.edu.twAvailable PackagesName        : httpdArch        : x86_64Version     : 2.4.6Release     : 40.el7.centosSize        : 2.7 MRepo        : base/7/x86_64Summary     […]
LAMP

How to Install Newest LAMP on CentOS 7.2 Minimal (1/4) – Install MySQL 5.7

Posted on
Install official yum repository.[root@test ~]# rpm -Uvh https://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpmRetrieving https://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpmwarning: /var/tmp/rpm-tmp.aF6L5J: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYPreparing…                          ################################# [100%]Updating / installing…   1:mysql57-community-release-el7-7  ################################# [100%]Let’s see what version we can have.[root@test ~]# yum info mysql-community-serverLoaded plugins: fastestmirrormysql-connectors-community             […]
XFS

How to Shrink XFS File System on Enterprise Linux 7.2

Posted on
Why XFS File System Cannot be Shrunk Directly? Why cannot we just lvreduce XFS file system? A quote from Red Hat official document talking about XFS space management may explain the whole thing. XFS is a highly scalable, high-performance file system which was originally designed at Silicon Graphics, Inc. XFS is the default file system […]