[j-nsp] Backup u-boot image on SRX210?

Elle Plato techgrrl at gmail.com
Thu Oct 4 14:40:05 EDT 2012


On Thu, Oct 4, 2012 at 11:25 AM, prd::S <prd.stee at gmail.com> wrote:
> Hi, All.
>
> A power outage occured when I was flashing the u-boot image on an
> SRX210 via tftp.
> Then there's no output on the serial console even after several resets.
> I suspect that the primary u-boot image might be corrupted.
>
> The questions are:
> Does SRX210 has a backup u-boot image?
> If so, how to boot from that image?
>

SRX-210 devices should be configured for dual boot partition by
default.  When you login after the primary
is corrupted the login banner should warn you that the device booted
from the alternate image,
something like:  WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE
and "show system alarms" should provide an alarm indicating the same thing.

I cannot remember how to tell if you have a dual boot partition, I
suspect you can look in /dev
for two partitions.  You can backup the running image to the failed
primary with system snapshot:

device> request system snapshot slice alternate

Formatting alternate root (/dev/da0s1a)...
Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes)
The following filesystems were archived: /

If you are missing autorecovery information, there will be an alarm
saying so, do this:
request system autorecovery state save
request system configuration rescue save

And then "request system reboot" to boot from the restored primary.

All this should be good google foo to look for a more detailed explanation.

HTH,

Elle Plato


More information about the juniper-nsp mailing list