Let $X$ be an anti-canonical rational surface(i.e. $-K_X$ is effective) such that $K_X^2\geq 1$. Let $D$ be a $r$-class divisor ($D^2=r, D^2+D.K_X=-2$, the latter condition can be re-interpreted as $\chi(-D)=0$) such that $r\geq 0$ and the dual graph of divisor $D$ is a tree of projective lines(with possible multiplicities of each irreducible component). Thus $D.(-K_X)=D^2+2=r+2\geq 2$
Since $-K_X$ is effective, I denoted by $-K_X=C$ regarded as irreducible or reducible curves(not necessarily reduced). Does there exist any example of $X$ besides weak del pezzo surface of $K_X^2\geq 2$ to make $H^0(O_C(D))\neq 0$?