When trying to recompose, deploy, or restart Linked-clone pools I keep getting this error.
View Composer Fault: Unable to decrypt credentials for component Unknown and configID: null
I'm currently running the following:
vCenter 5.1.0 Build 1473063
View Connection 5.3
View Composer 5.3
Fix:
In View Horizon Administrator, View Configuration, Servers select your vCenter Server and click "Edit". In the "Edit vCenter Server" tab, select the "Edit" button under "vCenter Server Settings" and try using another account other than the one that is currently selected. Make sure it authenticates and then change it back to the original account.
Try another maintenance move within one of your pools again and see if it works now! This worked in our situation.
What we found out is when this account is configured the first time, View Horizon will cache those credentials for ease of use when trying to deploy 100 or 1000 VM desktops. You wouldn't want View Horizon to authenticate each time a VM gets deployed, it would bogg down your Domain Controllers and/or saturate your network with authentication requests.
NOTE:We used the same vCenter server name in our case because we had to rebuild our vCenter server due to a Microsoft Patch that crashed our working server.
Monday, August 25, 2014
Monday, April 14, 2014
Deploying or recomposing View desktops fails when the parent virtual machine has CBT enabled (2032214)
- In the /var/log/vmware/vpxa.log file on the ESXi host, you see entries similar to:
DISKLIB-CTK : Could not open tracking file. File open returned IO error 4.DISKLIB-CTK : Could not open change tracking file "/vmfs/volumes/<UUID>/<parent vm name>-ctk.vmdk": Could not open/create change tracking file.DISKLIB-LIB : Could not open change tracker /vmfs/volumes/<UUID>/<parent vm name>-ctk.vmdk: Could not open/create change tracking file.DISKLIB-LIB : Failed to open '/vmfs/volumes/<UUID>/<parent vm name>-000002.vmdk' with flags 0x21e Could not open/create change tracking file (2108).[NFC ERROR] NfcFileDskOpenDisk: Failed to open '/vmfs/volumes/<UUID>/<parent vm name>-000002.vmdk': Could not open/create change tracking file (2108).[NFC ERROR] NfcFile_Open: Open failed:[NFC ERROR] NfcFile_Clone: Failed to open source file[VpxNfcClient] File transfer [ds:///vmfs/volumes/<UUID>/<parent vm name>-000002.vmdk-> ds:///vmfs/volumes/<UUID>/replica-<id>/replica-<id>.vmdk] failed.[VpxNfcClient] NFC file error for file ds:///vmfs/volumes/<UUID>/<parent vm name>-000002.vmdk[VpxNfcClient] Closing NFC connection to server
Resolution
To
work around this issue, disable CBT on the parent virtual machine.
Ensure that there are no snapshots on the parent virtual machine. For
more information, see Consolidating snapshots in vSphere 5.x (2003638).
To disable CBT:
To disable CBT:
- Power off the virtual machine.
- Right-click the virtual machine and click Edit Settings.
- Click the Options tab.
- Click General under the Advanced section, then click Configuration Parameters.
- Set the ctkEnabled parameter to false for the corresponding SCSI disk.
To prevent any third-party applications from enabling Change Tracking on the virtual machine:
- Open the .vmx file of the virtual machine using a text editor.
- Add this entry to the file:
ctkDisallowed="true"
Thursday, April 10, 2014
Netapp VSC 4.1 Plugin vCenter - Optimization and Migration
One of my most frequently read articles is on how to use MBRAlign to
align your virtual machine disks on Netapp storage. Well, after Netapp
has released their new Virtual Storage Console (VSC4) the tedious task
of using MBRAlign might be eased for some admins.
Optimization and Migration
The new VSC4 console for vSphere has a new tab called Optimization and Migration. Here you are able to scan all or some of your datastores to check the alignment of your virtual machines. The scan manager can even be set on a schedule so that changes to the datastore will be recognized.

Once you have scanned your datastores you can go the the Virtual Machine Alignment section and see if your virtual machines are aligned.

What if your virtual machines are not aligned already? Netapp has a new way to align your virtual machines without having to take them offline.
Disclaimer: I’ve looked for documentation on exactly how this process works, but couldn’t find any.
Aligning Virtual Machines
Lets go through the process of aligning a misaligned virtual machine using VSC4.
First, we select the virtual machine that is misaligned and choose the migrate task. This opens the alignment wizard.
Choose your filer.

Next choose a datastore. If we already have a functionally aligned datastore with an offset that’s the same as your unaligned virtual machine’s offset, you can select an existing datastore. If you don’t have an existing datastore that will align with your vm, you’ll receive an error message like the one below. If that’s the case, create a new datastore from the wizard.

Choose the datastore type.

In our case we’ll create a new datastore.

Once the migration is complete you’ll see your virtual machine in a new datastore and it will be aligned. Notice how the virtual machine offset matches the name of the new datastore that was created. Offset 7 was put into the AlignedDatastore1_optimized_7 datastore.

Now you can rest easy, knowing that your virtual machines are not suffering performance issues due to unaligned disks, and no downtime was required to do so.
Optimization and Migration
The new VSC4 console for vSphere has a new tab called Optimization and Migration. Here you are able to scan all or some of your datastores to check the alignment of your virtual machines. The scan manager can even be set on a schedule so that changes to the datastore will be recognized.
Once you have scanned your datastores you can go the the Virtual Machine Alignment section and see if your virtual machines are aligned.
What if your virtual machines are not aligned already? Netapp has a new way to align your virtual machines without having to take them offline.
Disclaimer: I’ve looked for documentation on exactly how this process works, but couldn’t find any.
Aligning Virtual Machines
Lets go through the process of aligning a misaligned virtual machine using VSC4.
First, we select the virtual machine that is misaligned and choose the migrate task. This opens the alignment wizard.
Choose your filer.
Next choose a datastore. If we already have a functionally aligned datastore with an offset that’s the same as your unaligned virtual machine’s offset, you can select an existing datastore. If you don’t have an existing datastore that will align with your vm, you’ll receive an error message like the one below. If that’s the case, create a new datastore from the wizard.
Choose the datastore type.
In our case we’ll create a new datastore.
Once the migration is complete you’ll see your virtual machine in a new datastore and it will be aligned. Notice how the virtual machine offset matches the name of the new datastore that was created. Offset 7 was put into the AlignedDatastore1_optimized_7 datastore.
Now you can rest easy, knowing that your virtual machines are not suffering performance issues due to unaligned disks, and no downtime was required to do so.
Wednesday, April 9, 2014
VDR - Cannot take a quiesced snapshot of Windows 2008 R2 virtual machine error -3960
* Backup applications, such as VMware Data Recovery, fail with the error:
This issue occurs due to a known issue with VSS application snapshots and ESXi/ESX 4.1 and later.
To work around this issue, disable VSS application-based snapshots and revert back to file system quiesced snapshots.
Notes:
Option 1 - Disable VSS application quiescing using the vSphere Client:
Option 2 - Disable VSS application quiescing using VMware Tools:
Failed to create snapshot for <vmname>, error -3960 (cannot quiesce virtual machine)====================Solution=============================================
This is not a VMware issue.This issue occurs due to a known issue with VSS application snapshots and ESXi/ESX 4.1 and later.
To work around this issue, disable VSS application-based snapshots and revert back to file system quiesced snapshots.
Notes:
- Some issues related to Windows 2008 R2 VSS application-based snapshot backups in vSphere Data Protection (VDP) have been resolved in VDP 5.1.10. For more information, see the vSphere Data Protection 5.1.10 Release Notes.
- For related information, see Troubleshooting Volume Shadow Copy (VSS) quiesce related issues (1007696) and Disabling specific VSS writers with VMware Tools (1031200).
Option 1 - Disable VSS application quiescing using the vSphere Client:
- Power off the virtual machine.
- Log into vCenter Server or the ESXi/ESX host through the vSphere Client.
- Right-click the virtual machine and click Edit settings.
- Click the Options tab.
- Go to Advanced > General > Configuration Parameters.
- Add or modify the row
disk.EnableUUIDwith the valueFALSE. - Click OK to save.
- Click OK to exit.
- Right-click the virtual machine and click Remove from Inventory to unregister the virtual machine from the vCenter Server inventory.
- Register the virtual machine back to vCenter Server. For more information, see Registering or adding a virtual machine to the inventory on vCenter Server or on an ESXi/ESX host (1006160).
Note: If this change is done via the command line, usevim-cmdcommand to reload the vmx is enough to see the changes. For more information, see Reloading a vmx file without removing the Virtual machine from inventory (1026043). - Power on the virtual machine.
disk.EnableUUID parameter for VMware Data Protection (VDP), see the Resolution section in Backing
up a Windows Server 2008 R2 virtual machine using VMware Data
Protection 5.1 fails with the error: Execution Error: E10055:Failed to
attach disk. (2035736).Option 2 - Disable VSS application quiescing using VMware Tools:
- Open the
C:\ProgramData\VMware\VMware Tools\Tools.conffile in a text editor, such as Notepad. If the file does not exist, create it. - Add these lines to the file:
[vmbackup]
vss.disableAppQuiescing = true - Save the file.
- Exit the editor.
- Restart the VMware Tools Service for the changes to take effect. Click Start > Run, type
services.msc, and click OK. - Right-click the VMware Tools Service and click Restart.
Tuesday, April 8, 2014
The 4 Most Common Misconfigurations with NetApp Deduplication
Misconfiguration #1 - Not turning on dedupe right away (or forgetting
the -s or scan option)
As Dr. Dedupe pointed out in a recent blog,
NetApp recommends dedupication on all VMware workloads. You may have noticed
that if you use our Virtual
Storage Console (VSC) plugin for vCenter that creation of a VMware datastore
using the plugin results in dedupe being turned on. We recommend enabling dedupe
right away for a number of reasons but here is the primary reason why;
Enabling dedupe on a NetApp volume (ASIS) starts the controller tracking the
new blocks that are written to that volume. Then during the scheduled
deduplication pass the controller looks at those new blocks and eliminates any
duplicates. What if, however, you already had some VMs in the volume before you
enabled deduplication? Unless you told the NetApp specifically to scan the
existing data, those VMs are never examined or deduped! This results in the low
dedupe results. The good news, this is a very easy fix. Simply start a
deduplication pass from the VSC with the “scan” option enabled or from the
command line with the “-s” switch.
Above, where to enable a deduplication volume scan in
VSC. Below, how to do one in Systems Manager;

