2. Given $a>0, x, y$ satisfy the constraint conditions $\left\{\begin{array}{l}x \geqslant 1, \\ x+y \leqslant 3, \\ y \geqslant a(x-3) .\end{array}\right.$ If the minimum value of $z=2 x+y$ is 1, then $a=$