ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 기본적인설정체크용
    VERTICA/02. 설치 2019. 3. 5. 18:43



    #!/bin/sh

    clear

    echo '--------------------------------'

    echo '@ intel_idle.max_cstate=0 / processor.max_cstate=0'

    cat /etc/grub.conf

    echo '--------------------------------'

    echo '@ swappiness = 0'

    cat /proc/sys/vm/swappiness

    echo '--------------------------------'

    echo '@ rc.local'

    echo '@touch /var/lock/subsys/local'

    echo '@echo deadline > /sys/block/sdb/queue/scheduler'

    echo '@blockdev --setra 8192 /dev/sdb'

    echo '@echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled'

    echo '@echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag'

    echo '@echo no > /sys/kernel/mm/redhat_transparent_hugepage/khugepaged/defrag'

    echo '@echo 1 > proc/sys/net/ipv4/conf/eth0/arp_ignore'

    echo '@echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce'

    echo '@echo 1 > /proc/sys/net/ipv4/ip_forward'

    cat /etc/rc.local

    echo '--------------------------------'

    echo '@ IO Scheduler = deadline / Read ahead = 8192'

    cat /sys/block/sdb/queue/scheduler

    blockdev --getra /dev/sdb1

    echo '--------------------------------'

    echo '@ Redhat Linux Hugepage Defragment Setting = never never no'

    cat /sys/kernel/mm/redhat_transparent_hugepage/enabled

    cat /sys/kernel/mm/redhat_transparent_hugepage/defrag

    cat /sys/kernel/mm/redhat_transparent_hugepage/khugepaged/defrag

    echo '--------------------------------'

    echo '@ Swap Size = 2GB'

    free -g | grep Swap

    echo '--------------------------------'

    echo '@ sudo = installed'

    which sudo

    echo '--------------------------------'

    echo '@ rsync = v3.0.5 or later installed'

    which rsync

    rsync --version | grep version

    echo '--------------------------------'

    echo '@ LANG=en_US.UTF-8'

    env | grep LANG

    echo '--------------------------------'

    echo '@ runlevel = 3 or 5'

    runlevel

    echo '--------------------------------'

    echo '@ ntpd = on & running'

    chkconfig --list ntpd

    service ntpd status

    echo '--------------------------------'

    echo '@firewall disable'

    chkconfig --list iptables

    service iptables status

    cat /selinux/enforce

    cat /etc/selinux/config | grep SELINUX

    echo '--------------------------------'

    댓글

Designed by Tistory.