Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Maintaining the SRX4600 SSD

Replacing an SRX4600 Services Gateway SSD

This topic explains how to replace an Solid State-Drive (SSD) if RAID (Redundant Array of Independent Disks) is not configured on your SRX4600 Services Gateway.

The two SSDs installed in the SRX4600 Services Gateway are field-replaceable unit (FRUs). You need to power off the SRX4600 Services Gateway to replace a SSD from the services gateway.

When you are replacing a faulty SSD with a new SSD that has no Junos OS installed on it or if you have to reinstall the corrupted Junos OS image on the SSD, you should use a USB flash drive to install the Junos OS.

Removing an SSD from an SRX4600 Services Gateway

Ensure that you have the following equipment available:

  • Electrostatic discharge (ESD) grounding strap

  • An antistatic bag or an antistatic mat

  • SSD to replace

You need to power off the SRX4600 Services Gateway to remove a SSD from the services gateway.

To remove an SSD, see (Figure 1):

  1. Attach an ESD grounding strap to your bare wrist and connect the strap to one of the ESD points on the chassis.
  2. Place the antistatic bag or the antistatic mat on a flat, stable surface.
  3. Place your thumb on the SSD handle and press the tab below the SSD handle with one finger to unlock the SSD from its slot.
  4. Pull the SSD firmly to slide it out of its slot.
  5. Place the SSD in the antistatic bag or on the antistatic mat placed on a flat, stable surface.
Figure 1: Removing an SSDRemoving an SSD

Installing an SSD in an SRX4600 Services Gateway

Ensure that you have the following equipment available:

  • ESD grounding strap

You need to power off the SRX4600 Services Gateway to install a SSD into the services gateway.

To install an SSD, see (Figure 2):

  1. Attach an ESD grounding strap to your bare wrist and connect the strap to one of the ESD points on the chassis.
  2. Hold the SSD by its handle and slide it gently into its slot until the tab below the handle locks into the SSD slot.
  3. Follow the procedure in Creating a Bootable USB Flash Drive to Install Junos OS on an SRX4600 Services Gateway if the new SSD has no Junos OS installed on it.
Figure 2: Installing the SSDInstalling the SSD

Creating a Bootable USB Flash Drive to Install Junos OS on an SRX4600 Services Gateway

If Junos OS on the SRX4600 Services Gateway is damaged or if you are replacing a solid state-drive (SSD) that has no Junos OS installed on it, you can use a bootable USB flash drive to install Junos OS on the SSD.

This topic provides information on how to create a bootable USB flash drive and install Junos OS image on an SRX4600 Services Gateway.

Creating a Bootable USB Flash-Drive

You can create a bootable disk using any procedure listed below:

Before creating a bootable USB flash-drive, you must have the following items:

  • 3 GB (or larger) USB flash-drive (formatted with a FAT 32 file system)

  • Junos OS image file

    Example of the Install media:

    Note:

    As the Junos OS image for USB flash-drive is in .gz compressed format, you must decompress the file before writing it onto the USB flash-drive.

Warning:

When you create a bootable USB flash-drive, the contents of the USB flash-drive are deleted.

Creating a Bootable USB Flash Drive using an SRX High-end Device

To create a bootable USB flash-drive using an SRX High-end device:

  1. Connect to any SRX High-end device that has enough storage (approx. 3GB), through a console.

  2. Copy the Junos OS image to the /var/tmp directory of the SRX High-end device.

    In the example below, the junos install media is copied onto an SRX5800 Services Gateway:

  3. Insert a USB flash drive into the USB port of the SRX High-end device and check if the USB flash drive is recognized.

    For Example:

  4. Configure the USB flash drive as a boot disk using the dd commands:

    1. To check if the system can read and write the USB flash drive, erase the initial sectors of the USB flash drive using the command dd if=/dev/zero of=/dev/<Device Name> count=<n> . For example: Device Name= the device name given to the USB flsh drive (da0) and n = number of blocks.

    2. Copy the install-media image to the USB flash drive using the command dd if=<LOCATION>/<junos-install-media> of=/dev/<Device Name> bs=<n>m . For example: LOCATION = Locally where Junos OS image is stored (/var/tmp/), junos-install-media = Junos OS install media image, Device Name = the device name given to the USB flsh drive (da0), bs = block size, and n = number of blocks.

  5. Remove the USB flash drive.

The USB flash-drive is now ready to use as a bootable disk.

Creating a Bootable USB Flash Drive using an SRX4600 Services Gateway

To create a bootable USB flash-drive using an SRX4600 Services Gateway:

  1. Connect to any SRX4600 Services Gateway that has enough storage (approx. 3GB), through a console and login with root credentials.

  2. Copy the Junos OS install image to the /var/tmp directory of the SRX4600 Services Gateway.

  3. Copy the install-media to hypervisor using the statement scp

    Example:

  4. Insert a USB flash drive into the USB port of SRX4600 services gateway.

  5. Enter hypervisor using the command vhclient -s and check the image under /var/tmp/

  6. Check if the USB flash drive is recognized.

    The USB flash drive name is sdc

  7. Configure the USB flash drive as a boot disk using the dd commands:

    1. To check if the system can read and write the USB flash drive, erase the initial sectors of the USB flash drive using the command dd if=/dev/zero of=/dev/<Device Name> count=<n> . For example: Device Name = the device name given to the USB flsh drive (sdc) and n = number of blocks.

    2. Copy the install-media image to the USB flash drive using the command dd if=<LOCATION>/<junos-install-media> of=/dev/<Device Name> bs=<n>m . For example: LOCATION = Locally where Junos OS image is stored (/var/tmp/), junos-install-media = Junos OS install media image, Device Name = the node name given to the USB flsh drive (da0), bs = block size and n = number of blocks.

    3. Exit from the hypervisor.

  8. Remove the USB flash drive.

