Knowledge Search


×
 

[NFX] vSRX VNF is set to factory default configuration after power outage

  [KB34649] Show Article Properties


Summary:

An unexpected power outage occurred on NFX250, and the vSRX VNF was created with the factory default configuration. The configuration had to be restored from a backup. All other components were fine.​

Symptoms:

Cache setting is 'none' for data, configuration block device. In case of a power outage, there is the possibility that the config virtual block caches will not be flushed to the disk which may cause config disk corruption.

Example 15.1X49-D78.4:

</disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/junos/images/0/vjunos-config.img'/>
      <target dev='vdc' bus='virtio'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </disk>
Solution:

The writethrough cache function has been added to Junos OS 18.4 and later images. The recommendation is to upgrade the vSRX to a fixed version.

​Fixed XML:

</disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writethrough'/>
      <source file='/junos/images/0/vjunos-config.img'/>
      <target dev='vdc' bus='virtio'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </disk>​


Fixed Releases:  All 18.4 Releases.

The recommended device-cache configuration for vSRX is writethrough. This is for vSRX2 and vSRX3. For other vendor VNF's, it is recommended to clarify with the vendor what the driver-cache mechanism should be for that type of VNF.

It is recommended to configure driver-cache for vSRX in the CLI as follows:

set virtual-network-functions vsrxName image driver-cache writethrough




 
Modification History:
2019-09-12: Updated Solution field with fixed version.
Related Links: