Invariant subspaces in large scale systems