I am trying to setup some new 500GB disks with RAID on my Mac.
Previous lessons taught me to partition my large-ish drives to make it easier to backup -- and I don't need all of the 500GB mirrored.
So I wanted to setup a ~270GB mirrored partition (easy to backup on a 300GB drive), a smaller ~120GB mirrored partition and then get a ~180GB striped partition across the two drives for fast "scratch data".
However, Disk Utility completely doesn't work. It lets me set the second mirrored partition up and says it's working on that in one window and then that it's rebuilding the first mirror in another window.
diskutil is a lot less frustrating to work with (Lesson: Just skip Disk Utility for OS X RAID setup, just go with diskutil) won't let me setup two Apple_RAID partitions on one physical disk? It doesn't give any useful error messages.
[root@g5 ~]# diskutil createRAID mirror Extra \ "Journaled HFS+" /dev/disk0s5 /dev/disk1s5 Marking partition 'disk0s5' for RAID Marking partition 'disk1s5' for RAID Preparing partition 'disk0s5' for RAID 2006-03-30 12:55:54.871 DiskManagementTool[9167] \ Made bootable had an error on disk disk0s5 Extra 2 { Error = 16; MapChanged = 0; NewName = "Apple_RAID_OfflineV2_Untitled_2"; NewSlice = 5; } Adding disk 'disk0s5' to new RAID set 2006-03-30 12:56:25.392 DiskManagementTool[9167] \ Could not find disk with partition map name, we will not make it bootable disk1s5 Extra 1 BuildRAID1 Preparing partition 'disk1s5' for RAID 2006-03-30 12:56:42.882 DiskManagementTool[9167] \ Made bootable had an error on disk disk1s5 Extra 1 { Error = 16; MapChanged = 0; NewName = "Apple_RAID_OfflineV2_Untitled_3"; NewSlice = 5; } Adding disk 'disk1s5' to new RAID set Creating RAID Set Bringing RAID partitions online Waiting for new RAID to come online Waiting for new RAID to come online Waiting for new RAID to come online [....] Waiting for new RAID to come online Error -9983 encountered updating or creating raid on disk
Not fun.
I thought "diskutil enableRAID" would mark a partition as Apple_RAID, but it's not working:
diskutil enableRAID mirror /dev/disk0s5 changing filesystem size on disk 'disk0s5'... The filesystem may need to be modified to make this partition bootable 2006-03-30 13:43:54.632 DiskManagementTool[9865] \ Made bootable had an error on disk disk0s5 Extra 2 { Error = 16; MapChanged = 0; NewName = "Apple_RAID_OfflineV2_Untitled_2"; NewSlice = 5; } The disk has been converted into a RAID
But with diskutil "list" and "info" it shows up unchanged.
Any ideas?
diskutil pocket guide:
- list - show the partition maps, note that the slice number is the number at the end of the line, not the first number.
- info - show information about a specific disk or disk slice
- checkRAID - show the RAID set status. (For me typically degraded because it likes to rebuild the mirror after I make the second one, gah).
- enableRAID - supposed to convert a slice/Volume to a RAID partition, but it's not working for me (on the second partition)
- createRAID put together a RAID set/disk from multiple slices/partitions.