Personal tools

ImsServer

From Adapt

Revision as of 19:31, 12 September 2008 by Scsong (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

IMS Server installation

OS Install

  • make sure the raid only has the root volume configured. Delete the 2nd volume in raid manager or anaconda will use it for root
  • Standard rh4 install
  • kill unnessary services, remove local and opt nfs mounts
  • Install raid stuff
[root@naraapp08 raid]# ls
MSM_1.18-00.txt  MSM_1.18-00.zip  MSM_linux_installer-1.18-00.tar.gz
[root@naraapp08 raid]# gunzip MSM_linux_installer-1.18-00.tar.gz 
[root@naraapp08 raid]# tar -tvf MSM_linux_installer-1.18-00.tar 
drwxr-xr-x /bhaskars         0 2006-12-07 00:42:08 disk/
-rwxr-xr-x /bhaskars     11343 2006-12-07 00:16:08 disk/install.sh
-rwxr-xr-x /bhaskars      1393 2006-12-07 00:16:41 disk/RunRPM.sh
-rw-r--r-- /bhaskars      4762 2006-09-08 01:13:57 disk/readme.txt
-rwxr-xr-x /bhaskars      1396 2006-12-07 00:42:08 disk/deleteOldVersion.sh
-r-xr--r-- /bhaskars    136658 2006-11-08 05:44:56 disk/LSI-AdapterSAS.mib
-rw-r--r-- /bhaskars    269574 2006-06-06 07:59:31 disk/libstdc++34-3.4.0-1.i386.rpm
-rw-r--r-- root/root  31525668 2006-12-07 00:41:05 disk/MegaRAID_Storage_Manager-1.18-00.i386.rpm
[root@naraapp08 raid]# tar -xf MSM_linux_installer-1.18-00.tar 
[root@naraapp08 raid]# cd disk
[root@naraapp08 disk]# ./install.sh -a
 
Starting complete installation of MegaRAID Storage Manager 1.18-00.....
Checking for any Old Version
Patch Sequence 1.0.0.0 for MegaRAID_Storage_Manager 3.0.00 not found
No Old Version Found
Continuing with installation
warning: libstdc++34-3.4.0-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
        file /usr/lib/libstdc++.so.6 from install of libstdc++34-3.4.0-1 conflicts with file from package libstdc++-3.
4.6-8
Installing  MegaRAID_Storage_Manager-1.18-00
Preparing...                ########################################### [100%]
Installing....
   1:MegaRAID_Storage_Manage########################################### [100%]
Starting Framework: 
Starting Monitor: /
 
Starting snmpd
Stopping snmpd: [  OK  ]
Starting snmpd: [  OK  ]
Starting LSI SNMP Agent
Starting LSI SNMP Agent:[  OK  ]
Aug 14, 2007 1:27:30 PM java.util.prefs.FileSystemPreferences$3 run
INFO: Created system preferences directoryin java.home.

set: KEY=INSTALLER_VERSION   VAL=v1.18-00

/
  • created another raid-1 volume consisting of the two 73gb drives.
  • made three volumes mounted under /export
    • homes 5g - home directories, create as necessary
    • mysql 20g - data for mysql
    • ace 5g - server software, tomcat, etc...
  • edit /etc/my.cnf and changed datadir to /export/mysql/data
    • chkconfig mysqld on
  • Launch the megaraid config in /usr/local.
    • tools -> configure -> monitor configure
    • set e-mail server, to address, set all alerts to be email delivered
    • click file -> send to monitor to make permanent

MySQL update

installed rpm's for mysql 5.0.45, mysql-server-community, mysql-client-community were used from mysql's website

[root@naraapp08 ~]# rpm -ivh MySQL-*
warning: MySQL-client-community-5.0.45-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...                ########################################### [100%]
   1:MySQL-server-community ########################################### [ 50%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h naraapp08.umiacs.umd.edu password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
install: cannot stat `/SELinux/RHEL4/mysql.fc': No such file or directory
install: cannot stat `/mysql/SELinux/RHEL4/mysql.te': No such file or directory
/etc/selinux/targeted/src/policy /
cat: /selinux/policyvers: No such file or directory
Building file_contexts ...
/var/lib is already defined in ./file_contexts, will not create a new context.
/etc is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
/export/homes is already defined in ./file_contexts, will not create a new context.
install -m 644 file_contexts/file_contexts /etc/selinux/targeted/contexts/files/file_contexts
/usr/sbin/load_policy /etc/selinux/targeted/policy/policy.18
load_policy: booleans.c:48: security_get_boolean_names: Assertion `selinux_mnt' failed.
make: *** [tmp/load] Aborted
/
Starting MySQL[  OK  ]
Giving mysqld 2 seconds to start
   2:MySQL-client-community ########################################### [100%]

copy huge.cnf to /etc/my.cnf

[root@naraapp08 MySQL-server-community-5.0.45]# pwd
/usr/share/doc/MySQL-server-community-5.0.45
[root@naraapp08 MySQL-server-community-5.0.45]# cp my-huge.cnf /etc/my.cnf

edit my.cnf and set the following innodb settings

# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = /export/mysql/data/
innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
innodb_log_group_home_dir = /export/mysql/data/
innodb_log_arch_dir = /export/mysql/data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 384M
innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 100M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50