Difference between revisions of "Chg-ewx"

From CHG-Wiki
Jump to navigationJump to search
m
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[chg-ewx]] is a Windows Server 2008 R2 VM created for Greg Ederer to test new [[EWX]] configurations.
+
[[chg-ewx]] is a CentOS 6.5 VM created to host the new [[EWX]]. Previously the VM was installed as a Windows Server 2008 R2 VM, but was switched to Unix due to security issues.
  
 
==General Info==
 
==General Info==
 
{| class="wikitable"
 
{| class="wikitable"
 
! System Name:  
 
! System Name:  
|align="right"|chg-ewx.geog.ucsb.edu
+
|align="right"|chg-ewx.chg.ucsb.edu
 
|-
 
|-
 
! IP:  
 
! IP:  
|align="right"|128.111.234.190
+
|align="right"|128.111.236.142 <!--used to be 234.190-->
 
|-
 
|-
 
! Location:  
 
! Location:  
Line 16: Line 16:
 
|-
 
|-
 
! Creation Date:  
 
! Creation Date:  
|align="right"| September 16, 2014
+
|align="right"| December 14, 2014
 
|}
 
|}
  
 
==System Configuration==
 
==System Configuration==
*OS Type: Windows
+
*OS Type: Unix
*OS Version: Windows Server 2008 R2 sp1
+
*OS Version: CentOS 6.5
*vCPUS: 20 allocated
+
*vCPUS: 6 allocated
  
 
===Network===
 
===Network===
*MAC Address: c6:f6:a8:b1:8b:9f (generated)
+
*MAC Address: 52:54:00:4F:36:A7 (generated)
 +
**ifcfg-eth0 shows MAC as C6:F6:A8:B1:8B:9F
  
 
===Storage===
 
===Storage===
*Memory: 256GB allocated
+
*Memory: 128GB allocated
*Size: 50GB allocated
+
*Size: 100GB allocated
  
 
==Services==
 
==Services==
Development VM for new [[EWX]] configurations.
+
VM for hosting new [[EWX]].
 +
 
 +
=== Restarting the EWX WebApp ===
 +
In the event of a reboot, restart EWX via two files (as ewx)
 +
/opt/tomcat/bin/catalina.sh start #Verbose, can be halted - startup.sh in the same directory also works
 +
#use ewx's alias to take you to the correct geoengine directory
 +
geoe
 +
#Geoengine needs to be run a bit after catalina.sh
 +
startup.sh
 +
 
 +
==Notes==
 +
