This question came to me after a discussion on another post on the site, which you can find here.
I will restrict the following discussion to Hamiltonian systems. Also, I will use the abbreviated notation $\partial_t$ for the partial derivative with respect to time, $\partial/\partial t$.
Let $\rho(p,q,t)$ be the ensemble probability density; this function satisfies in general Liouville's equation:
$$\frac{d\rho}{dt} =\partial_t \rho + \{\rho,H\}=0 \tag{1}\label{1}$$
where $H$ is the Hamiltonian and $\{\cdot\}$ are Poisson brakets.
We can get the average of some thermodynamic quantity $a(p,q)$ by computing
$$A(t) = \langle a(p,q)\rangle = \int \rho(p,q,t) a(p,q) dp dq$$
We know that a necessary condition for thermodynamic equilibrium is that the average of every thermodynamic quantity is independent of time, i.e. $A(t) = A(t') \ \forall t,t'$. A necessary condition to achieve this is that $\rho$ has no explicit time dependence, i.e.
$$\text{Equilibrium} \Rightarrow \ \partial_t \rho = 0$$
In this case, it follows from Eq. \ref{1} that $\{\rho,H\}=0$, and therefore $\rho$ is a function of the Hamiltonian: $\rho=\rho(H)$.
My question is: is this also a sufficient condition? In other words, is
$$\text{Equilibrium} \iff \ \partial_t \rho = 0$$
true? If not, can we give some examples of systems where $\partial_t\rho=0$ which are not at thermodynamic equilibrium, showing explicitly that there is no thermodynamic equilibrium?
An attempt to clarify
What I am thinking about is some kind of metastable state with infinite lifetime, in such a way that the ensemble is "stuck" in this non-equilibrium state ($\partial_t \rho =0$) for an infinite time.
This probably has to do with non-ergodicity; however, in most physical system non-ergodic behavior shows up only for a set of initial conditions which has measure zero. Since $\rho$ is a probability density over an ensemble, i.e. over an infinite number of imaginary copies of the system, even if a discrete subset of the ensemble has a pathological non-ergodic behavior, the whole ensemble will behave just fine and reach equilibrium.
So I guess that in some sense what I am asking is whether there are systems where non-ergodic behavior shows up for a non-zero measure set of initial conditions.