Archive
Posts in Virtualization
Getting ESX server to recognize Clariion devices
While setting up two new ESX 3.0 server nodes, I ran into a bizarre problem where the VI client refused to initialize several Clariion CX700 devices. Since the VI client isn't the best environment to debug problems, I ssh'ed into the service console, and began my research by running esxcfg-vmhbadevs to list the devices on the system: This listed the correct number of devices, so I decided to use dd to read data from one of the devices that was causing problems: Dd worked fine, but I was still unable to create a file system with the VI client or vmkfstools: To get a better idea of the disk device layout. I decided to run fdisk to list the label type and layout of each device: Hmmm -- each Clariion device contained an SMI label, and I started to wonder if this was causing the problem. To test my hypothesis, I used the fdisk utility to write a DOS label to one of the problematic devices: Once I labeled the device with a DOS label, vmkfstools and the VI client allowed me to initialize and use the device…
$ read more →Fixing a broken Solaris zone
I applied the latest set of patches to my x86 Solaris 10 server this morning, and after the server was rebooted I noticed that my zones didn't start. When I ran the zoneadm utility with the "list" option, all of the zones were in the "installed" state (they should be in the running state since the autoboot variables was set to true): At first I thought the zones service might be in the maintenance state, but after reviewing the output from the svcs command, that theory turned out to be incorrect: Since the box contained several critical services, I decided to start the zones by hand and perform mostmortem analysis after the zones were back up and operational. When I ran zoneadm with the the "boot" option and the name of the zone to boot, I was greeted with the following error: Oh good grief! After reviewing my notes, I noticed that I had applied patch 122663-06 (a libezonecfg patch) as part of the patch bundle…
$ read more →Speeding up Solaris zone creation with cloning
One really neat feature that was recently added to Solaris is the ability to clone zones. Cloning allows you to create a new zone from an existing zone, which can reduce provisioning time, and ensure that all zones are created consistently (e.g., all zones that will act as web servers can be cloned from a zone that was setup to act as a web server). If the zone you are cloning from resides on a UFS or VxFS file system, the clone operation will copy all of the files from the source zone to the new zone. If the zone that you are cloning from lives on a ZFS file system, the clone operation will create a writeable ZFS snapshot, and use that as the backing store for the new zone…
$ read more →Renaming a Solaris zone
While reviewing the list of zones on one of my Solaris hosts, I noticed that I accidentally assigned the name "cone3" to a zone: While the name cone3 sounds interesting (for some reason cone3 reminds me of the coneheads movie), I originally intended for the zone to be called "zone3." To assign the correct name to the zone, I fired up the zone configuration utility (zonecfg), and set the 'zonename' variable to the correct value: Much better!
$ read more →Moving Solaris zones
While messing around with zones and ZFS last weekend, I decided to create a new ZFS file system called /zones to store my zones. The /zones file system would be created as a striped ZFS file system, allowing me to take advantage of ZFS's data checksumming, compression, snapshots and zone cloning features. Since I already had one zone installed in /zones, I needed to migrate the zone to another location while I setup the new ZFS file system. There are numerous ways to do this, but I decided to use the zoneadm "move" option since it was designed for this purpose…
$ read more →