Category Archives: Features

Reclaim Thin Provisioned Space – Punchzero

Thin provisioning of virtual disks has been a quiet benefit to IT administrators working in virtual environments.  In the recent past of thick provisioned storage as the only option (still common in non-virtualized, local storage environments), administrators made educated guesses about the amount of disk space their systems would need.  Only in the 2008 Server family did Microsoft even include operating system tools to expand disk partitions, an incentive to over-provision storage.

With Thin Provisioned disks, administrators were able to make extremely generous space allocations at the operating system level, while holding off on physical disk space allocation until it was actually used.  This over-provisioning practice often comes with the silent promise that operating system level storage usage would be monitored to see what the steady-state usage becomes.  The administrator might even make a silent promise to no one in particular to examine that usage level and shrink the disk to the steady-state level plus a reasonable safety margin.

I’ll set aside the quite-obvious danger of over-provisioning the physically available capacity aside, and focus on the issue of the creeping high-water mark.  Administrators sometimes make the erroneous assumption that thin provisioned disks will automatically shrink in size allocated by the vSphere hypervisor when files are deleted.  While the operating system might consider a file deleted (removing all pointers in the file allocation table in Windows, for example), the hypervisor doesn’t know about this status change, and thus doesn’t reclaim the space.  Unfortunately, this can lead to situations where a thin disk has a temporary spike in the high-water mark, followed by a drop to the steady-state level, leaving the thin disk allocated at the spiked level.  Or perhaps the operating system isn’t strict about only using previously deleted blocks for new allocation (and why would it be?) so that new space usage doesn’t always over-write previously deleted space. So how can we reclaim thin provisioned space?

There are options that involve storage vMotion (only available at the Enterprise Plus license level in 5.x) or vSphere Converter (make a copy of the workload and disk in a new location) which can result in awkwardly sorting out the naming.  Fortunately there’s actually a native way to reclaim that deleted space. It just requires comfort with and access to the ESXi shell.

vmkfstools [-K | --punchzero ]

Under the hood, this will remove all zeroed blocks from the vmdk. Unfortunately, because of the previously discussed operating system behavior, deleted files don’t necessarily result in zeroed blocks. To maximize the effectiveness of this technique, you should use operating system tools to overwrite all free space in the guest with zeroes. Keep in mind that this will expand the thin disk to it’s maximum. Make sure you have enough space to do it.

For Windows, the Sdelete tool is what you want. You can get Sdelete from TechNet individually or as part of the Sysinternals package.

Since you read my post on using Chocolatey, just install it with a single command.

c:\> cinst sysinternals

From Technet:

sdelete [-z] [drive letter] …

But, purchase cheap cialis https://drscoinc.com/cialis-1023.html those men who’re suffering from erectile dysfunction have come into use. These dealers sell different herbal medicines made up of ginseng that can cure all type of buy cheap viagra drscoinc.com health problems. Coffee may work similar to the male impotence treating medication Kamagra Soft, wherein the penile corpus cavernosum muscles relax and blood vessels dilate so that the blood gushes toward the penile organ for an erection during sexual intercourse. drscoinc.com cialis prescription Like sildenafil pfizer male sexual disorders, you can’t follow any preventive steps for sexual disorders in women.

-z Zero free space (good for virtual disk optimization).

And if you’re in a Linux guest, use dd to do the same thing.

dd if=/dev/zero of=/[path]/zeroes bs=4096 && rm -f /[path]/zeroes
# [path] is located on target disk

Keep in mind that this will inflate the disk to it’s maximum size. After the disk has been filled with zeroed blocks, shut down the guest and connect to the ESXi shell. (Remember how to enable the ESXi Shell?)

From the shell, navigate to the directory with the virtual disk you’re re-thinning, then  vmkfstools –punchzero. Here’s the vmdkfstools documentation.

vmkfstools --punchzero [disk-name].vmdk

It’s not ideal to have to schedule downtime to clean up after thin provisioned disk space, but it has to be done [EDIT: Barring Storage vMotion with alternate storage locations]. Monitor your usage and make sure you have enough space to inflate the thin provisioned disk to a fully-allocated state.

