cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
26621
Views
0
Helpful
7
Replies

How to clean up files on bootflash, Cisco 4331

chriswj88
Level 1
Level 1

I have a new Cisco 4331 that takes about 10 minutes to boot.  While watching the console at boot I see the boot hangs for a very long time with the message:

“WARNING: Attempting to use bootflash for packages storage!”

Then I see the message “Flash disk quota exceeded [free space is xxxx kB] - Please clean up files on bootflash”

 

After boot completes a “show flash:” displays hundreds of .pkg package files.  I stopped hitting more after about 500 lines.  I’m assuming the long boot time has something to do with inadequate free space in the flash memory do to all of the package files being stored in flash.

 

I’m use to older systems that have one .bin image file and maybe a few other files, but not hundreds of package files.  Are any of these package files needed at boot, or are they just available there for installing additional features/packages?

 

I have found other posts related to upgrades that triggered the “WARNING: Attempting to use bootflash for packages storage!” and/or “Flash disk quota exceeded [free space is xxxx kB] - Please clean up files on bootflash” but this is a factory new router I have and no upgrades have been done.

 

I see running “software clean” is recommended for removing unneeded package files on a Cisco switch, but does this work and is it safe to do on a Cisco 4331?

 

If “software clean” isn’t something that can be run on a 4331 router, what package files are safe to manually delete?

 

7 Replies 7

Leo Laohoo
Hall of Fame
Hall of Fame
request platform software package clean

Leo,

Can you expand on this a bit?

Is "request platform software package clean" a command I can issue to clean up flash on the 4331?

 

Thanks

The command is also be found in the Release Notes.

I ran the command “request platform software package clean” and got:

BROUTER#request platform software package clean

This operation may take several minutes...

  Cleaning up unnecessary package files

No path specified, will use booted path bootflash:sysboot/packages.conf

Cleaning bootflash:sysboot

    Scanning boot directory for packages ... done.

    Preparing packages list to delete ...

      isr4300-firmware_dreamliner.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_dsp_analogbri.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_dsp_sp2700.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_dsp_tilegx.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_ngwic_t1e1.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_nim_async.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_nim_bri_st_fw.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_nim_cwan.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_nim_ge.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_nim_shdsl.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_nim_ssd.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_nim_xdsl.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_prince.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_sm_10g.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_sm_1t3e3.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_sm_async.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-firmware_sm_dsp_sp2700.16.09.01.SPA.pkg

        File is in use, will not delete.

      isr4300-mono-universalk9.16.09.01.SPA.pkg

        File is in use, will not delete.

      packages.conf

        File is in use, will not delete.

    done.

  SUCCESS: No extra package or provisioning files found on media. Nothing to clean.

 

So it looks like nothing was removed and I’m still getting the

WARNING: Attempting to use bootflash for packages storage!

Flash disk quota exceeded [free space is 1899648 kB] - Please clean up files on bootflash.

File is in use” seems clear, this package file is needed.  But the warning message says “Attempting to use bootflash for packages storage” and the instruction says “Please clean up files on bootflash” which seems to imply there are unneeded files also being stored in flash.  This leads me back to my original question about what package files are needed and which are not?  This is what a dir of my flash looks like:

BROUTER#dir flash:

Directory of bootflash:/

 

128513  drwx             4096  Mar 10 2021 15:02:01 +00:00  .installer

32129  drwx             4096  Mar 10 2021 15:06:59 +00:00  sysboot

   11  -rw-        583079197  Oct 20 2018 01:48:03 +00:00  isr4300-universalk9.16.09.01.SPA.bin

   12  -rw-               35  Feb 22 2021 21:47:30 +00:00  pnp-tech-time

   13  -rw-           120490  Feb 22 2021 21:47:39 +00:00  pnp-tech-discovery-summary

96385  drwx             4096  Oct 20 2018 02:01:00 +00:00  core

152609  drwx             4096   Mar 2 2021 20:50:51 +00:00  .prst_sync

184737  drwx             4096  Oct 20 2018 01:58:30 +00:00  .rollback_timer

72289  drwx             4096  Oct 20 2018 01:58:31 +00:00  gs_script

80321  drwx            61440  Mar 10 2021 15:07:48 +00:00  tracelogs

112449  drwx             4096  Feb 22 2021 22:29:24 +00:00  .dbpersist

120481  drwx             4096  Oct 20 2018 01:58:49 +00:00  virtual-instance

   14  -rw-               30  Mar 10 2021 15:03:47 +00:00  throughput_monitor_params

136545  drwx             4096  Oct 20 2018 01:59:58 +00:00  onep

   15  drwx             4096  Feb 22 2021 20:09:05 +00:00  lost+found

   16  -rw-              836  Feb 26 2021 00:40:21 +00:00  vlan.dat

 

3258179584 bytes total (1945141248 bytes free)

 

Do I only need my isr4300-universalk9.16.09.01.SPA.bin and what is in /sysboot and can I safely copy off/delete everything else?

There is nothing to delete because the router firmware is on Bundle Mode.  However, post the complete output to the following commands: 

dir flash:core
dir crashinfo:

Leo, thanks for your continued help with my issue.  Following is the command response you requested.

BROUTER#dir flash:core
Directory of bootflash:/core/

104417  drwx             4096  Oct 20 2018 01:58:30 +00:00  modules
96386  -rw-                1  Mar 10 2021 22:49:34 +00:00  .callhome

3258179584 bytes total (1945149440 bytes free)


BROUTER#dir flash:crashinfo
%Error opening bootflash:/crashinfo (No such file or directory)


BROUTER#
BROUTER#dir crashinfo:
            ^
% Invalid input detected at '^' marker.

If there is a crashinfo directory or file, I was unable to find it.

This is a Cisco 4331 with two NIM-ES2-8 modules installed.

System Bootstrap v16.7(3r)

running isr4300-universalk9.16.09.01.SPA.bin

 

Review Cisco Networking for a $25 gift card