Description

This article explains the functional difference between the two Junos CLI commands: request vmhost snapshot and request vmhost snapshot partition, both used for creating recovery snapshots of the Junos host OS image. Understanding the difference helps prevent accidental data loss on the backup disk.

Symptoms

Unclear when to use partition option while creating a snapshot.

Concerns over possible data loss on backup disk.

Errors or confusion when attempting to recover the primary disk from snapshot.

Backup disk not recognized or contains incorrect data structure.

Solution

request vmhost snapshot

  • Function: Creates a recovery snapshot of the currently running and active file system partitions and stores it on the backup disk.
  • Key Point: Does not partition or format the backup disk.
  • Use Case:
    • Routine snapshot updates.
    • Backup disk is already partitioned and in good condition.
    • No risk of data loss on backup disk.

🔹 request vmhost snapshot partition

  • Function: Partitions and formats the backup disk, then creates a recovery snapshot of the current active disk.
  • Key Point: Erases all contents of the backup disk.
  • Use Case:
    • First-time snapshot on a new or unformatted backup disk.
    • Recovery from corrupted backup disk.
    • When you are unsure about the state of the backup disk and can tolerate data loss.


Modification History

2025-07-08 : Article Created