czasem po nie oczekiwanym włączeniu urządzenie z Junosem widzimy taki komunikat:
*********************************************************************** ** ** ** WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE ** ** ** ** It is possible that the primary copy of JUNOS failed to boot up ** ** properly, and so this device has booted from the backup copy. ** ** ** ** Please re-install JUNOS to recover the primary copy in case ** ** it has been corrupted. ** ** ** ***********************************************************************
co w takiej sytuacji? Wystarczy wykonać jedną komendę aby naprawić primary partycję.
root@srx_lab> 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: /
sprawdzenie przed ponownym uruchomieniem:
root@srx_lab> show system storage partitions Boot Media: internal (da0) Active Partition: da0s1a Backup Partition: da0s2a Currently booted from: backup (da0s2a) Partitions information: Partition Size Mountpoint s1a 292M altroot s2a 293M / s3e 24M /config s3f 342M /var s4a 27M recovery s4e 2.7M
Po ponownym uruchomieni urządzenia uruchamia się ze partycji active.
root@srx_lab> show system storage partitions Boot Media: internal (da0) Active Partition: da0s2a Backup Partition: da0s1a Currently booted from: active (da0s2a) Partitions information: Partition Size Mountpoint s1a 292M altroot s2a 293M / s3e 24M /config s3f 342M /var s4a 27M recovery s4e 2.7M