Lỗi tạo bản ghi snapshot hyper-v 2023 năm 2024

Volumes on the virtual machine are almost full.

Volumes on the virtual machine do not have enough free space for the snapshot. Microsoft recommends that at least 10% of the virtual machine volume is available for the snapshot.

Recommended action: create more space on the volume.

The Hyper-V integration component is absent.

The Hyper-V integration component is not properly installed in the virtual machine.

Recommended action:

See The Hyper-V integration component is not installed.

The VSS framework in the virtual machine does not work properly

The following application error event may be written to the virtual machine during backup:

Event Type: Error Event Source: VSS Event Category: None Event ID: 12302 Date: 1/8/2009 Time: 1:36:21 AM User: N/A Computer: ARTICTALEVM8 Description: Volume Shadow Copy Service error: An internal inconsistency was detected in trying to contact shadow copy service writers. Please check to see that the Event Service and Volume Shadow Copy Service are operating properly. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Recommended action: Run the vssadmin list writers command.

If no writer is listed in the output and a similar error is logged, refer to the following to resolve this issue:

http://support.microsoft.com/kb/940184

A CSV timeout occurred

The bpfis log contains the following:

VssNode::prepareCsvsForBackup: CSV TimeOut expired, Not all required CSV available in required state.

One or more or the required cluster shared volumes (CSV) cannot be prepared in the specified timeout period. A current backup that started from another node needs one or more of the same CSVs.

Increase the Cluster shared volumes timeout period and rerun the backup, or try the backup at another time.

See Cluster shared volumes timeout (Hyper-V with VSS).

A local disk has been added to a VM that is on CSV

For a successful backup of a virtual machine on a CSV, the virtual machine must use CSV volumes only. If a local disk on the Hyper-V server (not a CSV volume) is added to the virtual machine, the backup fails.

Reconfigure the virtual machine to use CSV volumes only, and rerun the backup.

The option is disabled

The bpfis log contains the following:

VssNode::prepare Backup type of VM [] will be OFFLINE and configuration parameter allowOfflineBackup] is not set. To backup this VM, set [allowOfflineBackup] configuration parameter.

NetBackup is not allowed to perform an offline backup of the virtual machine, because the option is disabled.

Đối với VM trong hyper-v tạo và xóa checkpoint là chuyện bình thường. Tuy nhiên vì lý do nào đó chúng ta sử dụng phần mềm Backup Veritas hoặc Veeam backup mà bị failed giữa chừng thì máy ảo trạng thái có vết checkpoint hay snapshot trong Hyper-v mà không thể xóa/merge được trên giao diện. Về bản chất xóa checkpoint gọi là merge disk vhdx.

Giải quyết

Chúng ta dùng lệnh kiểm tra máy ảo trạng thái recoverysnaphot nhé.

Lệnh kiểm tra các máy ảo trên HOST

Get-VMSnapshot -VMName 'VM' -ComputerName 'HOST'

Xóa checkpoint (Snapshot) mà không thể thực hiện trên giao diện Hyper-V manager, Bởi lý do phần mềm thứ 3 như Veeam hay vertias đã dùng cơ chế snapshot để backup sau khi backup sẽ tự động xóa checkpoint như bị cúp điện hay lỗi không thể rollback đôi khi hỏng luôn VM. Cho nên máy ảo sẽ trạng thái snapshotType là Recovery.

Get-VMSnapshot -VMName 'VM' -ComputerName 'HOST' -SnapshotType Recovery

Lỗi tạo bản ghi snapshot hyper-v 2023 năm 2024

Cho nên để xóa checkpoint chúng ta phải clear bằng tay nhé bằng lệnh bên dưới:

Get-VMSnapshot -VMName 'VM' -ComputerName 'HOST' -SnapshotType Recovery | Remove-VMSnapshot

Sau khi run bằng lệnh chúng ta thấy quá trình xóa checkpoint đang thực hiện trên giao diện

Lỗi tạo bản ghi snapshot hyper-v 2023 năm 2024

Như vậy thì Phương Nguyễn Chia sẽ xong cách xóa hay merge 1 snapshot hay checkpoint dạng bị treo hoặc đang chạy backup bị lỗi.

Nếu cảm thấy bài viết hay hãy nhớ like share

Phương Nguyễn

Chúc bạn thành công

Lỗi tạo bản ghi snapshot hyper-v 2023 năm 2024

Phương Nguyễn là chủ sở hữu trang web viettechgroup.vn, phuongnguyenit.com. Phương Nguyễn là IT Pro, MCSA, MCSE, MCITP, CCNA, VCP, LPI, Cloud Services.. Chuyên gia quản trị cao cấp trong các tập đoàn, doanh nghiệp lớn.

Phương Nguyễn có hơn 16 năm kinh nghiệm trong lĩnh vực Quản trị hệ thống CNTT vừa và nhỏ, các giải pháp của Microsoft, Cloud, Quản trị hạ tầng mạng Cisco (Router, Swicth, FIrewall ASA Cisco,..), Fortigate,.. Quản trị ảo hóa Vmware vSphere, vCenter,..Các giải pháp sao lưu dự phòng của hãng lớn: Veeam Backup, Veritas Backup, Net Backup,…