Repair Boot Image Router Juniper - Ardi Nets

Latest

learn & share

Random Posts

Monday, July 18, 2016

Repair Boot Image Router Juniper


Pagi-pagi rutinitas awal masuk kantor adalah cek koneksi vpn semua cabang operasional untuk memastikan tidak ada masalah. Koneksi vpn menjadi tulang punggung sistem operasional yang tersentralisasi di kantor pusat. Backup link salah satu cabang ternyata terindikasi down. Iseng-iseng coba masuk ke sistem routernya, sembari contact ISP untuk pengaduan layanan. Pagi-pagi dah ngadu hehehe...

Begitu login ke router, ternyata ada warning bahwa router booting menggunakan backup image.

***********************************************************************
**


** 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.
**
***********************************************************************

Hal ini terjadi karena file system primary image corrupt yang bisa disebabkan oleh listrik yang tiba-tiba mati atau proses shutdown yang tidak sempurna. Meskipun booting menggunakan backup image, tapi semua fungsi masih bisa berjalan normal. Tetapi router harus kembali normal dengan booting menggunakan primary imagenya.

Berikut langkah-langkah untuk mengembalikan router agar booting menggunakan primary image.

Checking

1. Cek system alarm dari router

    root@JC> show system alarms
   1 alarms currently active
   Alarm time Class Description
   2015-06-08 22:41:02 WIT Minor Host 0 Boot from backup root

2. Cek versi JUNOS dari primary dan backup image router

   root@JC> show system snapshot media internal
   Information for snapshot on internal (/dev/da0s1a) (backup)
   Creation date: Sep 12 14:03:22 2014
   JUNOS version on snapshot:
     junos : 10.0R3.10-domestic
   Information for snapshot on internal (/dev/da0s2a) (primary)
   Creation date: Sep 12 14:43:53 2014
   JUNOS version on snapshot:
     junos : 11.4R7.5-domestic

Versi junos antara primary dan backup berbeda, yang seharusnya sama.

3. Cek router booting dari image yang mana

   root@JC> show system storage partitions
   Boot Media: internal (da0)
   Active Partition: da0s1a <-- Info Primary Image
   Backup Partition: da0s2a <-- Info Backup Image
   Currently booted from: backup (da0s2a) <-- Status Boot Image

Recovery Image

1. Repair primary image

   root@JC> request system snapshot media internal slice alternate
   Formatting alternate root (/dev/da0s1a)...
   Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes)
   The following filesystems were archived: /

2. Reboot router untuk menghilangkan alarm

   root@JC> request system reboot media internal
   Reboot the system ? [yes,no] (no) yes

3. Cek status alarm apakah masih aktif

   root@JC> show system alarms
   No alarms currently active

4. Cek status boot image

   root@JC> show system storage partitions
   Boot Media: internal (da0)
   Active Partition: da0s1a <-- Info Primary Image
   Backup Partition: da0s2a <-- Info Backup Image
   Currently booted from: active (da0s1a) <-- Status Boot Image

5. Cek versi JUNOS primary dan backup

   root@JC> show system snapshot media internal
   Information for snapshot on internal (/dev/da0s1a) (backup)
   Creation date: Jun 8 16:17:56 2015
   JUNOS version on snapshot:
     junos : 11.4R7.5-domestic
   Information for snapshot on internal (/dev/da0s2a) (primary)
   Creation date: Jun 8 16:03:45 2015
   JUNOS version on snapshot:
     junos : 11.4R7.5-domestic

Terlihat bahwa versi JUNOS antara primary dan backup sudah sama, beres deh....:-)

No comments:

Post a Comment