request vmhost snapshot
Syntax
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)
Create a snapshot from the current disk to target disk and partition
the target disk on Routing Engine in slot 0 ( 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:
|
Required Privilege Level
maintenance
Sample Output
request vmhost snapshot
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
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.
PTX3000 router supports the Routing and Control Board, RCBPTX.