I have NextCloud running on a RaspberryPi4 (yeah, I know - not a huge server etc ) using Ubuntu server. For the data, I have a 6TB Ironwolf HD connected via USB. The problem is that it keeps spinning down after a while. One thing is that this sometimes makes response times longer, but my main concern is failure. That drive is made for spinning 24/7 and I am afraid the constant spinning up/down will make the drive fail faster.
Is there a way to prevent the drive from spinning down? Ubuntu server (no GUI) and connected via USB3.