Here is the link to apple site for the necessary steps to move the iTunes library.
Here is the reproduction of those steps:
Follow these steps to move your iTunes Media folder to a new drive and consolidate your library to the new location:
- Open iTunes.
- Choose iTunes > Preferences.
- Click the Advanced button.
- Click the Change button in the “iTunes Media folder location” pane. The Change iTunes Media Folder Location window appears.
- Choose where you want to save your new iTunes Media folder.
Note: Your iTunes Media folder is named “iTunes Media” in ~/Music/iTunes/ (the tilde ~ represents your home directory).
- Click the New Folder button in the Change iTunes Media Folder Location window. The New Folder window appears.
- Enter the name of the new iTunes Media folder.
- Click Create.
- Click Open in the Change iTunes Media Folder Location window.
- Click OK in the Advanced window.
- iTunes 9 or later: Choose File > Library > Organize Library.
iTunes 7 or iTunes 8 for Mac: Choose File > Library > Consolidate Library.
- In the Organize Library (or Consolidate Library) window, select “Consolidate files.”
Important: All of your media files should copy to the new location. There must be enough hard disk space available to copy all of your media files.
- After the folder copies, find your original iTunes Media folder and drag it to the Trash.
Important: Keep the iTunes library files that may be in the same location as the iTunes Media folder. Learn about the iTunes library files.
- Quit iTunes and open iTunes again.
- If you see the alert “The folder containing “iTunes Library” cannot be found, and is required. Please choose or create a new iTunes library,” you may have moved the iTunes library files. You should move them out of the Trash and back to where they were.
If you can open and close iTunes without seeing the alert, empty the Trash.