maintenance instructions

From Nanuna internal
Jump to: navigation, search

Contents

Local CMDB instance at the ARM NSA C1 facility in Barrow

Configuration

The Barrow server is called cmdb-nsac1, IP address 192.1487.94.234.

Initial configuration

Initial state:

 
[cmdbu@cmdb-nsac1 ~]$ uname -a
Linux cmdb-nsac1.nsa.arm.gov 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[cmdbu@cmdb-nsac1 ~]$ tail /etc/redhat-release
CentOS release 5.7 (Final)
[cmdbu@cmdb-nsac1 ~]$ su -
Password: 
[root@cmdb-nsac1 ~]# yum repolist
arm                                                                                                                  |  951 B     00:00     
base                                                                                                                 | 1.1 kB     00:00     
epel                                                                                                                 | 3.7 kB     00:00     
extras                                                                                                               | 2.1 kB     00:00     
updates                                                                                                              | 1.9 kB     00:00     
vmware                                                                                                               |  951 B     00:00     
Excluding Packages in global exclude list
Finished
repo id                                        repo name                                                                             status
arm                                            CentOS-5 - ARM Packages                                                                    16
base                                           CentOS-5 - Base                                                                       3,557+9
epel                                           Extra Packages for Enterprise Linux 5 - x86_64                                          6,741
extras                                         CentOS-5 - Extras                                                                         235
updates                                        CentOS-5 - Updates                                                                     295+16
vmware                                         CentOS-5 - VMware Packages                                                                 10
repolist: 10,854

Installation:

 
yum install wget
yum install sudo
yum install mysql-server
yum install mysql-devel

Added user cmdbu to group wheel and enabled sudo for wheel (via /usr/sbin/visudo).

Uploaded additional Python packages (in particular Django 1.3.1 tarball) to ~cmdbu/tmp/.

For further information, see the general CM Reporting Tool Installation Guide.

Update May 2013

Updated Django to 1.4.5 after uploading the tarball from local computer (with site access) to ~cmdbu/tmp:

 
[cmdbu@cmdb-nsac1 ~]$ sudo easy_install-2.6 Django-1.4.5.tar.gz 

Management

Running Apache

For Apache management, use /sbin/service, for example:

 
[cmdbu@cmdb-nsac1 ~]$ sudo /sbin/service mysqld restart

... and similar for stopping and starting.

Running MySQL

For MySQL management, use /sbin/service:

 
[cmdbu@cmdb-nsac1 ~]$ sudo /sbin/service mysqld start
[cmdbu@cmdb-nsac1 ~]$ ps aux |grep mysql | grep -v grep
root     16362  0.0  0.0  65948  1264 pts/0    S    02:14   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --user=mysql
mysql    16412  0.0  1.1 178712 24648 pts/0    Sl   02:14   0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock

... and similar for stop, restart, status.

Personal tools