Difference between revisions of "Chg-ewx"

From CHG-Wiki
Jump to navigationJump to search
(Added python considerations.)
 
(12 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
{| 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 26: Line 26:
 
===Network===
 
===Network===
 
*MAC Address: 52:54:00:4F:36:A7 (generated)
 
*MAC Address: 52:54:00:4F:36:A7 (generated)
 +
**ifcfg-eth0 shows MAC as C6:F6:A8:B1:8B:9F
  
 
===Storage===
 
===Storage===
Line 33: Line 34:
 
==Services==
 
==Services==
 
VM for hosting new [[EWX]].
 
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==
 
==Notes==
*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
+
*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==
Line 46: Line 72:
 
State:          running
 
State:          running
 
CPU(s):        6
 
CPU(s):        6
CPU time:      169392.8s
+
CPU time:      848159.1s
 
Max memory:    134217728 KiB
 
Max memory:    134217728 KiB
 
Used memory:    134217728 KiB
 
Used memory:    134217728 KiB
Line 54: Line 80:
 
Security model: selinux
 
Security model: selinux
 
Security DOI:  0
 
Security DOI:  0
Security label: system_u:system_r:svirt_t:s0:c16,c27 (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 15: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)