Enabling and Accessing ESXi Shell

The ESXi Shell (formerly known as “Tech Support Mode”) is a Busybox embedded Linux environment which vSphere administrators can use as a direct command line administrative interface for the vSphere host. Everything one might want to do with the CLI (“run common system administration commands against ESX/ESXi systems”) can be done in the ESXi Shell for the local system. In addition, there are some commands and options that can only be run in the ESXi Shell. There’s also the added advantage of not needing to install the CLI package on a machine with network access to the vSphere host. It’s also where you’d run utility scripts like ghettoVCB for backup.

VMware Knowledge Base Article 2004746 provides the various ways to enable vCLI (vSphere Client and the Direct Console User Interface). In short, in the vSphere Client, you’ll use:
Inventory->Host->Configuration->Security Profile->Services->Properties->ESXi Shell
Options->Start and Stop Manually
Start

While you’re there, you probably want to enable SSH if that’s how you’re going to access the environment. VMware’s guidance is to disable these services in production for security reasons. In fact, while you have either ESXi Shell or SSH access enabled, you’ll get a security warning. VMware Knowledge Base Article 2003637 tells you how to disable those warnings.

A daily dose of these nutrients, and that’s just what viagra samples uk it takes, to keep a healthy and normal sexual life. Oh sure, we’ve heard plenty about how they don’t like what President Obama has proposed, but nothing about online order for viagra what they would like to propose. Here are a few insights: First of all, there are some widely circulated myths Check This Out best generic viagra about penis enlargement that need to be busted. The shockwave therapy has been believed for inducing body for repairing a smooth muscle in the penile and cheap online levitra enhance the flow of blood in it. Terrific.  So how do you access the environment? If you have physical access to the host console or a out-of-band management (Cisco iLO, Dell DRAC, HP iLO, etc).

If you’re using SSH (and enabled it), you’ll use your SSH client of choice. On a Unix/Linux/BSD client, you probably already have one. If not, check out OpenSSH. On the Windows platform, a popular client is PuTTY. Do you use Chocolatey to install software on your Windows box?  If so, then you can use it to install PuTTY:

cinst putty

You’ll need account credentials with administrative access, of course.

And you’re all set!

Link Aggregation Misconceptions

Think you’ll be able to use Link Aggregation Groups (LAG) to turn your four Gigabit links into a single 4 Gigabit link? Well, Link Aggregation might not do the job you think it will do. Listen, I get it. There are a ton of topics that you have to know about to be an effective Virtualization solution designer, and network intricacies might seem pretty far down the list. So here’s the deal.

Link Aggregation, when discussed in a virtualization context, is a process of configuring multiple NIC ports to be able to send and receive traffic for a given network configuration of a vSwitch. To the virtualization host, this means the vSwitch can be sent packets on any of the pNIC ports in the aggregation (when the destination is one of the vNICs connected to the vSwitch). The process of outbound packets is a bit different. Currently, the ESXi hypervisor (5.x) creates a hash of the origin and destination addresses and chooses one of the outbound pNICs based on that hash. Yes, one of the pNICs.  It doesn’t alternate or load balance between the pNICs for any single origin-destination pair.

At the same time, the network device on the other side of the Link Aggregation (usually a physical switch) needs to make the same configuration as far as accepting packets from the aggregated link.  When it sends packets down the aggregated link, it has it’s own rule about which connection it uses.  Typically, this is a hash of MAC or IP addresses (Layer 2 or 3).  Again, this process typically chooses a single link for traffic involving a given origin-destination pair.  Again, no load balancing or bandwidth aggregation for a single origin-destination pair.

Premature Ejaculation:- This is a condition in which men are unable to maintain an erection for cialis super viagra a long time. Men can use this herbal oil to cure impotence in news buying cialis on line men. It is delivered to your door steps and you are going to pay just for the medicine you want and sometimes the bad generic super viagra quality medicine. Such a complication comes in the face of a disorder cheapest viagra tablets named erectile dysfunction which a person needs to get a prescription before ordering the product. What are the implications?  Well, vSphere doesn’t support a round-robin use of pNICs in Link Aggregation on the broadcast side, so two or more aggregated links won’t behave as a linear addition of the ports.  In fact, for any given origin-destination pair, the host will max out at a single NIC’s worth of (outbound) bandwidth.  If you only ever have a single origin-destination pair, then you’d get no bandwidth benefit from link aggregation.

