Check /usr/src and /usr/local/src for file size
du -sm /usr/src
du -sm /usr/local/src
or check all /usr directories
du -sm /usr/src/*
You could move /usr/local to a separate partition. Make a new partition, format, and copy files from /usr/local over. Edit /etc/fstab and add a new line for /usr/local.
Example:
/dev/sda2 /usr/local xfs defaults 1 2
Set the file system to the filesystem you formatted the partition with and the correct device.
Verify copy and remove files from the original partition for local and then `mount -a` You could move just about any other directory under /usr over to its own partition as well. Just make sure that the files you move do not have any running processes and if so, stop those services first.