Federal officials say New Haven resident Donald Ogman was sentenced to 21 years in prison for dealing methamphetamine pills and violating the conditions of his supervised release.