Junos OS

last person joined: 7 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Commit fails.

    Posted 09-03-2014 01:26

    Hi ,

     

    Could you please help me? 

    I've tried to create a 99999 records preffix list and it actually commited it.

    So now I have it. But it stopped commiting anything else.

     

    j# commit
    error: could not open configuration database (juniper.data+)

     

    So I can't even delete this large preffix list.

    Here is some diagnostic info:

     

    leo@j> show system storage
    Filesystem Size Used Avail Capacity Mounted on
    /dev/da0s1a 292M 154M 115M 57% /
    devfs 1.0K 1.0K 0B 100% /dev
    /dev/md0 20M 6.4M 12M 36% /junos
    /cf/packages 292M 154M 115M 57% /junos/cf/packages
    devfs 1.0K 1.0K 0B 100% /junos/cf/dev
    /dev/md1 406M 406M 0B 100% /junos
    /cf 20M 6.4M 12M 36% /junos/cf
    devfs 1.0K 1.0K 0B 100% /junos/dev/
    /cf/packages 292M 154M 115M 57% /junos/cf/packages1
    procfs 4.0K 4.0K 0B 100% /proc
    /dev/bo0s3e 24M 590K 22M 3% /config
    /dev/bo0s3f 342M 161M 154M 51% /cf/var
    /dev/md2 168M 143M 11M 93% /mfs
    /cf/var/jail 342M 161M 154M 51% /jail/var
    /cf/var/log 342M 161M 154M 51% /jail/var/log
    devfs 1.0K 1.0K 0B 100% /jail/dev
    /dev/md3 31M 4.0K 29M 0% /mfs/var/run/utm
    /dev/md4 1.8M 4.0K 1.7M 0% /jail/mfs

    leo@j>

     

     

    root@j% nand-mediack -C
    Media check on da0

     

    Although, found this what I think the reason is:

     

    root@j% fsck -y -f /dev/bo0s3f
    ** /dev/bo0s3f (NO WRITE)
    ** Last Mounted on /cf/var
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    UNREF FILE I=11168 OWNER=root MODE=100644
    SIZE=0 MTIME=Sep 3 17:35 2014
    CLEAR? no

    UNREF FILE I=11192 OWNER=root MODE=100644
    SIZE=0 MTIME=Aug 10 19:00 2014
    CLEAR? no

    UNREF FILE I=11193 OWNER=root MODE=100644
    SIZE=126976 MTIME=Sep 3 19:42 2014
    CLEAR? no

    UNREF FILE I=11194 OWNER=root MODE=100640
    SIZE=2848 MTIME=Sep 3 17:35 2014
    CLEAR? no

    ** Phase 5 - Check Cyl groups
    494 files, 82677 used, 92641 free (761 frags, 11485 blocks, 0.4% fragmentation)

     

    Tried to unmount it - no luck:

     

    root@j% umount /dev/bo0s3f
    umount: unmount of /cf/var failed: Device busy
    root@j%

     

    Could you please tell me how to fix it?

    Is there a way of fixing it from cli? Or I have to restart router and somehow enter a single user mode? Or even use some kind of live-usb-flash drive? If so where could I get it?

     

    I use:

    leo@j> show version
    Hostname: j
    Model: srx210he
    JUNOS Software Release [12.1X46-D20.5]

    leo@j>

     

    Also does anyone know what configuration database limit is? If I could I would be willing to create a half a million records preffix list and use it for filtering traffic to stop any traffic from compromised (spam, botnets, advertising tracking) networks.

     

    If the limitation does not allow to use so many records is there a workaround? Like for example on cisco 867 there was not enough space to save large config, but you could enable archived/compressed mode and It could fit larger config.

     

    Thanks,

    Leo

     

     

     

     

     



  • 2.  RE: Commit fails.
    Best Answer

    Posted 09-05-2014 05:15
    I decided to play the dirty way: Started root shell then: cd /config; mv juniper.conf.1.gz juniper.conf.gz; md5 juniper.conf.gz and renewed md5 sum in juniper.conf.md5 file. Then restarted and voila - it works as a charm. Now all what's left to do is to figure out what is the safe amount of network addresses for prefix lists without stuffing up the configuration database.