構成図 Ver.5

HDD が7つになったので構成をちょっと変更して、すべてをひとつに纏める。
250GB x 1 : BOOT
2TB x 3 + 3TB x 3 : ZFS-DATA

事前にバックアップを取っておかなくてはならないものは

ぐらいかな?

  1. SYSTEM INSTALL
    1. minimum install
  2. PREFERENCES
    1. vi /etc/profile
    2. date –set=’****/**/** **:**:**’
  3. NETWORK
    1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
    2. vi /etc/sysconfig/iptables
    3. vi /etc/resolv.conf
  4. SELINUX
    1. vi /etc/selinux/config
  5. YUM
    1. vi /etc/yum.conf
  6. NTP
    1. yum install ntp
    2. vi /etc/ntp.conf
    3. /etc/init.d/ntpd start
    4. chkconfig ntpd on
    5. chkconfig ntpdate on
  7. KEYRING
    1. yum install openssh-clients
    2. ssh-keygen -t rsa
    3. mv /root/.ssh/id_rsa.pub /root/.ssh/id_rsa.pub.192.168.1.2
    4. scp /root/.ssh/id_rsa.pub.192.168.1.2 root@192.168.1.1:/root/.ssh/
    5. [ on 192.168.1.1 ]
      cat id_rsa.pub.192.168.1.2 >> authorized_keys
  8. WGET
    1. yum install wget
    2. vi /etc/wgetrc
  9. ZFS (Under Construction)
    1. zpool create tank sdb1
  10. FSTAB (Under Construction)
  11. NFS
    1. yum install rpcbind nfs-utils
    2. vi /etc/exports
    3. /etc/init.d/rpcbind start
    4. /etc/init.d/nfslock start
    5. /etc/init.d/nfs start
  12. SMB
    1. adduser samba-user
    2. passwd samba-user
    3. yum install samba
    4. pdbedit -a samba-user
    5. vi /etc/samba/smb.conf
    6. /etc/init.d/smb start
    7. chkconfig nmbd on
    8. chkconfig smbd on
  13. REPOSITORY
    1. MYSQL-COMMUNITY
      1. cd /tmp
      2. wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
      3. rpm -ivh mysql-community-release-el6-5.noarch.rpm
      4. vi /etc/yum.repos.d/mysql-community.repo
    2. RPMFORGE
      1. wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
      2. rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
      3. vi /etc/yum.repos.d/rpmforge.repo
    3. EPEL
      1. cd /etc/pki/rpm-gpg/
      2. wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
      3. vi /etc/yum.repos.d/epel.repo
    4. CENT-ALT
      1. cd /tmp
      2. wget http://mirror.sysadminguide.net/centalt/repository/centos/6/x86_64/centalt-release-6-1.noarch.rpm
      3. rpm -ivh centalt-release-6-1.noarch.rpm
      4. vi /etc/yum.repos.d/centalt.repo
    5. NGINX
      1. cd /tmp
      2. wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
      3. rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
      4. vi /etc/yum.repos.d/nginx.repo
  14. LAMP
    1. HTTPD (Under Construction)
      1. yum install –enablerepo=CentALT httpd
      2. cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.original
      3. vi /etc/httpd/conf/httpd.conf
      4. /etc/init.d/httpd start
      5. chkconfig httpd on
      6. htdigest -c /var/www/.htdigest ‘DigestAuthArea’ AuthUser
      7. vi /etc/httpd/conf.d/virtual.conf
      8. /etc/init.d/httpd restart
    2. PHP
      1. yum install php
      2. cp /etc/php.ini /etc/php.ini.original
      3. vi /etc/php.ini
      4. /etc/init.d/httpd restart
    3. MYSQL
      1. yum install –enablerepo=mysql56-community mysql
      2. cp /etc/my.cnf /etc/my.cnf.original
      3. vi /etc/my.cnf
      4. /etc/init.d/mysqld start
      5. chkconfig mysqld on
      6. mysql -u root -p
      7. > grant all privileges on *.* to username identified by ‘password’ with grant option;
      8. > quit
  15. READYMEDIA (formerly MINIDLNA)
    1. wget http://sourceforge.net/projects/minidlna/files/minidlna/1.1.3/minidlna-1.1.3_static.tar.gz/download
    2. tar -zxvf minidlna_1.1.3_static.tar.gz -C /
    3. vi /etc/minidlna.conf
    4. vi /etc/rc.d/init.d/minidlna
      ファイル自体は ココ にあります。拡張子は削除して使用。
    5. chmod 755 /etc/rc.d/init.d/minidlna
    6. chkconfig –add minidlna
    7. /etc/init.d/minidlna start
  16. MyDNS
    1. crontab -e
  17. BIND or PowerDNS (Under Construction)
  18. TRANSMISSION (Under Construction)
    1. yum install transmission
  19. GNOME DESKTOP
    1. yum groupinstall “X Window System” “デスクトップ”
    2. vi /etc/inittab
  20. PT3 (Under Construction)