Changing the processor is no problem under linux, as long as you do not change the mainboard.
To change the Harrdisk you must either
1) reinstall the server with the new harddisk
2) use the harddisk as separately mounted data partition
3) or need a good amount of linux knowledge to mount 2 harddisks, copy linux to the new one with correct permissions and make it bootable.