GDPR doesn't care about storage. Even if you just acquired personal information without processing it, you still had to be GDPR compliant.
In fact, the solution suggested above (only using a truncated IP address) would still require you to acquire and process the IP address and thus be subject to GDPR.