The following example shows how to expand the allocation for license storage in NVRAM.
Router# license expand nvram
Caution: IOS configuration space will be re-partitioned in NVRAM.
You must back up your IOS configuration before running this command.
Do you wish to continue NVRAM re-partition?[confirm]
When you enter y, NVRAM is checked to make sure that it has enough space for your files and the expanded licensing storage. If there is enough space for your files in the resized NVRAM, this message is sent to the console:
License storage expanded successfully.
IOS must be restarted for changes to take effect.
If there is not enough space for your configuration files, this message is sent to the console:
Error: startup-config is too large. Compress the config with "service compress-config" followed by "copy system:running-config nvram:startup-config" and rerun "licence expand nvram".
If, after compression, the startup configuration file is still too large for the resized NVRAM, this message is sent:
Error: cannot expand the license storage. Insufficient NVRAM to store compressed configuration.
If expansion cannot take place because the block files are too large, this message is sent to the console:
Error: cannot expand the license storage. Existing block files are too large. Back up existing block files, delete them from nvram and reissue “license expand nvram”.
If the license expand nvram command is issued on an already expanded NVRAM, this message is sent to the console:
Error: license storage already expanded to maximum size.