It's simple, really. A 1U cubesat is defined as a 10 cm by 10 cm by 10 cm device, i.e. 1 litre in volume.
A volume of 2 litres therefore implies a 2U unit, in other words 20x10x10 cm (the actual dimension of the 20 cm part can be chosen arbitrarily).