For you command line guys its "sis start -s /vol/myvol" note the -s, amazing what 2 characters can do!
This is by far is the most common mistake I come across but thanks to more
customers provisioning their VMware storage with the free VSC plug-in it is
becoming less common.
Misconfiguration #2 - LUN reservations
Thin Provisioning has gotten a bad reputation in the last few years. Storage
admins who have been burned by thin provisioning in the past tend to get a bit
reservation happy. On a NetApp controller we have multiple levels of
reservations depending on your needs but with regard to VMware two stand out.
First there is the volume reservation. This reserves space away from the large
storage pool (the Aggregate) and insures whatever object you place into that
volume has space. Inside the volume we now create the LUN for VMware. Again you
can choose to reserve the space for the LUN which removes the space away from
the available space in the volume. There are two problems with this. First,
there is no need to do this. You have already reserved the space with the volume
reservation, no need to reserve the space AGAIN with a LUN reservation. Second,
the LUN reservation means that the unused space in the LUN will aways consume
the space reserved. That is, a 600GB LUN with space reservation turned on will
consume 600 GB of space with no data in it. Deduping a space reserved LUN will
yeild you some space from the used data but any unused space will remain
reserved.
For example say I had a 90GB LUN in a 100GB volume and the LUN was reserved.
With no data in the LUN the volume will show 90GB used, the unused but reserved
LUN. Now I place 37 GB of data in the LUN. The volume will still show 90GB used.
No change. Next I dedupe that 37 GB and say it dedupes to 10GB. The volume will
no report 63 GB used since I reclaimed 27GB from deduping. However when I remove
the LUN reservation I can see the data is actually taking up only 10GB with the
volume now reporting 90GB free. [I updated this section from my orginal post,
Thanks to Svetlana for pointing out my error here]
In these occasions, a simple deselection of the LUN reservation reveals the
actual savings from dedupe (yes this can be done live with the VMs running).
Once the actual dedupe savings are displayed (likely back in that 60-70% range)
we can adjust the size of the volume to suit the size of the actual data in the
LUN (yes, this too can be done live)