*Domain changed from geog.ucsb.edu to chg.ucsb.edu as of November 23rd, 2015 (can also be reached via [http://ewx.chg.ucsb.edu:8080/EWX ewx.chg.ucsb.edu]).
 +
*System should be fully gNIS integrated.
 +
*Created symbolic link in /usr/local/bin to point from python2.7 to python to address a script not running. Marty altered the files /etc/init.d/tomcat, /opt/tomcat/bin/startup.sh, and /opt/tomcat/bin/catalina.sh [[User:Libby|Libby]] 16:24, 24 February 2015 (PST)
 +
*For some reason, the ntpd service was stopped or not set up to start at startup, so hwclock and date were not sync. Should be resolved now. [[User:Libby|Libby]] 12:14, 25 February 2015 (PST)
 +
**ntpd service somehow got turned off again and 'date' was an hour off [[User:Libby|Libby]] 12:28, 7 May 2015 (PDT)
 +
[root@chg-ewx ~]# service ntpd status
 +
ntpd dead but pid file exists
 +
To restart the service:
 +
[root@chg-ewx ~]# service ntpd restart
 +
Shutting down ntpd:                                        [FAILED]
 +
Starting ntpd:                                            [  OK  ]
 +
It may say that shutting down failed (if pid is still floating around out there) but you can check to see if it's running and that the clock is back to syncing with the following:
 +
[root@chg-ewx ~]# service ntpd status
 +
ntpd (pid  15430) is running...
 +
[root@chg-ewx ~]# hwclock
 +
Thu 07 May 2015 01:20:06 PM PDT  -0.102682 seconds
 +
[root@chg-ewx ~]# date
 +
Thu May  7 13:20:17 PDT 2015
  
 
==virsh dominfo==
 
==virsh dominfo==
 
<pre>
 
<pre>
[root@ubu iso]# virsh dominfo chg-ewx
+
[root@ubu ~]# virsh dominfo chg-ewx
Id:            4
+
Id:            1
 
Name:          chg-ewx
 
Name:          chg-ewx
UUID:          5ff7fb7d-11d1-2ed1-ec04-edf7d1daed04
+
UUID:          dbf3a784-a35b-1fab-7fb0-003ee0b1eb97
 
OS Type:        hvm
 
OS Type:        hvm
 
State:          running
 
State:          running
CPU(s):        20
+
CPU(s):        6
CPU time:      14269.3s
+
CPU time:      848159.1s
Max memory:    268435456 KiB
+
Max memory:    134217728 KiB
Used memory:    268435456 KiB
+
Used memory:    134217728 KiB
 
Persistent:    yes
 
Persistent:    yes
 
Autostart:      enable
 
Autostart:      enable
Line 51: Line 80:
 
Security model: selinux
 
Security model: selinux
 
Security DOI:  0
 
Security DOI:  0
Security label: system_u:system_r:svirt_t:s0:c72,c583 (enforcing)
+
Security label: system_u:system_r:svirt_t:s0:c452,c545 (enforcing)
 
</pre>
 
</pre>
  
 
[[Category:Hosts|{{PAGENAME}}]]
 
[[Category:Hosts|{{PAGENAME}}]]
 +
[[Category:VMs|{{PAGENAME}}]]

Latest revision as of 14:23, 9 April 2018

chg-ewx is a CentOS 6.5 VM created to host the new EWX. Previously the VM was installed as a Windows Server 2008 R2 VM, but was switched to Unix due to security issues.

General Info

System Name: chg-ewx.chg.ucsb.edu
IP: 128.111.236.142
Location: ubu
General Purpose: EWX development VM
Creation Date: December 14, 2014

System Configuration

  • OS Type: Unix
  • OS Version: CentOS 6.5
  • vCPUS: 6 allocated

Network

  • MAC Address: 52:54:00:4F:36:A7 (generated)
    • ifcfg-eth0 shows MAC as C6:F6:A8:B1:8B:9F

Storage

  • Memory: 128GB allocated
  • Size: 100GB allocated

Services

VM for hosting new EWX.

Restarting the EWX WebApp

In the event of a reboot, restart EWX via two files (as ewx)

/opt/tomcat/bin/catalina.sh start #Verbose, can be halted - startup.sh in the same directory also works
#use ewx's alias to take you to the correct geoengine directory
geoe 
#Geoengine needs to be run a bit after catalina.sh
startup.sh

Notes

  • Domain changed from geog.ucsb.edu to chg.ucsb.edu as of November 23rd, 2015 (can also be reached via ewx.chg.ucsb.edu).
  • System should be fully gNIS integrated.
  • Created symbolic link in /usr/local/bin to point from python2.7 to python to address a script not running. Marty altered the files /etc/init.d/tomcat, /opt/tomcat/bin/startup.sh, and /opt/tomcat/bin/catalina.sh Libby 16:24, 24 February 2015 (PST)
  • For some reason, the ntpd service was stopped or not set up to start at startup, so hwclock and date were not sync. Should be resolved now. Libby 12:14, 25 February 2015 (PST)
    • ntpd service somehow got turned off again and 'date' was an hour off Libby 12:28, 7 May 2015 (PDT)
[root@chg-ewx ~]# service ntpd status
ntpd dead but pid file exists

To restart the service:

[root@chg-ewx ~]# service ntpd restart
Shutting down ntpd:                                        [FAILED]
Starting ntpd:                                             [  OK  ]

It may say that shutting down failed (if pid is still floating around out there) but you can check to see if it's running and that the clock is back to syncing with the following:

[root@chg-ewx ~]# service ntpd status
ntpd (pid  15430) is running...
[root@chg-ewx ~]# hwclock
Thu 07 May 2015 01:20:06 PM PDT  -0.102682 seconds
[root@chg-ewx ~]# date
Thu May  7 13:20:17 PDT 2015

virsh dominfo

[root@ubu ~]# virsh dominfo chg-ewx
Id:             1
Name:           chg-ewx
UUID:           dbf3a784-a35b-1fab-7fb0-003ee0b1eb97
OS Type:        hvm
State:          running
CPU(s):         6
CPU time:       848159.1s
Max memory:     134217728 KiB
Used memory:    134217728 KiB
Persistent:     yes
Autostart:      enable
Managed save:   no
Security model: selinux
Security DOI:   0
Security label: system_u:system_r:svirt_t:s0:c452,c545 (enforcing)