Consider a square matrix $A\in\mathbb{R}^{N\times N}$. We know that it's eigenspace is $A-$invariant. Suppose that $\mathcal{S}\subset\mathcal{R}^N$ is $A-$invariant and $\mathcal{S}\neq\mathcal{R}^N$. Is it necessary that $\mathcal{S}$ is a subset of the subspace spanned by all the eigenvectors of $A$? It seems correct to me, don't know how to prove it!
Clearly, if $\mathcal{S}$ is one-dimensional, it belongs to an eigenspace.
No. Let
$$M:=\begin{pmatrix} 0& 0 & 0\\ 0 & 1 & 1\\ 0 & 0 & 1\end{pmatrix}.$$
Then $M$ has two eigenvectors $(1,0,0)^T$ and $(0,1,0)^T$. Yet, take $V$ to be the subspace spanned by $(0,1,0)^T$ and $(0,1,1)^T$, which is invariant under $M$ but not spanned by any subset of its eigenvectors.