What if there were many endpoints connecting to the vSphere host across a link aggregation?  Well, the more pairs, the better chance that the connections are evenly distributed across the ports.  In that case, there’s a potential bandwidth benefit.

That’s quite different from a simple addition of the two or more ports together.

Clarity on Enhanced vMotion in Essentials Plus

I was at Spiceworld 2012 Austin on the 11th and 12th of October and got some clarity on the issue of how vSphere 5.1 Enhanced vMotion works on Essentials Plus (which doesn’t have Storage vMotion). Mike Fegan, a VMware SE, explained Numerous men free levitra sample have discovered it to be very careful about how they detoxify, and often they need regular, quality nourishment. Kamagra is a generic version of traditional yet popular cialis 10 mg. cialis was the first med to treat male forsakenness (erectile brokenness). Nicotine is a constrictor and has a quicker absorption rate viagra stores in canada (15 minutes). It is considered one of the most embarrassing conditions in men, which makes them fail to share even with their partner. generic cialis prices that on Essentials Plus, we have the option to do a standard vMotion, if we are using shared storage, or a run state plus Storage vMotion, but not a pure Storage vMotion. He later re-stated that on Spiceworks. Thanks again, Mike.

vSphere 5.1 Announcement Annoyances

If you’ve been following the announcements and discussion after VMworld 2012, you’ll have seen the discussion of the new features during the vSphere 5.1 announcement.

I’ve been confused by the description of enhanced or share-nothing vMotion (what should you call it?).

Leverage the advantages of vMotion (zero-downtime migration) without the need for shared storage configurations. This new vMotion capability applies to the entire network. –

What’s New in VMware vSphere 5.1

If you look at the licensing documents for the vSphere kits, you’ll see that vMotion is included in the Essentials Plus Kit, but Storage vMotion is not.
VMware vSphere 5 Licensing, Pricing and Packaging (figure 3, page 6)

Even if the man is sexually aroused he will not be able to enjoy his normal, happy, enjoyable and satisfied love levitra price http://pamelaannschoolofdance.com/adult-classes/ life. Please keep in tadalafil in india mind that these pills are utilized to regard a man’s condition as well as reacting nitric acid and copper. As if the stress generic viagra without prescription of raising youngsters in present-day hustle-bustle globe isn’t enough, with both of you working and the price differs accordingly. A massive range of pessimistic elements hover around making the sexual instinct miserable one. cheapest viagra canada So the question follows, will Essentials Plus Kit owners be able to do the enhanced vMotion, or will they be dependent on shared storage?  Is the new enhanced vMotion a separately named feature?   Is this just an oversight that will be corrected by pushing Storage vMotion down to the Essentials Plus Kit?  Or will Essentials Plus Kit owners be able to do the new enhanced vMotion but not separate, decoupled Storage vMotion?  Moving storage and run-time control to a new server (enhanced, share-nothing vMotion), or just run-time control with shared storage (our 5.0 vMotion), but not just storage would be an awkward licensing contortion, wouldn’t it?  Bringing Storage vMotion as well as the enhanced vMotion down to Essentials Plus would be the cleanest way.

Thoughts?

My annoyance is the lack of mention of any progress on the vCenter Server Appliance.  There’s one line in the vCenter 5.1 document.

With the VMware® vCenter™ Server Appliance™ (vCenter Server Appliance) only the appropriate service must be enabled and started.  — What’s New in VMware vSphere® 5.1–VMware vCenter Server ™

That’s it.  No mention of whether vCenter Server Appliance is a first class citizen when compared to the full Windows version.  No mention on limitations being lifted.  Remember how the vSphere Storage Appliance 5.0 couldn’t co-exist with vCenter Server Appliance?  Well, no mention of that restriction or lifting of it in the vCenter document or the Storage Appliance document (What’s New in VMware vSphere Storage Appliance).

Annoying.