Symptom
Upgrade fail due to insufficient space in the /var/tmp:
N5K#install all kickstart bootflash:///n5000-uk9-kickstart.7.0.8.N1.1.bin system bootflash:///n5000-uk9.7.0.8.N1.1.bin
Pre-upgrade check failed. Return code 0x40930062 (free space in the filesystem is below threshold).
Getting into the bash and listing /var/tmp we see:
N5K# sh system internal dir /var/tmp | i csm
csm_sh_run_acfg_27567.txt 949
csm_acfg_exc_sp_43540162.txt 4936
csm_sh_run_acfg_27286.txt 0
csm_sh_run_acfg_27278.txt 0
Workaround
Use the hidden command: filesys delete