- It's been around for longer than the other players (you don't want your backup provider to go out of business).
- Phone support (when trouble hits it's always nice to be able to call someone...)
- Price was right for my needs (50 US$/year for one computer and 150 GB storage)
- Online browse and restore of files
- Continuous backup and file versioning
- Sufficient security
- Status reports via email
Saturday, December 11, 2010
Online backup for personal computer
Tuesday, November 23, 2010
Installing a web server on an Amazon AWS free VM
Apt-get is not installed on this Micro Instance VM. So at first I tried to do a manual install of Apache by simply uploading the .tar.gz files to the VM via WinSCP and tried to run the .configure file. This didn't work as a C compiler was not installed on the system. I went on to look for GCC and got that installed and then I could install Apache. For some reason it didn't quite work, though. And also it's mayby a little too much work to get a web server up and running...
Then I stumbled upon the Yum command which is similar to Apt-get and which is actually pre-installed in the VM and is working out of the box.
With Yum, installation is a breeze. Issue the following commands:
#sudo yum install httpd
#sudo chkconfig httpd on
#sudo /etc/init.d/httpd start
The sudo command will not prompt you for a password but will let you execute commands as root. You can't su -root... (alternatively, you can try sudo -i to get a root shell)
If it complains about a missing C compiler, then install it this way:
#sudo yum install gcc
The web server installs its .conf file in /etc/httpd/conf/httpd.conf. There's is the usual test page displayed until you place an index.html file in the /var/www/html folder.
Free linux cloud VM with Amazon Web Services (AWS)
So I decided to give it a try.
First, you need to create an AWS account (there's a link on the front page..). They need a valid creditcard for that. Then you log into the AWS Management Console. This requires you to register again. They had implemented a rather odd security feature where they call your mobile phone and you have to punch in a pin-number to confirm. I must admit that, for testing purposes, this wasn't the most smooth registration process.
Once into the AWS Management Console you're presented with a number of tabs. The first one is Amazon S3 which is an online file placeholder (i guess like an FTP server). To create your VM, go to the Amazon EC2 tab and click on Launch Instance (see below). This process is fairly simple. It is not quite easy, though, to see exactly which one is the free edition, but I just chose the minimum specs available to be on the safe side. And look for something like linux and Micro Instance.
Firewall rules are easy to configure via the web interface. You can add some pre-defined ports such as mail, web, etc. Port 22 is enabled by default.
A KPI keyset is generated (for authentication purposes) and you can download the .pem file to your local harddrive. They give an example of howto login via ssh from a console and use the generated key. Example:
ssh -i keyname.pem root@vmname.eu-west-1.compute.amazonaws.com
If you use this command will receive a login error as root cannot login directly. So just change 'root' in front of the @ with the, in the error message, suggested 'ec2-user'.
Once logged in you can execute commands as root with the 'sudo' command. It will not prompt for a password. Or alternatively use sudo -i to get a root console. But you can't su - root.
If you want to use Putty to acces the VM directly, then you have to convert the .pem file to a .ppk file. This is easily done using this guide.
To use the .ppk file, open Putty and go to SSH -> Auth and browse to the directory where you stored the file. And then you connect to the VM (saving the profile will save you some time at next login..). There's no password.
The same .ppk file can also be used for WinSCP which is handy for uploading files directly to the VM.
As you have a public DNS name, this can be used to create an eiasier to remember C-name DNS that you can point to the generated machine name.
So far so good. Now there's access via SSH. Then I tried to configure a simple web server. I'll describe that in the next post.
Wednesday, November 17, 2010
vMotion between firewalls
Wednesday, October 13, 2010
Hands-on labs - that I did...
Tuesday, October 12, 2010
VMworld 2010 - Hands-on labs, first impressions
So far, I have taken four labs, and I must admit that I'm impressed. It works so well that you're not even thinking about what is going on under the hood. What you're actually experiencing is that as soon as you're choosing a lab, then almost instantly you have two ESX servers and a number of VMs provisioned for you. A VMware employee told me that part of the custom code is calculating the most popular labs, and then pre-deploying a number of these up front as to reduce waiting time.
Furthermore, the whole user experience is pretty cool. They've made a GUI for choosing the labs, and on flatscreens around in the room you can see statistics such as most popular labs and total number of VMs created and labs completed (see pictures below).
Tuesday, September 28, 2010
Restart of ESX management agents
Friday, September 24, 2010
Console-setup - service console tool for network config in ESX4
Tuesday, August 3, 2010
What does ESX stand for?
Thursday, July 8, 2010
Disaster recovery: Procedure in case of site failure
1. | Log into vCenter and verify whether or not storage is available for the cluster. If storage is unavailable, create an incident ticket for the storage group with priority urgent and with a request to: “Manually break the mirror for the “"Customer X" replicated storage group” used by ESXA and ESXB” The ticket should be followed by a phone call to the storage day/night duty to notify of the situation. | |
2. | When mirror has been broken, rescan remaining hosts in the cluster. This rescan can possibly time out. If this happens, reboot the hosts. After the rescan/reboot all shared LUNs will be missing on the hosts. These should be added/mounted manually from the console (step 3) (in ESX4u1 there's a bug in the add "storage" wizzard, so it doesn't work from the vSphere client, see this post for more info) | |
3. | Putty to each of the hosts and run the following commands: #esxcfg-volume –l This will list available volumes. For each volume, run the following command: #esxcfg-volume –M For example: #esxcfg-volume –M PSAM_REPL_001 See screendump below for
| |
4. | From the vSphere client, for each of the available hosts go to Configuration -> Storage and click “Refresh”. Verify that all LUNs appear as before the site failure | |
5. | Power on all VMs | |
6. | Done. In this situation, storage will run from the secondary site. The storage group will be able to reverse the replication seamlessly at a later stage when failed site is operational again. This does not require involvement from the VMware group. | |
Site redundancy with manual breaking of storage mirror
Thursday, May 20, 2010
My VMworld session ready for public voting
Sunday, April 18, 2010
Wednesday, March 31, 2010
Identifying your WWN id's via ILO
- ESX host name (FQDN)
- WWN id's of the HBA's
- If new LUN, then the size of the LUN. If you're zoning existing LUNs, then they need to know the storage group that the host should be added to (this can be done by providing hostname of one or two existing hosts that already have that zoning).
- Log into ILO either directly or via the blade enclosure
- Go to the Information tab of your server
- WWN id can be found under the info box for your HBA (see screendump below)
Monday, February 15, 2010
Howto: Installing VMware tools in a Linux VM
- install the guest OS (click here to see if guest OS is supported)
- to exit the gui to simulate no X server: sudo service gdm stop and then alt+f1 to get console
- right click the VM and choose install/update VMware tools. This will connect the cdrom with the VMware tools ISO file (if files are not already available, they will be downloaded) but you still need to mount the cdrom manually: sudo mount /dev/scd0 /media/cdrom (if folder don't exist, create it first)
- copy the tar file to /tmp folder and untar it: tar -xvf VMware-tools-vXX.tar.gz
- ls to the untar'ed folder and run vmware-install.pl: sudo ./vmware-install.pl
- start the gui: sudo service gdm start or simply startx
- verify that VMware tools are running: sudo ps -auxwww 'pipe-symbol' grep vm (look for /usr/bin/vmtoolsd and you will also find the balloon driver vmmemctl). You can also check if the vmtools startup script has been put into the startup folder /etc/rc0.d/
Update 2011.10.28: When installing VMware tools in Linux Redhat Enterprise 5.6 the installation failed as it needed gcc and some kernel developer packages. I ran the following commands and then reran the tools installation again after ./vmware-install.pl:
yum install gcc
yum install kernel-devel
yum install kernel-xen-devel
Thursday, February 11, 2010
Example of an HA error - and a fix
This piece of information did not help much in relation to troubleshooting.
Wednesday, February 3, 2010
Differences between Windows Server 2008, SP2, and R2
Windows Vista SP1 ~ Windows Server 2008 SP1
Windows Vista SP2 ~ Windows Server 2008 SP2
Windows 7 ~ Windows Server 2008 R2