Warning: The available space to /dev/disks/naa. appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (x blocks).

I had to hold a training and decided to recycle some (relatively) old hosts and have them installed with vSphere 6.5.0d and most important vSAN 6.6 as I had 4 hosts, each with 5 SSDs

I thought I was lucky because I found vSphere 6.0 installed on them and thought that if I’m just upgrading all components, will be faster than a clean reinstall.

I was wrong!

The old cluster I destroyed, had vSAN installed (some colleague played with it last year) and when I created the new vSAN cluster, some of the disks could not be claimed as the partitions (or GPT Table) were corrupted.

It didn’t took me a long time to investigate which disks were not claimed of my new vSAN cluster but it took me a lot to actually clear the partition and fix the GPT table on each “broken” disk

I tried to delete them from vCenter via HTML5 and Flash clients, from ESXi via the HTML and C# client, but wasn’t successful so I tried also with partedUtil via SSH but still no success as I was getting the following error:

[root@vSAN-HOST666:~] partedUtil delete "/vmfs/devices/disks/naa.5002538250021a97" 1
Error: Input/output error during read on /dev/disks/naa.5002538250021a97
Error: The primary GPT table states that the backup GPT is located beyond the end of disk. This may happen if the disk has shrunk or partition table is corrupted. Fix, by writing backup table at the end? This will also fix the last usable sector appropriately as per the new reduced size. diskPath (/dev/disks/naa.5002538250021a97) diskSize (390721968) AlternateLBA (1948057599) LastUsableLBA (1948057566)
Warning: The available space to /dev/disks/naa.5002538250021a97 appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (1557335632 blocks). You can fix the GPT to correct the available space or continue with the current settings ? This will also move the backup table at the end if it is not at the end already. diskSize (390721968) AlternateLBA (1948057599) LastUsableLBA (1948057566) NewLastUsableLBA (390721934)
Error: Can't have a partition outside the disk!
Unable to construct disk from device /vmfs/devices/disks/naa.5002538250021a97

I got really pissed off that I couldn’t delete those partitions and was close to admit defeat but I got lucky and found this VMware KB.

So… it seems that creating an MS-DOS partition on the respective “broken” disk you fix the issue

Here’s the command if you’re lazy enough not to click the above link:

 partedUtil setptbl /vmfs/devices/disks/naa.5002538250021a97 msdos

 

After this step is completed, you just need to Erase partitions (vCenter or ESXi) and claim the disks in vSAN

Thanks VMware!

Uhhh…

This is why I love Mondays…

Victor

 

 

 

Tagged with: , , , , ,
Posted in error, fixes, HowTo, vCenter, VMware, vSAN

Amazon WorkSpaces Windows Client Registration service

I normally use for work at least 2 physical devices so I’m not affected too much about any hardware or software malfunction.

I work with a lot of customers and I’m using my personal devices for work, so I always get into trouble. Luckily, I know somebody doing IT which helps me from time to time 🙂

 

It was the case also for the Amazon WorkSpaces Client which for some days, didn’t wanted to register with the AWS WorkSpace that I had configured, showing an error for Registration service in the service checks window. It always told me to check my internet connection although that my Internet connection was running fine.

I also checked and re-checked firewall rules but still no luck, until this small issue was a challenge already 🙂

2017-03-05_02-03-07_amazon-workspaces_000341

 

I got this issue fixed by going to my user profile and deleting the Amazon WorkSpaces config folder.

To do this, go to:

1. Close the Amazon WorkSpaces client

2. Open Explorer and go to:

C:\Users\%username%\AppData\Local\Amazon Web Services\

3. Make a copy of the Amazon WorkSpaces folder and delete it afterwards

4. Open the Amazon WorkSpaces client and configure the client with your WorkSpace info

5. Enjoy the easy fix!

 

Cheers

Victor

Tagged with: , , , , , ,
Posted in Activation, AWS, error, fixes, HowTo, Windows

This edition cannot be upgraded – How to activate Windows Server 2016 Evaluation

 

 

I happen to have more than a couple of dozens Windows Server VMs in my HomeDC, starting with Server 2003 and ending with (the gorgeous) Server 2016.

