orachk 的幾個waring 解決辦法
WARNING | ASM Check | Linux Disk I/O Scheduler should be configured to [Deadline] | All ASM Instances |
[root@bcc1 ~]# echo 'deadline' > /sys/block/sda/queue/scheduler
[root@bcc1 ~]# cat /sys/block/sda/queue/scheduler
noop anticipatory [deadline] cfq
要配置在重啟後任然有效:
[root@bcc1 ~]# vi /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/bcc1sysvg-bcc1rootlv
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-431.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/bcc1sysvg-bcc1rootlv elevator=deadline rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=bcc1sysvg/bcc1rootlv rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=bcc1sysvg/bcc1swaplv KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.el6.x86_64.img
需要在reboot之後生效
waring 2:
WARNING
OS Check
Linux transparent huge pages are enabled
All Database Servers
# vi /etc/rc.local
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
經測試在rhel 6上,必須在 grub.conf檔案中配置,重啟之後,才會生效。
[root@bcc1 ~]# vi /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/bcc1sysvg-bcc1rootlv
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-431.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/bcc1sysvg-bcc1rootlv transparent_hugepage=never elevator=deadline rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=bcc1sysvg/bcc1rootlv rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=bcc1sysvg/bcc1swaplv KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.el6.x86_64.img
需要在reboot後生效
waring 3:
WARNING | OS Check | vm.min_free_kbytes should be set as recommended. | All Database Servers |
做了如下修改:
[root@bcc2 ~]# cat /etc/sysctl.conf | grep vm.min_free_kbytes
vm.min_free_kbytes = 524288
[root@bcc2 ~]# sysctl -n vm.min_free_kbytes
524288
針對waring:
WARNING | ASM Check | ASM memory_target is not set to recommended value for Linux | All ASM Instances | |
WARNING | ASM Check | ASM SGA_TARGET is not set to recommended value | All ASM Instances |
在 11g之後oracle建議asm的記憶體大小為>=1024 MB 可是在預設安裝asm時,只賦予了512 MB,所以在rac安裝之後,將asm 例項的記憶體調大。
SQL> show parameter mem
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
memory_max_target big integer 1G
memory_target big integer 432M
SQL> show parameter ga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pga_aggregate_target big integer 0
sga_max_size big integer 1G
sga_target big integer 0
SQL> alter system set memory_target=0 scope=spfile sid='*'; ;
System altered.
SQL> alter system set sga_target=1g scope=spfile sid='*';
System altered.
需要在重啟ASM之後生效。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26474945/viewspace-1403765/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【DataBase】:使用Oracle遇到的幾個問題及解決辦法DatabaseOracle
- ie不相容的幾個js問題及解決辦法JS
- 關於master..xp_cmdshell’的幾個錯誤解決辦法AST
- MySQL組複製的幾個常見問題以及解決辦法MySql
- 隨身碟無法停止通用卷的幾種解決辦法
- samba一個錯誤的解決辦法!Samba
- CSS元素高度塌陷的幾種常見解決辦法!CSS
- 幾種解決“藍芽不可用”問題的辦法藍芽
- Bitmap拉伸後出現鋸齒的幾種解決辦法
- OpenStack 的NAT解決辦法
- 公寓噪音的解決辦法
- 虛擬機器ping不通的幾種原因及解決辦法虛擬機
- SVN被鎖的解決辦法
- ORA-28056的解決辦法
- job都停了的解決辦法
- github慢解決辦法Github
- Grub Rescue解決辦法
- /dev/null解決辦法devNull
- MSBuild Tools解決辦法UI
- 在linux字型下的顯示問題及幾種解決辦法Linux
- 新浪UC無法登入的解決辦法
- 無法訪問google picasa的解決辦法Go
- 檔案無法粉碎解決辦法
- win10無法開啟這個應用解決辦法Win10
- 該文件未能列印的解決辦法
- MySQL 忘記口令的解決辦法MySql
- Spark on mesos的坑以及解決辦法Spark
- mongodb日誌太大的解決辦法MongoDB
- ORA-16038 的解決辦法
- oracle imp過慢的解決辦法Oracle
- git報錯400的解決辦法Git
- Excel資料快速匯入mysql的幾個辦法ExcelMySql
- android ExceptionInInitializerError解決辦法AndroidExceptionError
- Could not find *.apk!解決辦法APK
- man出錯解決辦法
- ARP病毒解決辦法
- 幾個報錯的解決方法
- cocos2d-x解決中文亂碼問題的幾種辦法