|
omega.phas.ubc.ca 142.103.236.90 (PUBLIC) - 192.168.1.90 (server) |
Machine Type: 7947-AC1, Serial No.: 0662328, Product name:IBM System x3650 M2 server
Warranty expires May 2012
MegaRAID Applications -> System Tools -> MegaRAID Storage Manager StartUpGuiUsername: rootPwd:root passwd
Sales Order Number: 2006267030, Build Date: 09-05-23 MAC Address 1: 00-1A-64-E5-44-6C MAC Address 2: 00-1A-64-E5-44-6E Feature Qty Description Feature Qty Description 1823 1 NVIDIA Quadro FX 570 4163 1 UltraSlim Enhanced SATA Multi- 3639 1 Intel Xeon Processor L5520 4C 5653 1 System Common planar for 1U/2U 4411 1 Addl lntel Xeon Processor L552 6311 2 2.8m, 10A/100-250V, C13 to IEC 4303 1 IBM System x3650 M2 PCI- Expres 7553 1 8 HDD Enablement Kit 5088 1 IBM System x3650 M2 PCI- Expres 9206 1 No Preload S Feature 5864 1 ServeRAID-MR1Di Li-Ion Battery 2100 1 IBM 675W Redundant Power Supply 5536 3 IBM 146GB 15K 6Gbps SAS 2.5" S 5601 1 Base 3571 1 ServeRAID-MR10i SAS/SATA Contr 9724 1 System Documentation and Softw 3964 16 2GB DDR3-1333 2Rx8 LP RDIMM 2578 1 System Packaging-WW 7552 1 Hot swap SAS/SATA 4 Pac HDD Kit 4069 9 2.5" HDD Filler Bezel 9067 1 Internal SAS RAID - Setup by C 4039 1 Slide Kit 4040 1 GBM, CMA
| IBM ServeRAID-MR10i SAS/SATA Controller (Press Ctrl-H on bootup to enter...) | |||
| S/N | P288800908 | FRU | none |
| SubVendorID | 0x1014 | Encryption Capable | No |
| SubDeviceID | 0x364 | NVRAMSize | 32 KB |
| Port Count | 8 | Memory Size | 256 MB |
| Host Interface | PCIE | Min Stripe Size | 8 KB |
| Firmware Ver | 1.40.32-0602 | Max Stripe Size | 1 MB |
| Firmware Pkge Ver | 11.0.1-0012 | Virtual Drive Count | 0 |
| Firmware Time | Mar 20, 2009; 15:55:43 | Drive Count | 3 |
| WebBIOS Ver | 2.2-16-Rel | ||
| Battery Backup | Present | Coercion Mode | 1GB-way |
| Set Factory Defaults | No | S.M.A.R.T. Polling | 300 secs |
| Cluster Mode | Disabled | Alarm Control | Enabled |
| Rebuild Rate | 30 | Patrol Read Rate | 30 |
| BGI Rate | 30 | Cache Flush Interval | 4 |
| CC Rate | 30 | Spinup Drive Count | 2 |
| Reconstruction Rate | 30 | Spinup Delay | 12 |
| Controller BIOS | Enabled | StopOnError | Enabled |
| NCQ | Enabled | Drive Powersave | Disabled |
| SSD Guard | Enabled | Schedule CC | Supported |
| Stop on CC error | No | ||
| Maintain PD Fail History | Enabled | ||
| Disaster Recovery | MySQL Backups Using ZRM |
| Upgrading OTRS |
wget ftp://ftp.samurai.com/pub/otrs/SRPMS/redhat/8.0/otrs-2.2.1-01.src.rpm rpmbuild --rebuild otrs-2.2.1-01.src.rpm rpm -Uvh /usr/src/redhat/RPMS/i386/otrs-2.2.1-01.i386.rpm cat /opt/otrs/scripts/DBUpdate-to-2.2.mysql.sql | mysql -p -f -u root otrs service mysqld restart /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs apache chown otrs:apache /opt/otrs/Kernel/Config.pm service otrs restart Log in as 'root@localhost' and select Admin -> SysConfig to make sure that OTRS updates the configuration files. |
| 10-05-31 Upgrade php to version 5.2 |
|
Reference: Installing php-5.2 on CentOS/RHEL Previously I had installed (doengraded) php V5.1.6 (see below). Now, we need to have php 5.2. cd /usr/local/src
mkdir php5.2
cd php5.2/
wget http://dev.centos.org/centos/5/testing/SRPMS/php-5.2.10-1.el5.centos.src.rpm
rpm -ivh php-5.2.10-1.el5.centos.src.rpm
cd /usr/src/redhat/SOURCES/
cp /usr/local/src/php5.2/php-5.2.13.tar.bz2 .
cd ../SPECS/
cp php.spec php524.spec
vim php.spec
yum groupinstall "Development Tools"
rpmbuild -ba php.spec
.....
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/php-5.2.13-1-root-root
Wrote: /usr/src/redhat/SRPMS/php-5.2.13-1.src.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-cli-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-common-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-devel-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-imap-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-ldap-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-pdo-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-mysql-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-pgsql-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-odbc-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-soap-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-snmp-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-xml-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-xmlrpc-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-mbstring-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-ncurses-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-gd-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-bcmath-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-dba-5.2.13-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/php-debuginfo-5.2.13-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.56458
....
cd /usr/local/src/php5.2
wget http://dev.centos.org/centos/5/testing/SRPMS/php-extras-5.2.9-2.el5.centos.3.src.rpm
rpm -ivh php-extras-5.2.9-2.el5.centos.3.src.rpm
[root@omega php5.2]# cd /usr/src/redhat/SPECS/
[root@omega SPECS]# cp php-extras.spec php-extras529.spec
[root@omega SPECS]# vim php-extras.spec
[root@omega SPECS]# cd ../SOURCES/
[root@omega SOURCES]# mv php-5.2.10.tar.bz2 php-5.2.10.tar.bz2.notused
[root@omega SOURCES]# mv php-5.2.9.tar.bz2 php-5.2.9.tar.bz2.notusecd
[root@omega SOURCES]# mv php-5.2.9.tar.bz2.notusecd php-5.2.9.tar.bz2.notused
[root@omega SOURCES]# cd ../SPECS/
[root@omega SPECS]# ll
total 112
-rw-r--r-- 1 root root 33949 May 31 15:17 php524.spec
-rw-r--r-- 1 root root 9862 May 31 15:51 php-extras529.spec
-rw-rw-r-- 1 root root 9862 Sep 10 2009 php-extras.spec
-rw-r--r-- 1 root root 33949 May 31 15:18 php.spec
[root@omega SPECS]# vim php-extras.spec
[root@omega SPECS]# rpmbuild -ba php-extras.spec
error: Failed build dependencies:
php-devel = 5.2.13 is needed by php-extras-5.2.13-1.x86_64
libedit-devel is needed by php-extras-5.2.13-1.x86_64
libmcrypt-devel is needed by php-extras-5.2.13-1.x86_64
mhash-devel is needed by php-extras-5.2.13-1.x86_64
libtidy-devel is needed by php-extras-5.2.13-1.x86_64
freetds-devel is needed by php-extras-5.2.13-1.x86_64
[root@omega SPECS]# yum install libedit-devel libmcrypt-devel mhash-devel libtidy-devel freetds-devel
[root@omega SPECS]# rpmbuild -ba php-extras.spec error: Failed build dependencies:
php-devel = 5.2.13 is needed by php-extras-5.2.13-1.x86_64
[root@omega SPECS]# cd /usr/src/redhat/RPMS/x86_64/
[root@omega x86_64]#
rpm -Uvh php-5.2.13-1.x86_64.rpm
php-bcmath-5.2.13-1.x86_64.rpm
php-cli-5.2.13-1.x86_64.rpm
php-common-5.2.13-1.x86_64.rpm
php-dba-5.2.13-1.x86_64.rpm
php-debuginfo-5.2.13-1.x86_64.rpm
php-devel-5.2.13-1.x86_64.rpm
php-gd-5.2.13-1.x86_64.rpm
php-imap-5.2.13-1.x86_64.rpm
php-ldap-5.2.13-1.x86_64.rpm
php-mbstring-5.2.13-1.x86_64.rpm
php-mysql-5.2.13-1.x86_64.rpm
php-ncurses-5.2.13-1.x86_64.rpm
php-odbc-5.2.13-1.x86_64.rpm
php-pdo-5.2.13-1.x86_64.rpm
php-pgsql-5.2.13-1.x86_64.rpm
php-snmp-5.2.13-1.x86_64.rpm
php-soap-5.2.13-1.x86_64.rpm
php-xml-5.2.13-1.x86_64.rpm
php-xmlrpc-5.2.13-1.x86_64.rpm
service httpd restart
cd ../../SPECS/
rpmbuild -ba php-extras.spec
At this point, I got failed tests on mhash:
FAILED TEST SUMMARY --------------------------------------------------------------------- mhash() test [tests/001.phpt] mhash_keygen_s2k() test [tests/003.phpt]so I found a different site for the php-extras rpm (that was at version 5.2.13) and tried again, this time I didn't even have to modify the spec file. reference page cd /usr/local/src/php5.2/ wget http://www.atoomnet.net/php/php-5.2.13/SRPMS/php-extras-5.2.13-1.src.rpm rpm -ivh php-extras-5.2.13-1.src.rpm cd /usr/src/redhat/SPECS/ rpmbuild -ba php-extras.spec .... Wrote: /usr/src/redhat/SRPMS/php-extras-5.2.13-1.src.rpm Wrote: /usr/src/redhat/RPMS/x86_64/php-dbase-5.2.13-1.x86_64.rpm Wrote: /usr/src/redhat/RPMS/x86_64/php-readline-5.2.13-1.x86_64.rpm Wrote: /usr/src/redhat/RPMS/x86_64/php-mcrypt-5.2.13-1.x86_64.rpm Wrote: /usr/src/redhat/RPMS/x86_64/php-mhash-5.2.13-1.x86_64.rpm Wrote: /usr/src/redhat/RPMS/x86_64/php-tidy-5.2.13-1.x86_64.rpm Wrote: /usr/src/redhat/RPMS/x86_64/php-mssql-5.2.13-1.x86_64.rpm Wrote: /usr/src/redhat/RPMS/x86_64/php-extras-debuginfo-5.2.13-1.x86_64.rpm .... [root@omega SPECS]# pwd /usr/src/redhat/SPECS [root@omega SPECS]# cd ../RPMS/x86_64/ [root@omega x86_64]# rpm -Uvh php-dbase-5.2.13-1.x86_64.rpm php-readline-5.2.13-1.x86_64.rpm php-mcrypt-5.2.13-1.x86_64.rpm php-mhash-5.2.13-1.x86_64.rpm php-tidy-5.2.13-1.x86_64.rpm php-mssql-5.2.13-1.x86_64.rpm Preparing... ########################################### [100%] file /usr/lib64/php/modules/dbase.so from install of php-dbase-5.2.13-1.x86_64 conflicts with file from package php-common-5.2.13-1.x86_64 [root@omega x86_64]# rpm -Uvh php-readline-5.2.13-1.x86_64.rpm php-mcrypt-5.2.13-1.x86_64.rpm php-mhash-5.2.13-1.x86_64.rpm php-tidy-5.2.13-1.x86_64.rpm php-mssql-5.2.13-1.x86_64.rpm Preparing... ########################################### [100%] 1:php-mssql ########################################### [ 20%] 2:php-readline ########################################### [ 40%] 3:php-mcrypt ########################################### [ 60%] 4:php-mhash ########################################### [ 80%] 5:php-tidy ########################################### [100%] [root@omega x86_64]# php -v PHP Warning: Module 'readline' already loaded in Unknown on line 0 PHP 5.2.13 (cli) (built: May 31 2010 16:18:06) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies |
| 10-05-28 Downgrade php to version <= 5.2 |
Previously I had installed php V5.3 (see below). Now, for the C21 website using Drupal 6.16 we need
to have php 5.2. Since it was easiest to downgrrade to php 5.1.6 I did that and will test to see if it
is OK or we need to now upgrade to php 5.2.
service httpd stop
rpm -e php-pdo-5.3.0-2.el5.remi.2
php-mysql-5.3.0-2.el5.remi.2
php-devel-5.3.0-2.el5.remi.2
php-xml-5.3.0-2.el5.remi.2
php-5.3.0-2.el5.remi.2
php-mbstring-5.3.0-2.el5.remi.2
php-pear-1.9.0-1.el5.remi
php-common-5.3.0-2.el5.remi.2
php-cli-5.3.0-2.el5.remi.2
php-ldap-5.3.0-2.el5.remi.2
php-odbc-5.3.0-2.el5.remi.2
php-gd-5.3.0-2.el5.remi.2
phpMyAdmin-3.2.2-1.el5.remi
php-mcrypt-5.3.0-2.el5.remi.2 (all on one line)
yum install php
yum install php-mysql php-pdo php-devel php-xml php-mbstring
php-pear php-ldap php-odbc php-gd php-mcrypt phpMyAdmin (all on one line)
# backup mysql dbases...
cd /var/lib
tar cf - ./mysql | (cd /opt/sysadmin; tar xfBp -)
service mysqld stop
rpm -e mysql-connector-odbc mysqlclient15 mysql-libs mysql-server
mod_auth_mysql mysql-devel mysql libdbi-dbd-mysql php-mysql
perl-DBD-MySQL MySQL-python phpMyAdmin maatkit (all on one line)
yum install mysql-connector-odbc mysqlclient15
mysql-libs mysql-server mod_auth_mysql mysql-devel mysql
libdbi-dbd-mysql php-mysql perl-DBD-MySQL MySQL-python
phpMyAdmin maatkit (all on one line)
service mysqld start
service httpd start
[root@omega lib]# php -v PHP 5.1.6 (cli) (built: Jan 14 2010 13:11:11) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies |
rpmbuild --rebuild --define "build_rhel5 1" --define "build_client_only 1" bacula-5.0.2-1.src.rpm rpm -Uvh /usr/src/redhat/RPMS/x86_64/bacula-client-5.0.2-1.x86_64.rpm /usr/src/redhat/RPMS/x86_64/bacula-libs-5.0.2-1.x86_64.rpm
[root@omega ~]# yum install mod_evasiveEdit /etc/httpd/conf.d/mod_evasive.conf to set email addr for reporting.
[root@omega src]# scp mail:/usr/src/redhat/RPMS/x86_64/bacula-client-3.0.1-1.x86_64.rpm . [root@omega src]# rpm -Uvh bacula-client-3.0.1-1.x86_64.rpm [root@omega src]# vi /etc/bacula/bacula-fd.conf
[root@omega fex-20091210]# ./install -p 8080 142.103.236.90 checking prerequisites found xinetd found /usr/lib/sendmail prerequisites checked, ok creating user fex Installing: bin -> /home/fex/bin bin/schwuppdiwupp.pl -> /home/fex/bin/schwuppdiwupp.pl bin/fex_cleanup -> /home/fex/bin/fex_cleanup bin/sexget -> /home/fex/bin/sexget bin/sexsend -> /home/fex/bin/sexsend bin/xx -> /home/fex/bin/xx bin/fexsend -> /home/fex/bin/fexsend bin/zz -> /home/fex/bin/zz bin/fexget -> /home/fex/bin/fexget bin/fac -> /home/fex/bin/fac bin/fexsrv -> /home/fex/bin/fexsrv bin/logwatch -> /home/fex/bin/logwatch cgi-bin -> /home/fex/cgi-bin cgi-bin/fur -> /home/fex/cgi-bin/fur cgi-bin/sex -> /home/fex/cgi-bin/sex cgi-bin/fix -> /home/fex/cgi-bin/fix cgi-bin/fup -> /home/fex/cgi-bin/fup cgi-bin/mma -> /home/fex/cgi-bin/mma cgi-bin/foc -> /home/fex/cgi-bin/foc cgi-bin/fop -> /home/fex/cgi-bin/fop cgi-bin/rup -> /home/fex/cgi-bin/rup cgi-bin/fuc -> /home/fex/cgi-bin/fuc lib -> /home/fex/lib lib/dop -> /home/fex/lib/dop lib/fex.ph -> /home/fex/lib/fex.ph lib/fup.pl -> /home/fex/lib/fup.pl lib/fex.pp -> /home/fex/lib/fex.pp etc -> /home/fex/etc etc/xinetd_fex -> /home/fex/etc/xinetd_fex etc/mime.types -> /home/fex/etc/mime.types htdocs -> /home/fex/htdocs htdocs/FAQ.html -> /home/fex/htdocs/FAQ.html
yum install memcached
yum install perl-Cache-Memcached
yum install php-pecl-memcache memcached-selinux
Loaded plugins: rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package memcached-selinux.x86_64 0:1.2.8-1.el5 set to be updated
---> Package php-pecl-memcache.x86_64 0:2.2.5-1.el5 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-pecl-memcache
--> Finished Dependency Resolution
php-pecl-memcache-2.2.5-1.el5.x86_64 from epel has depsolving problems
--> Missing Dependency: php-api = 20041225 is needed by package php-pecl-memcache-2.2.5-1.el5.x86_64 (epel)
Error: Missing Dependency: php-api = 20041225 is needed by package php-pecl-memcache-2.2.5-1.el5.x86_64 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
yum install yum-utils
| 09-09-23 Installed php 5.3 and updated MySQL |
Previously I had installed the epel repository as follows:
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm rpm -Uvh epel-release-5*.rpmNow install remi repository as follows: wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpmNext tried to upgrade php as follows: yum --enablerepo=remi update phpFailed with conficts from mysql-libs and mysql. So tried: yum --enablerepo=remi update mysqlGot many errors like: Transaction Check Error: file /etc/my.cnf from install of mysql-libs-5.1.39-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-3.el5.i386 file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.1.39-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-3.el5.i386So did the following: yum install t1lib cd /var/cache/yum/remi/packages rpm -Uvh --replacefiles *.rpm Preparing... ########################################### [100%] WARNING : This php-* RPM are not official Fedora build and overrides the official ones. Don't file bugs on Fedora Project. Use dedicated forums http://forums.famillecollet.com/ 1:php-common warning: /etc/php.ini created as /etc/php.ini.rpmnew ########################################### [ 6%] WARNING : This MySQL RPM is not an official Fedora build and it overrides the official one. Don't file bugs on Fedora Project. Use dedicated forums http://forums.famillecollet.com/ 2:mysql-libs ########################################### [ 12%] 3:mysqlclient15 ########################################### [ 18%] 4:mysql ########################################### [ 24%] 5:php-cli ########################################### [ 29%] 6:php ########################################### [ 35%] 7:sqlite2 ########################################### [ 41%] 8:php-pdo ########################################### [ 47%] 9:mysql-devel ########################################### [ 53%] 10:mysql-server ########################################### [ 59%] 11:php-devel ########################################### [ 65%] 12:php-gd ########################################### [ 71%] 13:php-ldap ########################################### [ 76%] 14:php-mbstring ########################################### [ 82%] 15:php-mcrypt ########################################### [ 88%] 16:php-mysql ########################################### [ 94%] 17:php-odbc ########################################### [100%] yum --enablerepo=remi install php-xml yum --enablerepo=remi update phpMyAdminphp-xml satisfys the "dom" extension requirement of magento. Everything appears to be OK so far - I have restarted MySQL and php now is at version 5.3.0. |
| 09-07-28 Installed MySQL-zrm - backup for MySQL dbases |
cd /usr/local/src yum install perl-XML-Parser wget http://www.zmanda.com/downloads/community/ZRM-MySQL/2.1/RPM/MySQL-zrm-2.1-1.noarch.rpm rpm -Uvh MySQL-zrm-2.1-1.noarch.rpm |
| 09-07-21 Installed maakit - A toolkit that provides advanced functionality for MySQL. |
cd /usr/local/src wget http://maatkit.googlecode.com/files/maatkit-4047-1.noarch.rpm yum install perl-TermReadKey rpm -Uvh maatkit-4047-1.noarch.rpm |
09-07-18 Installed RAID monitoring Software (
ServeRAID MR Support CD)
cd /usr/local/src mount -o loop ibm_sw_sraidmr_10.35_anyos_32-64.iso /mnt/iso yum install libXp yum install net-snmp cd /mnt/iso/MSM/Linux/ ./install.sh [root@omega Linux]# rpm -qa | grep -i mega MegaRAID_Storage_Manager-2.91-03 |
| YYY home |
- |
| ZZZ home |
- |
NOTES:
-
[root@omega]# cd /opt/sysadmin/IBM/UpdateXpress [root@omega UpdateXpress]# ./uxspi300.rhel5 & (1) Broadcom BNX2 RHEL5 Driver Name: Broadcom BNX2 RHEL5 Driver New Version: bnx2-1.8.2b Reboot: Reboot Required to take effect Status: Successfully Installed (2) IBM and LSI Basic or Integrated RAID SAS Controller Driver Name: IBM and LSI Basic or Integrated RAID SAS Controller Driver New Version: 4.16.80.01 Reboot: Reboot Required to take effect Status: Successfully InstalledInstalled phpMyAdmin
[root@omega ~]# rpm -Uv http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm Retrieving http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm warning: /var/tmp/rpm-xfer.pzvNVL: Header V3 DSA signature: NOKEY, key ID 217521f6 Preparing packages for installation... epel-release-5-3 [root@omega ~]# yum install phpMyAdmin Loaded plugins: rhnplugin, security epel | 2.1 kB 00:00 primary.sqlite.bz2 | 3.2 MB 00:01 Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package phpMyAdmin.noarch 0:2.11.9.5-1.el5 set to be updated --> Processing Dependency: php-mbstring >= 4.1.0 for package: phpMyAdmin --> Running transaction check ---> Package php-mbstring.x86_64 0:5.1.6-23.2.el5_3 set to be updated --> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-mbstring --> Running transaction check --> Processing Dependency: php-common = 5.1.6-23.el5 for package: php --> Processing Dependency: php-common = 5.1.6-23.el5 for package: php-cli --> Processing Dependency: php-common = 5.1.6-23.el5 for package: php-pdo --> Processing Dependency: php-common = 5.1.6-23.el5 for package: php-odbc --> Processing Dependency: php-common = 5.1.6-23.el5 for package: php-ldap --> Processing Dependency: php-common = 5.1.6-23.el5 for package: php-mysql ---> Package php-common.x86_64 0:5.1.6-23.2.el5_3 set to be updated --> Running transaction check ---> Package php-mysql.x86_64 0:5.1.6-23.2.el5_3 set to be updated ---> Package php-pdo.x86_64 0:5.1.6-23.2.el5_3 set to be updated ---> Package php-ldap.x86_64 0:5.1.6-23.2.el5_3 set to be updated ---> Package php.x86_64 0:5.1.6-23.2.el5_3 set to be updated ---> Package php-cli.x86_64 0:5.1.6-23.2.el5_3 set to be updated ---> Package php-odbc.x86_64 0:5.1.6-23.2.el5_3 set to be updated --> Finished Dependency Resolution Dependencies Resolved =========================================================================================================== Package Arch Version Repository Size =========================================================================================================== Installing: phpMyAdmin noarch 2.11.9.5-1.el5 epel 4.2 M Updating: php x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 1.2 M php-cli x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 2.2 M php-common x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 152 k php-ldap x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 37 k php-mysql x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 88 k php-odbc x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 53 k php-pdo x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 65 k Installing for dependencies: php-mbstring x86_64 5.1.6-23.2.el5_3 rhel-x86_64-server-5 1.0 M Transaction Summary =========================================================================================================== Install 2 Package(s) Update 7 Package(s) Remove 0 Package(s) Total download size: 8.9 M Is this ok [y/N]: y Downloading Packages: (1/9): php-ldap-5.1.6-23.2.el5_3.x86_64.rpm | 37 kB 00:00 (2/9): php-odbc-5.1.6-23.2.el5_3.x86_64.rpm | 53 kB 00:00 (3/9): php-pdo-5.1.6-23.2.el5_3.x86_64.rpm | 65 kB 00:00 (4/9): php-mysql-5.1.6-23.2.el5_3.x86_64.rpm | 88 kB 00:00 (5/9): php-common-5.1.6-23.2.el5_3.x86_64.rpm | 152 kB 00:00 (6/9): php-mbstring-5.1.6-23.2.el5_3.x86_64.rpm | 1.0 MB 00:01 (7/9): php-5.1.6-23.2.el5_3.x86_64.rpm | 1.2 MB 00:01 (8/9): php-cli-5.1.6-23.2.el5_3.x86_64.rpm | 2.2 MB 00:01 (9/9): phpMyAdmin-2.11.9.5-1.el5.noarch.rpm | 4.2 MB 00:00 ----------------------------------------------------------------------------------------------------------- Total 892 kB/s | 8.9 MB 00:10 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186 Importing GPG key 0x37017186 "Red Hat, Inc. (release key) <security@redhat.com>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Is this ok [y/N]: y warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6 Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : php-common [ 1/16] Updating : php-pdo [ 2/16] Updating : php-mysql [ 3/16] Installing : php-mbstring [ 4/16] Updating : php-cli [ 5/16] Updating : php [ 6/16] Installing : phpMyAdmin [ 7/16] Updating : php-ldap [ 8/16] Updating : php-odbc [ 9/16] Cleanup : php-common [10/16] Cleanup : php [11/16] Cleanup : php-ldap [12/16] Cleanup : php-pdo [13/16] Cleanup : php-mysql [14/16] Cleanup : php-cli [15/16] Cleanup : php-odbc [16/16] Installed: phpMyAdmin.noarch 0:2.11.9.5-1.el5 Dependency Installed: php-mbstring.x86_64 0:5.1.6-23.2.el5_3 Updated: php.x86_64 0:5.1.6-23.2.el5_3 php-cli.x86_64 0:5.1.6-23.2.el5_3 php-common.x86_64 0:5.1.6-23.2.el5_3 php-ldap.x86_64 0:5.1.6-23.2.el5_3 php-mysql.x86_64 0:5.1.6-23.2.el5_3 php-odbc.x86_64 0:5.1.6-23.2.el5_3 php-pdo.x86_64 0:5.1.6-23.2.el5_3 Complete!-
DISASTER RECOVERY
|
DISASTER RECOVERY
|
| MySQL Backups Using Zmanda (ZRM for MySQL Community Edition - version 1.2.1) |
|
The MySQL databases are backed up nightly (see crontab -l output below).
Configuration data is kept in files in /etc/mysql-zrm. Backups are kept in /home/backups/omega/var/lib/mysql-zrm Logs are kept in /var/log/mysql-zrm To run a backup immediately: mysql-zrm-scheduler --now --backup-set BackupSet01[02,03] To Schedule a (daily at 5am) backup: mysql-zrm-scheduler --add --interval daily --start 05:00 --backup-level 0 --backup-set BackupSet01 Verification that scheduler has been configured: mysql-zrm-scheduler --query Backup Reports: mysql-zrm-reporter --help (to see all options) mysql-zrm-reporter --destination /home/backups/omega/var/lib/mysql-zrm/ --where backup-set=daily --show backup-method-info mysql-zrm-reporter --destination /home/backups/omega/var/lib/mysql-zrm/ --where backup-set=daily --show backup-retention-info mysql-zrm-reporter --destination /home/backups/omega/var/lib/mysql-zrm/ --where backup-set=monthly --show backup-performance-info mysql-zrm-reporter --destination /home/backups/omega/var/lib/mysql-zrm/ --where backup-set=monthly --show restore-full-info mysql-zrm-reporter --destination /home/backups/omega/var/lib/mysql-zrm/ --where backup-set=daily --show restore-incr-infoRestoring Databases:
|
NOTE: RHEL 5's SELinux (Security Enhanced Linux) policy expects images to live in /var/lib/xen/images.
Setting up the Xen hypervisor and domain 0 is straightforward. The procedure goes like this:
rpm -ivh kernel-xen-2.6.18-53.el5.i686.rpm
rpm -ivh kernel-xen-devel-2.6.18-53.el5.i686.rpm
|
[root@xenhost ~]# uname -a
Linux xenhost 2.6.18-53.el5xen #1 SMP Wed Oct 10 17:06:12 EDT 2007 i686 i686 i386
GNU/Linux
|
Now that Xen is running, you need to install some tools to interact with it. In the RHEL 5.1 installation source, the Xen tools are in the /VT directory. The basic command-line tools are very powerful but not pretty, and the graphical tool is easy to use but not powerful. That's life! Anyway, let's go ahead and install both of them.
These are the dependent packages that you have to install first; get them from the /Server directory on the DVD or CDs:
Listing 3. Installing the dependent packages for Xen toolsrpm -ivh bridge-utils-1.1-2.i386.rpm rpm -ivh dnsmasq-2.39-2.el5.i386.rpm rpm -ivh gnome-python2-gnomekeyring-2.16.0-1.fc6.i386.rpm rpm -ivh xen-libs-3.0.3-41.el5.i386.rpm |
When installing the Xen tools packages, it seems to me that there is a circular dependency no matter what order I install them in, so I have to force the first package to install without dependency verification and then install the rest in this order:
Listing 4. Installing the Xen tools packagesrpm -ivh --nodeps libvirt-0.2.3-9.el5.i386.rpm rpm -ivh libvirt-devel-0.2.3-9.el5.i386.rpm rpm -ivh libvirt-python-0.2.3-9.el5.i386.rpm rpm -ivh python-virtinst-0.103.0-3.el5.noarch.rpm rpm -ivh xen-3.0.3-41.el5.i386.rpm rpm -ivh xen-devel-3.0.3-41.el5.i386.rpm rpm -ivh virt-manager-0.4.0-3.el5.i386.rpm rpm -ivh gnome-applet-vm-0.1.2-1.el5.i386.rpm rpm -ivh Virtualization-en-US-5.1.0-12.noarch.rpm |
Alright, let's kick some tires and try some commands now! But before you do that,
you have to start the xend daemon. All of the Xen management tools communicate
with the xend daemon to extract information. To start it, run
xend start as root. Normally the xend service is set to
start at system boot, so you don't have to do this every time.
Now you can run the command xm info to see some
information from the Xen hypervisor.
[root@xenhost ~]# xm info host : xenhost release : 2.6.18-53.el5xen version : #1 SMP Wed Oct 10 17:06:12 EDT 2007 machine : i686 nr_cpus : 4 nr_nodes : 1 sockets_per_node : 2 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 2992 hw_caps : bfebfbff:20100000:00000000:00000140:0004e3bd:00000000:00000001 total_memory : 4095 free_memory : 20 xen_major : 3 xen_minor : 1 xen_extra : .0-53.el5 xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p xen_pagesize : 4096 platform_params : virt_start=0xf5800000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14) cc_compile_by : brewbuilder cc_compile_domain : build.redhat.com cc_compile_date : Wed Oct 10 16:30:55 EDT 2007 xend_config_format : 2 |
Then you can run the command xm list to see the
running virtual machines. Naturally at this point, you'll only see the domain 0
running. You can use xentop for this as well.
[root@xenhost ~]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 2928 4 r----- 61790.3 |
If those two commands run successfully, then you can be assured that your Xen environment is configured properly. If the commands can't connect to the xend daemon, try to reboot the machine. Alternatively, you can look at the Xen logs in the /var/log/xen directory.
If you prefer a graphical tool, log on to a Gnome session, and then go to the menu Applications > System Tools > Virtual Machine Manager. You should see the status of your virtual machines as in Figure 4.
Figure 4. Virtual Machine Manager main panel
Installing the multipath driver
Now that the Xen environment is up and running, it's time to install the drivers to access the SAN storage. The first thing to install is the HBA adapter driver, which is the QLogic driver in my case. Download the QLogic driver installation package from the vendor's Web site and install it according to its documentation. You must turn off the default failover option afterward by adding an option in /etc/modprobe.conf as follows:
options qla2xxx ql2xfailover=0
|
| webmaster@phas.ubc.ca | [Dept. Home Page] | last updated: 07/08/22 |