Junos OS

 View Only
last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  USB flash drive for creating a snapshot on QFX3500

    Posted 04-17-2024 18:37

    I originally asked this in Switching.

    I just got a QFX3500 and I'm trying to create a snapshot before I do anything else with it.  However, the switch will not recognize the drive.  I have not been able to find anything that shows requirements or partitioning schemes for the usb drive, other than that it must be at least 4GB.

    The drive I'm trying to use is a 16GB drive, brand name Philips.  It has a GPT partition table with a single FAT32 partition.  And here's what happens.

    root> request system snapshot partition  
    fpc0:
    --------------------------------------------------------------------------
    Clearing current label...
    Partitioning external media (da1) ...
    error: Unsupported snapshot media (M) - snapshot aborted

    If I try request system snapshot media, there are no autocomplete options.

    From the switch:

    root@:LC:0% fdisk -s /dev/da1
    /dev/da1: 1937 cyl 255 hd 63 sec
    Part        Start        Size Type Flags
      1:           1    31129599 0xee 0x00

    From my Linux computer:

    $ sudo fdisk -l /dev/sdb
    [sudo] password for mnewrock:  
    Disk /dev/sdb: 14.84 GiB, 15938355200 bytes, 31129600 sectors
    Disk model: ProductCode      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 4A5C7C12-8FE9-EE49-A97D-1899D1743874

    Device     Start      End  Sectors  Size Type
    /dev/sdb1   2048 31117311 31115264 14.8G Microsoft basic data



    ------------------------------
    MELISSA NEWROCK
    ------------------------------


  • 2.  RE: USB flash drive for creating a snapshot on QFX3500

    Posted 04-18-2024 04:59

    Hello,

    Try to change GPT on MBR with FAT32 on USB. Format the USB in Windows laptop with FAT32 or in Linux. 
    It might turn out that GPT is not recognized in FreeBSD/Junos. 



    ------------------------------
    WBW,
    Dmitriy
    ------------------------------



  • 3.  RE: USB flash drive for creating a snapshot on QFX3500

    Posted 04-19-2024 08:53

    Thank you.  I tried this, but no luck.  It still says "unsupported snapshot media".  In case the switch doesn't like the brand or the size of the flash drive, I have some 8GB Verbatim drives on order.  I'll hopefully find out early next week.



    ------------------------------
    MELISSA NEWROCK
    ------------------------------



  • 4.  RE: USB flash drive for creating a snapshot on QFX3500

    Posted 04-19-2024 15:23

    Since JunOS is FreeBSD on the back end, the FreeBSD man page for fdisk might be helpful here.  Obviously you want to be careful with fdisk, but at least from a cursory reading, you might want to try fdisk -i or fdisk -I to partition the USB flash from the switch itself.

    You may or may not need newfs after that.

    Good luck!