Storage 2 (TestTrack Unplugged series)

I’ll assume you read the first post in the series.

Storage 2
scenario

The initial note to delete Payroll is only seen on TestTrack – you won’t want to undo anything on the real exam as no scoring is done until the exam is completed.

Things to note:

  • “requires a 16 GB system drive that has the space pre-allocated and zeroed” = you will need 16GB of space
  • “must run on iSCSI” “storage administrator has stated that enough iSCSI storage already exists for your needs.”
  • “any means necessary” “short of deleting other virtual machines” = all these mean don’t get on the iSCSI appliance, don’t use NFS and don’t delete – but you can do anything else

Step1: Check the storage

Actually from the last question we know iSCSI0 only has 10GB after being extended, so we need the space to come from somewhere else.

storage

And we know there are no extra LUNs

nostorage

Step 2: Make space

So we need the space to come from somewhere. There are two iSCSI datastores other than iSCSI0 – iSCSI1 with one VM (177KB in use) and iSCSISharedVMs with 5 VMs and two templates.

The easiest way to get more space for iSCS0 is to move the one VM off of iSCSI1 and onto any other datastore, delete iSCSI1 and add that LUN as an extent to iSCSI0.

This makes iSCSI0 ~20GB and the new VM can then be created. Note that the new VMDK needs to be thick eager to get all the points.

Scoring:

Make sure the VM has a 16GB vmdk
$found = (get-vm e* |get-harddisk)
if (($found.capacitygb -ge 14) -and ($found.storageformat -eq "EagerZeroedThick") ) {$one = 1}

Make sure the VM’s VMDK is on iSCSI0
$found = ((get-vm e*)|get-harddisk).filename
if ($found -match "iSCSI0") {$two = 1}

Make sure Capture wasn’t deleted
$found = (get-VM capture)
if (($one -or $two) -and $found) {$three = 1}

Note that the third point requires the completion of one of the other points as well .  This prevent it being a free point if the item is skipped.

This entry was posted in Certification, Computing, PowerShell, Scripting, Storage, Virtualization, VMware and tagged , , , , , . Bookmark the permalink.

Leave a Reply