Misconfiguration #3 - Misaligned VMs
The problem with some guest operating systems being misaligned with the
underlying storage architecture has been well documented.
In some cases though this misalignment can cause lower than expect deduplication
numbers. Clients are often surprised (I know I was) at how many blocks we can
dedupe between unlike operating systems. That is, between say Windows 2003 and
2008 or Windows XP and 2003. However if the starting offset of one of the OS
types is different that the starting offset of the other then almost none of the
blocks will align.
In addition to lowing your dedupe savings and using more disk space that
required, misalignment can also place more load on your storage controller (any
storage controller, not a NetApp specific problem). Thus it is a great idea to
fix this situation. There are a number of tools on the market that can correct
this situation including the MBRalign tool which is free for NetApp customers
and included as part of the VSC. As you align the misaligned VMs, you will see
your dedupe savings rise and your controller load decrease. Goodness!
Misconfiguration #4 - Large amounts of data in the VMs
Now this one isn’t really a misconfiguration, it's more of a design option.
You see, most of my customers do not separate their data from their boot VMDK
files. The simplicity of having your entire VMs in a single folder is just too
good to mess with. Customers are normally still able to achieve very high
deduplication ratios even with the application data mixed in with the OS data
blocks. Sometimes though customers have very large data files such as large
database files, large image file repositories or large message datastores mixed
in with the VM. These large data files tend not to deduplicate well and as such
drive down the percentage seen. No harm is done though since the NetApp will
deduplicate the all the OS and other data around these large sections. However
the customer can also move these VMDKs off to other datastores which can then
expose the higher dedupe ratios on the remaining application and OS data. Either
option is fine.
So there it is, the 4 most common misconfigurations I see with deduplication
on NetApp in the field. Please feel free to post and share your savings, we
always love to hear from our customers directly.
Above, where to enable a deduplication volume scan in
VSC. Below, how to do one in Systems Manager;
For you command line guys its "sis start -s /vol/myvol" note the -s, amazing what 2 characters can do!

