Systems Administrator

Case File: The Checkpoints That Fill the Disk

The storage of the Hyper-V host is almost full because somebody takes a checkpoint before every change and never removes it. At a simulated PowerShell prompt, list the checkpoints with Get-VMSnapshot (age and size), remove the ones older than 30 days with Where-Object and Remove-VMSnapshot, keep the recent ones and the one that is marked keep- (the way back from an upgrade), and check the free storage with Get-VMHost. The checks read the state of the host: removing everything, or ignoring the keep- name, fails.

50 min

Case File: The Checkpoints That Fill the Disk

The storage of the Hyper-V host is almost full because somebody takes a checkpoint before every change and never removes it. At a simulated PowerShell prompt, list the checkpoints with Get-VMSnapshot (age and size), remove the ones older than 30 days with Where-Object and Remove-VMSnapshot, keep the recent ones and the one that is marked keep- (the way back from an upgrade), and check the free storage with Get-VMHost. The checks read the state of the host: removing everything, or ignoring the keep- name, fails.

In this lesson:

  • hyper-v
  • powershell
  • checkpoints
  • storage
  • console
  • case-file

๐Ÿ”’ This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans