Relationship between zoning and host group configuration

When you fix zoning configuration errors you sometimes have to change host group configuration also, and the reverse.