The USB flash-drive is now ready to use as a bootable disk.

Creating a Bootable USB Flash Drive using a using a Windows Device

To create a bootable USB flash-drive using using a Windows Device:

  1. Install Win32 Disk Imager on your laptop or computer. You can download it from https://sourceforge.net/projects/win32diskimager/ .

  2. Download the required Junos OS image from the Downloads page to the Documents directory of your laptop or computer.

  3. Insert a USB flash drive into the USB port of your laptop or computer.

  4. Open the win32diskimager application and in the Image File box type the path to the Documents directory or click the folder icon to navigate to the Documents directory and select the install media image.

  5. Under Device, select the USB flash-drive and click Write and Confirm.

  6. The Progress box shows the progress. Remove the USB flash drive once it is complete.

The USB flash-drive is now ready to use as a bootable disk.

Creating a Bootable USB Flash Drive using a MAC OS X Device

To create a bootable USB flash-drive using a MAC OS X device:

  1. Copy the install media (.img format) to the /var/tmp/ directory of the MAC OS X device using the statement scp .

  2. Run the diskutil list command to get the list of devices on the MAC OS X device.

  3. Insert the USB flash-drive into the USB port of the MAC OS X device.

  4. Run the diskutil list command again to determine the device node assigned to USB flash-drive (e.g. /dev/disk2).

  5. Run the diskutil unmountDisk /dev/diskN command (replace N with the disk number from the last command - in the previous example, N would be 2)

  6. Execute sudo dd if=/var/tmp/junos-install-media-usb-srxhe-x86-64-17.4R1-S1.9.img of=/dev/rdiskN bs=1m

    Note:

    Using /dev/rdisk instead of /dev/disk may be faster.

    Note:

    If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M.

    Note:

    If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the 'Disk Utility.app' and unmount (don't eject) the USB flash-drive.

  7. Run the command diskutil eject /dev/diskN.

Installing Junos OS on SRX4600 Services Gateway Using the Bootable USB Flash-Drive

Before installing Junos OS using a bootable USB flash-drive, you must first complete the steps in Creating a Bootable USB Flash-Drive .

  1. Insert the USB flash drive into the USB port of the SRX4600 services gateway.

  2. Connect to the SRX4600 services gateway through a console.

  3. Power cycle (off/on) the SRX4600 services gateway and Press Esc for boot options.

  4. Select Boot Manager and press Enter key.

  5. From the Boot Option Menu, select USB flash drive and press Enter key.

  6. In the GRUB Menu select “Install Juniper Linux with secure boot support” and press Enter key.

  7. Once prompted “Remove the USB and press [Entre] key to Reboot...”, remove the USB flash drive and press Enter key. SRX4600 services gateway will reboot with new software.

Copying Files From or To an SRX4600 Services Gateway Using an USB Flash-Drive

This topic explains how to copy files from or to an SRX4600 Services Gateway using an USB flash-drive.

Copying Files From an SRX4600 Services Gateway Using an USB Flash-Drive

This procedure explains how to copy files from an SRX4600 Services Gateway to an USB flash-drive.

  1. Connect to SRX4600 Services Gateway through a console and login with root credentials.

  2. Insert the USB flash drive (Formatted with FAT32 file system) into the SRX4600 USB port.

  3. Enter into hypervisor by using the vhclient –s command.

  4. Using the lsscsi command check if the USB flash-drive is being recognized.

  5. Mount the USB flash-drive.

  6. Go back to Junos prompt by using the exit command.

  7. Use the command ls -lrt to list the files located at /var/tmp.

    File1.txt is the file located in /var/tmp

  8. Copy the required file to the USB flash-drive as shown in the example below.

    In the example below File1.txt is copied to the USB flash-drive:

  9. Go back to hypervisor.

  10. Unmount the USB flash-drive and exit hypervisor.

  11. Remove the USB flash-drive.

Copying Files To an SRX4600 Services Gateway Using an USB Flash-Drive

This procedure explains how to copy files from USB flash drive to a SRX4600 services Gateway /var/tmp/ folder.

  1. Connect to SRX4600 Services Gateway through a console and login with root credentials.

  2. Insert the USB flash drive (Formatted with FAT32 file system) into the SRX4600 USB port.

  3. Enter into hypervisor by using the vhclient –s command.

  4. Using the lsscsi command check if the USB flash-drive is being recognized.

  5. Mount the USB flash-drive.

  6. Go back to Junos prompt by using the exit command.

  7. Copy the required file from USB flash drive to SRX4600 Services Gateway as shown in the example below.

    In the example below File2.txt is copied to the SRX4600 Services Gateway /var/tmp/ folder:

  8. Go back to hypervisor.

  9. Unmount the USB flash-drive and exit hypervisor.

  10. Remove the USB flash-drive.