There is no special procedure. Switch off 2020, unplug shelves, connect to 2040, assign disk ownership. If you have data that you want to preserve and move to 2040, it is better to assign disk ownership from maintenance mode to avoid partial aggregate errors. Otherwise destroy aggregates, zero spares and unassign disks on 2020 before unplugging.