Adding an additional local storage to an existing XENServer
Add the new physical device “/dev/sdb” as second local storage to an existing Citrix XENServer installation:
(Note: I use XENServer 5.6)
xe sr-create content-type="local SR" host-uuid=(uuid of your xenserver host) type=(ext or lvm) device-config:device=/dev/sdb shared=false name-label="Second local storage"
The command returns the UUID of your new storage repository (SR).
Example:
xe sr-create content-type="local SR" host-uuid=d06d7c86-08af-4f87-9188-bd287daac20b type=lvm device-config:device=/dev/sdb shared=false name-label="Second local storage" 6b9fe5d2-bf6c-d776-dfb0-743f5b1f397c
If you want to set the new SR to the new default SR:
xe pool-param-set default-SR=[YOUR NEW SR UUID] uuid=(uuid of your xenserver host)
Notes: You can use “pvdisplay” to lists all physical volumes.
[root@xen2 ~]# pvdisplay --- Physical volume --- PV Name /dev/sdb VG Name VG_XenStorage-6b9fe5d2-bf6c-d776-dfb0-743f5b1f397c PV Size 596.17 GB / not usable 7.79 MB Allocatable yes PE Size (KByte) 4096 Total PE 152617 Free PE 150561 Allocated PE 2056 PV UUID jKstcw-WSWy-EOWn-NUlq-fdM6-SwEC-eHwJSL --- Physical volume --- PV Name /dev/sda3 VG Name VG_XenStorage-714f456f-7b1e-da9d-9022-153ebaec6cdc PV Size 588.17 GB / not usable 6.31 MB Allocatable yes PE Size (KByte) 4096 Total PE 150568 Free PE 145772 Allocated PE 4796 PV UUID U0Docl-IzMr-L7s0-nGCA-hTyQ-sHdk-2lVtJ2Comments: 0 | Read Comments | Write a Comment |
How to Use VNC to access VMware Servers
Edit the “.vmx” file of your virtual machine and add this lines:
RemoteDisplay.vnc.enabled = "TRUE" RemoteDisplay.vnc.port = "5900" RemoteDisplay.vnc.password = "YOUR_PASSWORD"
Note: Use a different port for each virtual machine.
Links:
* http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1246
Comments: 0 | Read Comments | Write a Comment |Firmware Update HP Procurve
1. Download firmware
Download the latest firmware from http://www.hp.com/rnd/software/switches.htm
2. TFTP Server
Extract the downloaded file and use a TFTP Server http://www.mogilowski.net/lang/de-de/2010/10/25/setting-up-tftp-server-on-ubuntu
Example:
mv 2800-Software-I1077/I_* /srv/tftp/
3. Install new firmware
Create a telnet connection to the switch:
telnet SWITCH_IP
and copy the firmware to the switch:
copy tftp flash TFTP_SERVER_IP I_10_77.swi
Restart the switch with the new firmware with:
boot
Note: Replace “TFTP_SERVER_IP” with the IP of your TFTP server, “SWITCH_IP” with the IP of your switch and “I_10_77.swi” with your firmware version.
4. Test
Check if the new firmware is installed:
show version
5. Old versions
If your switch running a frimware lower than “I.07.68″ you frist have to patch with “I_07_68.swi”. After this update you can install “I_10_77.swi”. Both files are in the downloaded archive.
Comments: 0 | Read Comments | Write a Comment |Factory reset HP Procurve
1. Serial console
Connect your PC to the switch via serial console. Use “GtkTerm” for example on Ubuntu.
2. Reset the switch
Push “Reset” AND “Clear” on the front of the switch.
Release “Reset” Button.
If the “Test” LED blinks release the “Clear” button and wait.
2. Save the new configuration
After the switch rebooted type
setup
in the serial terminal. After saving your settings do
write memory reload
Now the new settings are active and saved permanently.
Comments: 0 | Read Comments | Write a Comment |Setting up TFTP server on Ubuntu
Install a TFTP-Server on Ubuntu
1. Installation
sudo aptitude install atftpd
2. Configuration
sudo /etc/init.d/atftpd start
3. Files
Put all files for the TFTP server in the following directory:
/srv/tftp/Comments: 1 | Read Comments | Write a Comment |
VMware Server 2, Proxysvc SSL Handshake problems
Get this server in /var/log/vmware/hostd.log if you want to connect to your VMWare Server ?
Proxysvc SSL Handshake on client connection failed: SSL Exception
Open about:config in Firefox and change
security.enable.ssl2 from false into true
In some cases you have to kill the vmware-hostd process and restart the management deamon:
/etc/init.d/vmware-mgmt restart
Links
* http://planetvm.net/blog/?p=1087
* http://communities.vmware.com/thread/240209?tstart=0
Extract images from .vob (photo cd) with Ubuntu or Debian
If you want to extract some images from a photo cd or dvd you can use transcode.
Installation
aptitude install transcode
Extract the images
transcode -x mpeg2 -i VTS_01_1.VOB -y im -F jpg -w 100
The parameters:
-F: picture format (jpg, gif, png) -w: quality for jpeg and compression-level
Links
* http://dvd-slideshow.sourceforge.net/wiki/FAQ_Extract_Images_From_Vob
Comments: 0 | Read Comments | Write a Comment |Monitoring the Nagios process with monit
Monitoring the Nagios process with monit
Howto to install monit on Debian or Ubuntu to monitor the nagios process.
Installation
aptitude install monit
Configuration
Edit the monit configuration file /etc/monit/monitrc and make the following changes:
Generall settings
set daemon 120
set logfile syslog facility log_daemon
set mailserver localhost
set mail-format { from: monit@myserver.de }
set alert admin@myserver.de
Check the nagios process
check process nagios3 with pidfile /var/run/nagios3/nagios3.pid
start program = "/etc/init.d/nagios3 start"
stop program = "/etc/init.d/nagios3 stop"
if 3 restarts within 3 cycles then timeout
If nagios is not running, monit tries to start it 3 times. And send you an e-mail
Note: If you use Centreon the pid file is /var/lib/nagios3/nagios.lock . You have to replace it in the monit configuration file or change the “Lock File” value in your centreon configuration.
Change the following value in /etc/default/monit to:
startup=1
Start monit
/etc/init.d/monit start
Links
* M/Monit
* Monitor Debian servers with monit
* Nagios
* Centreon
Comments: 1 | Read Comments | Write a Comment |System Administrator Appreciation Day !!!!!
Happy Sysadmin Day !!!

