Symptom
The NX-OS Compact Image Procedure may fail on Nexus 3000, 3100, and 3500 devices when reducing the file size of an NX-OS binary image file in the NX-OS 9.3(x) software train or higher. An example of this issue is shown below, where the NX-OS Compact Image Procedure has been invoked on the NX-OS 9.3(3) binary image file while copying the binary image file via SCP (Secure Copy Protocol):
switch# copy scp://username@192.0.2.100/nxos.9.3.3.bin bootflash: compact vrf management
Outbound-ReKey for 192.0.2.100:22
Inbound-ReKey for 192.0.2.100:22
username@192.0.2.100's password:
nxos.9.3.3.bin 29% 477MB 4.9MB/s 03:49 ETA
lost connection
Scp Compact of /bootflash/nxos.9.3.3.bin failed
Error doing scp
Conditions
This issue can be observed under the following conditions:
1. Issue is observed on a Nexus 3000 (3048, 3064, etc.), 3100 (3132, 3172, etc.), or 3500 (3548-10G, 3548-10GX, etc.) device.
2. Nexus device is running an NX-OS software release prior to 7.0(3)I7(7) (such as 7.0(3)I7(3), 7.0(3)I7(6), etc.) or 9.2(4) (such as 9.2(1), 9.2(3), etc.)
3. Attempting to reduce the file size of an NX-OS 9.3(x) software release binary image file through the NX-OS Compact Image Procedure via SCP (Secure Copy Protocol).
Workaround
Invoking the NX-OS Compact Image Procedure against an NX-OS software binary image file in the 9.3(x) train or higher (such as 9.3(1), 9.3(2), 9.3(3), etc.) is not supported until NX-OS software release 7.0(3)I7(7) or 9.2(4).
In order to invoke the NX-OS Compact Image Procedure against an NX-OS software binary image file in the 9.3(x) train or higher, one must upgrade to NX-OS software release 7.0(3)I7(7) (or higher) or 9.2(4) (or higher).
Further Problem Description