I tested 2016 along with various products (including XenDesktop, Horizon View, VEEAM) since I first got my hands on the Tech Preview 1 and as per today, I have close enough to 15 VMs running with the 2016 Evaluation version. I didn’t really wanted to reinstall EVERYTHING just because Windows doesn’t want to switch “automatically” from Evaluation to the new Product Version for which I had a license, so I started digging into DISM.

image

 

So, what’s to be done?

Open an elevated Command Prompt (Win+X, then A) and type:

DISM /Online /Set-Edition:ServerStandard /ProductKey:Your-VLK-Product-Key-For-WindowsStandard /AcceptEULA

NOTICE: If you have a Datacenter edition, you might need to set the edition to “ServerDatancenter” as it was the case for me.

image

 

At the end (yeah, it takes a while…), the process might request a reboot, so reboot your server and then check the Activation status.

image

 

PS: Not sure if this works for the Core edition. Didn’t had the time to test, but I guess it’s not working. Sad smile

Tagged with: , , ,
Posted in Activation, error, fixes, HowTo, Uncategorized, Windows, Windows Server

How to delete orphaned VMs on VMware vCenter 6.5

Before VMware vCenter 6.5, deleting orphaned VMs was really easy. You just needed to connect with the VMware vSphere Client (the fat client) to the vCenter server, create a new folder, move the broken stuff in it, and delete the folder.

Well… on vCenter 6.5, that’s not possible anymore as you can’t connect with the vSphere Client on the vCenter server, just to the ESXi.

The only workaround for this was to use PowerCLI (version 6.5 can be downloaded from here)

After installing PowerCLI, start it from your Desktop or from the Start Menu and type:

Connect-VIServer -Server YourvCenterServer

You’ll now be prompted for credentials needed to login in vCenter.

2016-12-13_10-12-48_vmware-powercli-6-5-release-1-build-4624819_000228

The following command will show you all VMs registered in vCenter

Get-VM -Name *

And to delete the orphaned one(s)

Get-VM -Name YourOrphanedVMName | Remove-VM

To see all running VMs and a bunch of other info type:

Get-VM | select * | Out-GridView

When you deleted all your VMs, you should also check to see if the process left behind some crap like unused VMDKs.

Good luck!

Tagged with: , , ,
Posted in error, fixes, HowTo, PowerCLI, vCenter, VMware

VMware vCenter Server Appliance 6.5 – failed to boot – Failed to start Network Service

2016-12-10_19-12-53_ogsvcs01-vmware-remote-console_000215

If you ever encounter an issue with the vCenter server that’s so bad that the server itself doesn’t start, well try the following:

fsck -fy /dev/mapper/log_vg-log

If it tells you that it fixed something, just press CTRL+D and let the damn thing boot.

My LAB environment’s “reliable” storage system is a Synology NAS (XPEnology actually) and I present iSCSI LUNs out of it for all my devices, including the 2x SUPER-AWESOME Supermicro SYS-5028D-TN4T that I’ve aquired in June 2016.

So, from time to time (to be read as less as possible) I reboot the NAS due to different reasons but nothing really bad happened until now as I do my homework and shutdown anything that might use that shared storage system. This time, I forgot to shutdown the vCenter server, which you guessed… was using one of the iSCSI LUNs as its underlying storage and one of the partitions got corrupted and the vCenter Server crashed and failed to boot.

Hope this helps you. I wondered a bit until figured out what’s wrong 🙂

 

Tagged with:
Posted in error, fixes, HowTo, Uncategorized, vCenter, VMware

ACE – Atlantis Computing Experts Program

Like any respectable company, Atlantis Computing®, the leading provider of Software-Defined Storage (SDS), proves its maturity level every day with its products and services known by most virtualization experts around the globe.

Today, the company went to another level, by launching the ACE – Atlantis Community Experts Program, a program that recognizes exceptional community leadership and provides a great opportunity for the Atlantis Community Expert (ACE) to connect Atlantis colleagues, fellow community peers and more. Atlantis Community Experts (ACE) receive insights into Atlantis products while they engage with Atlantis colleagues to provide feedback, share their notes from the field and present as advocates in the community. ACEs help shape the modern workspace and programmable Datacenter by providing valuable feedback on product strategy and future roadmap.

The elite ACE group includes 28 renowned virtualization and storage experts who are actively engaged in the industry and provide guidance to their followers on Atlantis USX SDS and HyperScale hyperconverged appliance offerings through blogs, forums and articles.