Adobe Coldfusion 9 – Debian 5.0 Lenny – Ubuntu 9.10 or 10.04
Install Apache2 webserver:
aptitude install apache2
Install required libraries:
aptitude install libstdc++5
Install coldfusion:
Download the coldfusion installation paket (Linux bin-file) from www.adobe.com. You can use the Trial Edition and upgrade later to the full version by enter the serial number in the administration webinterface
Make the downloaded file executeable and run the installer:
chmod +x ColdFusion_9_WWE_linux64.bin ./ColdFusion_9_WWE_linux64.bin
Answer the following questions:
PRESS TO CONTINUE: DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): Y
Install Type
------------
If you do not have a serial number, select either 30-day trial or Developer
Edition.
->1- Install new version of Adobe ColdFusion 9 with a serial number
2- 30-day trial
3- Developer Edition
Installation Choice: 2
Installer Configuration
-----------------------
What kind of installation do you want?
->1- Server configuration
2- Enterprise Multiserver configuration
3- J2EE configuration (EAR file)
4- J2EE configuration (WAR file)
Choose one of the following options:: 1
Is Adobe ColdFusion 9 (Server Configuration) Installed?
-------------------------------------------------------
You cannot install the server configuration of Adobe ColdFusion 9 if it is already installed on this computer.
Is there already a server configuration of Adobe ColdFusion 9 installed?
1- Yes
->2- No
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS TO ACCEPT THE DEFAULT:: 2
Subcomponent installation
-------------------------
The following options are available for installation.
An option marked with "[X]" in front will be installed and an option with "[ ]"
will not. Choosing an option will toggle it on or off
[X] 1) ColdFusion 9 Documentation
[X] 2) ColdFusion 9 Solr Services
[X] 3) ColdFusion 9 Search Services
[X] 4) Start ColdFusion on system init
5) Continue with installation
Select an option: 5
Choose Install Folder
---------------------
Select the directory where you want to install Adobe ColdFusion 9.
Directory:
Default Install Folder: /opt/coldfusion9
ENTER AN ABSOLUTE PATH, OR PRESS TO ACCEPT THE DEFAULT
: /opt/coldfusion
INSTALL FOLDER IS: /opt/coldfusion
IS THIS CORRECT? (Y/N): Y
Earlier Versions of Adobe ColdFusion installed?
-----------------------------------------------
If you installed an earlier version of ColdFusion on this computer, you can migrate your settings to Adobe ColdFusion 9.
Is there an earlier version of ColdFusion installed on this computer (for example, ColdFusion 6 or ColdFusion MX 7)?
1- Yes
->2- No
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS TO ACCEPT THE DEFAULT:: 2
Configure Web Servers
---------------------
Please configure your web server(s). If you do not configure a web server the
built-in web server will be used on port 8500 or the next available port.
1- Add Web Server Configuration
->2- Continue with installation
Choice: 1
****************************************************
->1- Apache
2- Sun ONE Web Server (iPlanet)
3- Cancel
What kind of web server are you configuring: 1
What directory contains your Apache configuration file (httpd.conf)? (For
example, on Red Hat Linux it could be located in the /etc/httpd/conf
directory if you installed from an rpm, or for SuSe Linux, it could be in
/etc/apache2)
Directory: /etc/apache2
****************************************************
Where is the Apache program binary file? (For example, on Red Hat Linux it
could be /usr/sbin/httpd if you installed from an rpm, or for SuSE Linux it
could be located at /usr/sbin/httpd2) If you have more than one instance of
Apache on your computer, enter the binary file location for the Apache web
server that will use ColdFusion. (Note: this is not the Apache start and
stop script.)
File: /usr/sbin/apache2
****************************************************
Where is the control file that you use to start and stop the Apache web
server? (For example, this could be /etc/init.d/httpd on Red Hat Linux if
you installed from an rpm, /usr/sbin/apache2ctl on SuSe Linux, or it could
be /usr/local/apache/bin/apachectl on hand-compiled versions.)
File: /etc/init.d/apache2
****************************************************
Please configure your web server(s). If you do not configure a web server the
built-in web server will be used on port 8500 or the next available port.
1- Add Web Server Configuration
2- Remove Web Server Configuration
3- Edit:Apache : /etc/apache2
->4- Continue with installation
Choice: 4
Choose Adobe ColdFusion 9 Administrator Location ------------------------------------------------ Select the location of the web root for Adobe ColdFusion 9. This is where the installer places the Adobe ColdFusion 9 Administrator. This directory must be the web root for one of the websites to be configured for use with Adobe ColdFusion 9. Directory: (DEFAULT: /etc/htdocs): /var/www
Runtime User ------------ Enter the name of the runtime user. This user must already exist on the system. User Name: (DEFAULT: nobody):
Configure ColdFusion with OpenOffice
------------------------------------
Configuring OpenOffice installation with ColdFusion will enable Office documents to be processing using OpenOffice. If OpenOffice is not configured ColdFusion will not be able to convert some Microsoft Office Documents to PDF. Check the documentation for more details.
1- Configure ColdFusion with local Openoffice installation
->2- Skip
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS TO ACCEPT THE DEFAULT:: 2
Administrator Password ---------------------- Enter the password that you will use to restrict access to the ColdFusion Administrator. This field is required. Password: Confirm Password:
Enable RDS ---------- The ColdFusion Remote Development Service (RDS) lets developers using Adobe tools remotely connect to this server for development purposes. RDS is required for Line Debugging, Report Builder, and Dreamweaver Extensions. If this is a production server, Adobe recommends that you disable RDS. Note, however, that disabling RDS also disables debugging, the directory browsing applets in the ColdFusion Administrator and some of the functionality in the Report Builder. Enable RDS (Y/N): Y Password: Confirm Password:
Installation Confirmation ------------------------- Installation Type: Server configuration Licensing: 30-day trial Installation Directories: Product: /opt/coldfusion Web root: /var/www Server Information: Web Server: Apache (/etc/apache2) Port: Search Services: installed ColdFusion Solr Search Services: installed Documentation: installed RDS: enabled Disk Space Information (for Installation Target): Required: 992,437,542 bytes Available: 4,799,873,024 bytes PRESS TO CONTINUE:
Installing... ------------- [==================|==================|==================|==================] [------------------|------------------|------------------|------------------] =============================================================================== Installation Complete --------------------- You have successfully completed the first step in installing Adobe ColdFusion 9. To continue with your installation, go to /opt/coldfusion/bin and type "./coldfusion start" to start your server. Once the server, is started log in to the Configuration Wizard at http://[machinename]/CFIDE/administrator/index.cfm Press Enter to exit the installer:
Start coldfusion:
/opt/coldfusion/bin/coldfusion start
Coldfusion now install the connector for the Apache2 webserver (/etc/apache2/httpd.conf). This connector forwards the scripts to the coldfusion server.
Start coldfusion on system start:
cp /opt/coldfusion/bin/coldfusion /etc/init.d update-rc.d coldfusion defaults
Finish installation:
To finish the installation, open the coldfusion administrator with your browser.
http://SERVERNAME/CFIDE/administrator/index.cfm

Note:
You can use this howto to install Adobe Coldfusion 8, too. All installation steps are the same.
Comments: 8 | Read Comments | Write a Comment |