Misconfiguration #3 - Misaligned VMs
Misconfiguration #4 - Large amounts of data in the VMs
Monday, March 3, 2014
Expanding the size of a Raw Device Mapping (RDM) attached to a VM
Warning: Ensure that
there are no snapshots on the disk before attempting this operation. If
there are snapshots present, commit them. Otherwise, you may experience
data corruption (as described in Extending a RDM with snapshots may cause corruption (1005351). For more information, see Determining if there are leftover delta files that VMware Infrastructure Client cannot detect (1005049).
Note: Snapshots can only be taken with RDMs in Virtual Compatibility Mode. If you do not want to use snapshots, the maximum mapped LUN size in Physical Compatibility mode is 2 TB - 512 bytes in ESX/ESXi 4.x and 64TB in ESX/ESXi 5.x. For more information, see ESX/ESXi 3.x/4.x do not support 2-terabyte LUNs-125339 (3371739) and Calculating the overhead required by snapshot files (1012384).
Note: Snapshots can only be taken with RDMs in Virtual Compatibility Mode. If you do not want to use snapshots, the maximum mapped LUN size in Physical Compatibility mode is 2 TB - 512 bytes in ESX/ESXi 4.x and 64TB in ESX/ESXi 5.x. For more information, see ESX/ESXi 3.x/4.x do not support 2-terabyte LUNs-125339 (3371739) and Calculating the overhead required by snapshot files (1012384).
The procedure to expand the size of the RDM depends on the type:
- Physical compatibility mode
Physical compatibility mode RDMs, which are also known as passthru RDMs, expose the physical properties of the mapped LUN to the guest operating system. For the guest operating system to recognize the added space to the expanded mapped LUN, perform a rescan from the ESX host, then from the guest operating system. This process does not require rebooting the virtual machine or the ESX host.
No changes to the RDM files (.vmdk or metadata pointer) are required to take advantage of the added disk space.
- Virtual compatibility mode
To safely expand the RDM: - Stop the virtual machine and remove the RDM from the virtual machine. Before you do this, note the scsiX:Y position of the RDM in VM Settings.
- Expand the RDM LUN from the SAN side. Contact your vendor for assistance.
- Perform rescan on the ESX and verify the new LUN size is observed.
- Recreate the RDM mapping to update the mapped disk size using one of these methods:
- Utilize Storage vMotion to migrate the Virtual RDM disk's pointer file (vSphere 4.0 and later).
- Power off the virtual machine, click VM Settings > Add > Hard Disk > RDM, select the scsiX:Y position that the RDM was using before, and then power on the virtual machine.
- Perform a rescan from the guest operating system. Consult your vendor for assistance.
Wednesday, January 29, 2014
Event Viewer being flooded with VMWare Tools [Warnings]vmstat
If you have this setting "isolation.tools.setinfo.disable = "true" this means that Setinfo communication from tools to the ESXi host are being blocked" .
Modify the following line from the .vmx and set the value to "false"
Refer this Link for more detail about this parameter page 6 http://www.vmware.com/files/pdf/vi35_security_hardening_wp.pdf
Modify the following line from the .vmx and set the value to "false"
isolation.tools.setinfo.disable = "true"
Note : take backup of vmx file before editing.
Refer this Link for more detail about this parameter page 6 http://www.vmware.com/files/pdf/vi35_security_hardening_wp.pdf
Subscribe to:
Posts (Atom)