I’m honored to be part of the first wave of ACEs and actually the first Romanian awardee!

If you want to be an ACE and join this great group of passionate ACEs please email their CTO, Ruben Spruijt (ruben@AtlantisComputing.com), give him some background about you and your work, and why you consider yourself an ACE.

AtlantisExperts

More info:

http://www.atlantiscomputing.com/pr_2016_04_26_atlantis-computing-expands-atlantis-community-experts-program

http://community.atlantiscomputing.com/blog/Atlantis/April-2016/Atlantis-Community-Experts

Tagged with:
Posted in Atlantis, Victor

NVIDIA M60 / M6 Problems – check your card in “graphics” mode!

Virtually Visual

This blog only applies to M60 / M6 (Maxwell generation) GRID cards. It is not relevant to GRID 1.0 (K1/K2 cards).

Try this first!

If you are experiencing issues with a new M60 / M6 card, please run this command:

  •  lspci –n | grep 10de

You should get something that looks like:

[root@SAGRID-ESXi5:~] lspci –n | grep 10de

0000:04:00.0 Class 0300: 10de:11bf [vmgfx2]

0000:05:00.0 Class 0300: 10de:11bf [vmgfx3]

0000:08:00.0 Class 0300: 10de:11bf [vmgfx0]

0000:09:00.0 Class 0300: 10de:11bf [vmgfx1]

0000:86:00.0 Class 0300: 10de:11bf [vmgfx4]

0000:87:00.0 Class 0300: 10de:11bf [vmgfx5]

If your system reports 0302 instead of 0300, the GPU is in “compute” mode. If it reports 0300 as above then it’s in “graphics” mode and this is not the cause of your issue.

If you notice the GPUs are in compute mode – then use the gpumodeswitch utility and change it to graphics, make sure you reboot the server to apply…

View original post 651 more words

Posted in Uncategorized

Click and Right click not working on Windows 10 Start Menu

I found out the hard way, that by removing the AppX software packages that come pre-installed in Windows 10, the “immersive” shell might not work as supposed.

To be more precise, clicking and right-clicking the Start Menu will not do anything.

 

In order to solve this, all AppX packages will need to be reinstalled and the following command will fix the issue:

Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

Tagged with: ,
Posted in error, fixes, HowTo, Windows 10

VpxClient has stopped working

1. Navigate to C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher
2. Edit as Administrator VpxClient.exe.config
3. Add the following lines in a new line, prefferably after </appSettings>:

<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v4.0″/>
</startup>

Posted in error, fixes, HowTo

Announcement – VMware VSAN 6.2

vcdx133.com

vcdx133 VMware Virtual SAN version 6.2 has been announced.  Two big improvements are the inclusion of Data Integrity (checksum on write and read) and improved UI integration into the vSphere Web Client.

This is the fourth major release of VSAN functionality.  VMware is definitely taking this product seriously and trying to evolve VSAN to a true enterprise-grade SDS stack.

If you are a customer that has an extensive investment in the VMware eco-system from a people, process and technology perspective, then VSAN could be a good choice if you are dipping your toes into the HCI space for a small part of your infrastructure.  Use-cases such as Management, DMZ, PCI, Dev/Test and EUC Clusters are a great fit, in my opinion.  If you are selecting an enterprise-wide solution for mission/business critical applications, then a more mature SDS vendor would be worth considering to minimise risk.

View original post 225 more words

Posted in Uncategorized
Follow Victor Homocea on WordPress.com
My Gravatar

Marius Sandbu

Software-defined datacenter, End user computing & cloud Architect (Microsoft MVP Azure, vExpert, Veeam Vanguard, Citrix CTA)

Trafictube.ro

cu camera pe bord

Thincomputing.net

by Michel Roth on the VDI, Desktop Virtualizaion, Application Virtualization, UEM aspects of End User Computing and Product Management

Ingmar Verheij

About Citrix, Remote Desktop, Performance, Workspace, Monitoring and more...

Carl Stalhood

Filling gaps in EUC vendor documentation

Archy.net

Don't Follow the Trend

Victor Homocea

blog.ogs.ro

Ray Heffer

Double VCDX #122 | Cloud Architect

Elvis Apostol

Calatorind prin lumi indepartate, pictez in cuvinte, lacrimi de culori.