Can't find the Jordan form of this 3x3 I have the matrix 
$$\begin{pmatrix}
2 & 2 & -1 \\
-1 & -1 & 1 \\
-1 & -2 & 2
\end{pmatrix}$$
and need to find its Jordan canonical form.  I can find that the only eigenvalue is 1 with algebraic multiplicity 3, and I can find two independent eigenvectors, 
$$\begin{pmatrix}1\\0\\1\end{pmatrix},\qquad \begin{pmatrix}0\\1\\2\end{pmatrix}$$
I am told that to find a generalized eigenvector I need to solve 
$$A\vec{x} = \vec\xi$$
where $\vec\xi$ is an eigenvector.  However, when I try to solve in this case, 
$$\begin{pmatrix}
1 & 2 & -1 \\
-1 & -2 & 1 \\
-1 & -2 & 1
\end{pmatrix}\vec{x} = \begin{pmatrix}1\\0\\1\end{pmatrix}$$
I find that there is no solution, and likewise for the other eigenvector.
I've also seen instruction that to find the generalized eigenvector you can solve $(A-\lambda I)^2\vec x=\vec0$ which in this case is
$$\begin{pmatrix}
1 & 2 & -1 \\
-1 & -2 & 1 \\
-1 & -2 & 1
\end{pmatrix}^2\vec{x} = \vec{0}$$
But the square of this matrix is the zero matrix.  I thought perhaps that means I can select any independent vector I want, but when I select $\begin{pmatrix}0\\0\\1\end{pmatrix}$ I find that the resulting transformation matrix does not produce a matrix in Jordan form.  That is to say, with 
$$T = \begin{pmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
1 & 2 & 1 \end{pmatrix}$$
If I compute $J=T^{-1}AT$ I get 
$$J = \begin{pmatrix} 1 & 0 & -1 \\
0 & 1 & 1 \\
0 & 0 & 1 \end{pmatrix}$$
Since that's not in Jordan form, I'm not sure what I'm doing wrong.

Since the only eigenvalue is $1$ and it has multiplicity $3$, you know that the Jordan normal form is one of a short list:
$$\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix},\hspace{1cm}
\begin{pmatrix}1 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix},\hspace{0.5cm}\text{or}\hspace{0.5cm}
\begin{pmatrix}1 & 1 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{pmatrix}.$$
Call these $A_1,A_2$, and $A_3$. As you say, we can determine the size of the Jordan blocks by looking at $\dim\ker(A-I)$, where $I$ is the $3\times 3$ identity matrix. Notice that
$$A-I=\begin{pmatrix}1 & 2 & -1 \\ -1 & 2 & 1 \\ -1 & -2 & 1 \end{pmatrix}$$
from which, by row operations for example, we see $\dim\ker(A-I)=2$. This means that $A$ has two Jordan blocks, so we have ruled out $A_1$. Next, compute $\dim\ker(A-I)^2$. Actually, $(A-I)^2$ is the $0$ matrix, so $\dim\ker(A-I)^2=3$. This tells us that the biggest Jordan block has rank $2$, so the correct answer is $A_2$.

As confirmation, Mathematica returns the Jordan normal form
$$J=\left(
\begin{array}{ccc}
 1 & 0 & 0 \\
 0 & 1 & 1 \\
 0 & 0 & 1 \\
\end{array}
\right)$$
with the conjugating matrix as
$$T=\left(
\begin{array}{ccc}
 0 & -1 & 0 \\
 1 & 1 & 0 \\
 2 & 1 & 1 \\
\end{array}
\right)$$
That is, $T^{-1}AT=J$.

