Have a caution with the regular consumption of Vitamin D. Unlike other vitamins, it is a hormone, and your body will adjust itself accordingly, producing less natural Vitamin D. Instead of a supplement, I would recommend a natural light sun lamp. Just 15 minutes should give you a whopping natural dose.
As far as Ibuprofen for pain, I’m one of those individuals who never profited from conventional NSAIDs. However, I was eventually prescribed Celebrex, which I found to be the first pain reliever I had ever taken that worked. A different class of drug entirely.
Other things of potential interest. Researchers in Africa made the interesting discovery that people who had very low levels of Vitamin A, due to dietary deficiency, also had unusually high levels of Tumor Necrosis Factor alpha (TNF-1), which is often a major part of arthritis.
Just bringing up their Vitamin A to normal levels as much as halved the amount of TNF-1 in their blood. Importantly, even with severe deficiency, they had to be careful how much of the Vitamin to give, and over what time period, because it is so easy to overdose.