Newsflash

Documentation cleanup is underway!
Scripting, Automation, and VMware Technologies

Scripting, Automation, and VMware Technologies

Creating a LVM filesystem PDF Print E-mail
Blog  arrow System
Sunday, 01 May 2011 00:28

This post is more for more reference, but hopefully someone else finds it useful as well. There are several posts online about LVM, but the directions I follow are:

http://www.debuntu.org/how-to-install-ubuntu-over-lvm-filesystem

$ sudo mke2fs -j /dev/sda2
$ sudo pvcreate /dev/sda3 #create a physical volume on /dev/sda3
Physical volume "/dev/sda3" successfully created
$ sudo vgcreate lvmvolume /dev/sda3 #create a volume group named lvmvolume using /dev/sda3 physical volume
Volume group "lvmvolume" successfully created
$ sudo lvcreate -n root -L 5G lvmvolume #create a logical volume of 5G named "root" in lvmvolume
Logical volume "root" created
$ sudo lvcreate -n home -L 10G lvmvolume #create a logical volume of 10G named "home" in lvmvolume
Logical volume "home" created
$ sudo lvcreate -n swap -L 2G lvmvolume #create a logical volume of 2G named "swap" in lvmvolume
Logical volume "swap" created
$ sudo mkfs -j /dev/lvmvolume/root -L root #format root as ext3
$ sudo mkfs -j /dev/lvmvolume/home -L home #format home as ext3
$ sudo mkswap -L swap /dev/lvmvolume/swap #format swap as swap filesystem, labelled swap
$ sudo pvcreate /dev/sda3 #create a physical volume on /dev/sda3
Physical volume "/dev/sda3" successfully created
$ sudo vgcreate <hostname>-<mountpoint> /dev/sda3 #create a volume group
Volume group "<hostname>-<mountpoint>" successfully created
$ sudo lvcreate -n lvol0 -L 5G <hostname>-<mountpoint> #create a logical volume
Logical volume "lvol0" created
$ sudo mkfs -j /dev/<hostname>-<mountpoint>/lvol0 -L lvol0 #format lvol0 as ext3
 
Configuring syslog on ESXi PDF Print E-mail
Blog  arrow Virtualization
Friday, 22 April 2011 17:00

I was assigned an interesting problem a few weeks back. A customer had requested that all ESXi servers have syslog configured in order to troubleshoot a potential bug in ESXi. A technician was assigned the case and configured all ESXi hosts to point to the syslog server on the standard port. The problem was the logs were not being seen on the syslog server. I was asked to figure out why the configuration was not working as expected.

In our particular case, all hosts pointed to a syslog VIP, which was responsible for load balancing syslog requests to a pool of syslog servers. Initially, I checked the load balancer to see if the syslog traffic was making it to the VIP. As it turned out, it was. After confirming the load balancer was working as expected, I began to suspect the configuration on the syslog servers. The only thing that I could think of which would prevent the syslog server from accepting syslog messages from the ESXi hosts was ACLs. Looking at the syslog configuration, I confirmed that the ACLs were set to allow traffic from the VMkernel VLAN configured for management traffic.

Why were the syslog messages not being received?

 
A general system error occurred internal error vmodl.fault.HostCommunication PDF Print E-mail
Blog  arrow Virtualization
Sunday, 17 April 2011 16:23

I am in the process of building my home lab. I recently purchased two servers and installed ESXi 4.1 on them. In addition, I deployed a test vCenter Server instance so I could run VUM. With vCenter Server up, I attempted to add the two ESXi servers. The first one added without issue, but the second one failed with the error messages: 

Cannot complete the configuration of the HA agent on the host. See the task details for additional information.

Misconfiguration in the host network setup

I verified that the hosts were in fact configured identically and then tried to add the host again, but the same error messages were displayed.  Based on the error messages, I found the following KB article: http://kb.vmware.com/kb/1019200. Unfortunately, the link did not help.

Next, I removed the ESXi host from vCenter Server and tried to re-add it. This time I got a different error message:

A general system error occurred internal error vmodl.fault.HostCommunication

From this error message I found KB article: http://kb.vmware.com/kb/1012154. This article pointed to name resolution (i.e. DNS) being my issue. I know of the importance of DNS with VMware products and was sure I had verified its configuration, but decided to double check. As suspected, DNS was configured and working as expected.

At this point, I decided to restart the management services as that fixes a majority of ESX(i) issues. Upon doing so and trying to add the ESXi server to vCenter Server, I received another new error message:

Unable to access the specified host, either it doesn't exist, the server software is not responding, or there is a network problem

This error message pointed me to KB article: http://kb.vmware.com/kb/1003409.

Again I tried everything suggested and was still receiving the same error message. At this point, I was frustrated. I decided to reboot the server just in case that fixed the issue. Upon restarting, the error message want back to the vmodl.fault.HostCommuncation one.

What was going on and how could this be fixed?

 

 
VMware Announces the Beta Open PaaS Offering of Cloud Foundry! PDF Print E-mail
Blog  arrow Cloud
Tuesday, 12 April 2011 16:25

Over the last year, I have been working very closely with VMware developers writing cloud PaaS applications. As of today, one of these PaaS applications has left beta and is now publicly available! I am happy to announce the beta open PaaS offering of Cloud Foundry. Now you may be wondering what it is and how it works. VMware has done a very good job of explaining this in detail (http://www.vmware.com/company/news/releases/cloud-foundry-apr2011.html).

Here are some of the links you should check out:

 
vCD Open File Handles PDF Print E-mail
Blog  arrow Cloud
Friday, 08 April 2011 20:38

For those of you with an active dpeloyment of VMware's vCloud Director (vCD) or those looking into deploying it, I would like to point out an important thing to check on your Red Hat vCD cells. From: http://www.vmware.com/support/vcd/doc/rel_notes_vcloud_director_101.html 

General Issues

"Too many open files" errors

vCloud Director can require high open file limits. Make sure that every cell in your vCloud Director environment allows processes to open more than 1024 files. To see what the current limit is for a cell, log in to the cell, and type ulimit -n. If it says 1024 or less, then take the following steps to increase the open files limit:

  1. Type su -.
  2. Edit /etc/security/limits.conf and make sure it includes the following lines:
    * soft nofile 65535
    * hard nofile 65535
  3. Edit /etc/pam.d/login to include the following line:
    session required pam_limits.so
  4. Type the following command to restart the cell:
    service vmware-vcd restart
  5. Log out of the cell and log back in.
  6. Type ulimit -n to verify your changes.
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 4 of 19