You need to move data from internal disks to external shelves because you cannot reuse FAS2040 internal disks in FAS2240. If you have mixed aggregates that contain both internal and external disks, this becomes a challenge.
Once internal disks are free and not used anymore, just follow docs.