The substitution of hydrogen (H) by deuterium (D) in ice Ih and in its H-ordered version, ice XI, produces an anomalous form of volume isotope effect (VIE), i.e., volume expansion. This VIE contrasts with the normal VIE (volume contraction) predicted in ice-VIII and in its H-disordered form, ice VII. Here we investigate the VIE in ice XI and in ice VIII using first principles quasiharmonic calculations. We conclude that normal and anomalous VIEs can be produced in ice VIII and ice XI in sequence by application of pressure (ice XI starting at negative pressures) followed by a third type - anomalous VIE with zero-point volume contraction. The latter should also contribute to the isotope effect in the ice VII → ice X transition. The predicted change between normal and anomalous VIE in ice VIII at 14.3 GPa and 300 K is well reproduced experimentally in ice VII using x-ray diffraction measurements. The present discussion of the VIE is general, and conclusions should be applicable to other solid phases of H2O, possibly to liquid water under pressure, and to other H-bonded materials.