Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request vmhost snapshot

date_range 28-Mar-25

Syntax

content_copy zoom_out_map
request vmhost snapshot
<partition>
<re0 | re1>
<recovery>
<routing-engine>

Description

Create a recovery snapshot of the currently running and active file system partitions on the backup disk to recover the primary disk in case of failure.

On the device, back up the snapshot of the host OS image along with the Junos OS image. In case of failure of the primary disk, you can boot from the image available in the backup disk and then recover the primary disk with the snapshot created using the recovery option.

Options

none—Create a snapshot from the current disk to the target disk without partitioning the target disk. Contents on target disk is lost.

partition

(Optional) Create a snapshot from the current disk to target disk and partition the target disk. Contents on the target disk are lost

re0 | re1

(Optional) Select the Routing Engine (re0/re1) where you want to create the snapshot. Default is the current executing Routing Engine.

For PTX1000 routers, since there is only one RE, re0|re1 is not supported.

Note:

The QFX10002-60C and PTX10002-60C devices do not have primary and backup routing engines.

recovery

(Optional) Recover the primary disk from the snapshot content stored in the backup disk. This option is applicable only when the Routing engine is booted from backup disk. Contents in the primary disk are lost.

routing-engine

(Optional) Specify the Routing Engine on which the snapshot is to be created. The following options are available:

  • backup—Backup Routing Engine.

  • both—Both Routing Engines.

  • local—Routing Engine on the local Virtual Chassis member.

  • master—Primary Routing Engine.

  • other—Other Routing Engine.

Required Privilege Level

maintenance

Sample Output

request vmhost snapshot

content_copy zoom_out_map
user@host> request vmhost snapshot
warning: Existing data on the target may be lost
Proceed ? [yes,no] (no) yes 

warning: Proceeding with vmhost snapshot
Current root details,           Device sda, Label: jrootb_P, Partition: sda4
Snapshot admin context from current boot disk to target disk ...
Proceeding with snapshot on secondary disk
Mounting device in preparation for snapshot...
Cleaning up target disk for snapshot ...
Creating snapshot on target disk from current boot disk ...
Snapshot created on secondary disk.
Software snapshot done

request vmhost snapshot recovery

content_copy zoom_out_map
user@host> request vmhost snapshot recovery
warning: Existing data on the target may be lost
Proceed ? [yes,no] (no) yes 

warning: Proceeding with vmhost snapshot
Current root details,           Device sdb, Label: jrootb_S, Partition: sdb4
Snapshot admin context from current boot disk to target disk ...
Proceeding with snapshot on primary disk
Mounting device in preparation for snapshot...
Cleaning up target disk for snapshot ...
Creating snapshot on target disk from current boot disk ...
Primary disk is recovered now. Please issue "request vmhost reboot" to boot from the primary disk.
Software snapshot done

Release Information

Command introduced in Junos OS Release 15.1F3.

Note:

PTX3000 router supports the Routing and Control Board, RCBPTX.

footer-navigation