First off your problem may not be the same as mine so this may not help, secondly if you do try any of this don't just blindly enter the commands into Terminal. You need to make sure you are using the correct disk e.g. disk0, disk1, disk2 as they may be different on your computer.
So I've fixed my DIY Fusion Drive, though it took a while to figure it out as:
a) After upgrading to Mavericks from Mountain Lion the Fusion Drive was working the wrong way. It was attempting to place everything that was accessed the most frequently on the HDD and then placing the least accessed data on the SSD.
b) I wiped all my internal drives (zeroed out the first part of them using dd) so there was no remnants of the old Fusion Drive. I used an install of Mavericks running off a usb drive to create a new Fusion Drive with the following commands:-
Code:
diskutil cs create "Macintosh HD" disk0 disk1
Code:
diskutil coreStorage createVolume ########-#######-####### jhfs+ "Macintosh HD" 100%
This resulted in a Fusion Drive with a Recovery HD partition on disk0 (SSD) and a Boot OS X partition on disk1 (HDD).
Everything looked fine so I installed OSX using the .app from inside the Mavericks install running off the USB drive. The installation took a long time, once booted into the fresh install it was quite slow. To try to see what was happening I used:
To show which drive was in use when reading and writing data, while that command was running I used:
Which created a large file, so I could watch to see what was happening with the two drives. The result was that all the writes were happening on the HDD. Additionally when launching programs only the HDD was being used.
c) I wiped the two drives once again and attempted to create another Fusion Drive as I wanted to see whether it was a problem before or after installing an OS onto it. The result was that a clean Fusion Drive exhibited the same problem where all the reads and writes were first going to the HDD.
The instructions below are the ones which made it work correctly for me.
d) I decided to try and mirror the exact setup of Apples Fusion Drive. It appeared that using a running copy of Mavericks was not going to work so I created a bootable memory stick with:
Code:
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
I then performed the following steps:-
1) Booted off the USB installer, and wiped both drives by running the following commands for a few seconds:
Code:
dd if=/dev/zero of=/dev/rdisk0 bs=1m
Code:
dd if=/dev/zero of=/dev/rdisk1 bs=1m
2) I used Disk Utility to create a partition on the HDD.
3) I installed Mavericks onto this partition. (This was to get the recovery partition onto the HDD as I didn't trust the existing ones I had, so i didn't want to just clone an existing one)
4) I then booted back off the usb installer once again, then ran the following commands to create the fusion drive:
Code:
diskutil cs create "Macintosh HD" disk0 disk1s2
Where disk1s2 is the partition containing the install of OSX which was completed in step 3.
Suspiciously this only took a few seconds, versus when I tried setting it up on previous attempts where it would take several minutes.
5) Next I formatted the Fusion Drive:
Code:
diskutil cs createVolume ########-#######-####### jhfs+ "Macintosh HD" 100%
Where the # is the UUID which is given by the previous step.
This creates a Fusion Drive but leaves the Recovery HD on the HDD and places the smaller Boot OS X parition on the SSD.
6) I once again ran the OS X installer (on the USB installer) to install OS X onto the Fusion Drives "Macintosh HD" partition.
After install I tested the Fusion Drive once more, this time it appeared to function correctly and the computers performance felt a lot closer to that of the Fusion Drive under Mountain Lion, with the write speeds back up to where I would expect it to be.
I used both
pintofcode.com and
jollyjinx.tumblr.com for details on settig up and testing the Fusion Drive. I also used
Arstechnica for the information on how a non-DIY Fusion Drive is setup.