Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Partitioning mirrored disks under Mac OS X / Server OS X Server
Yes it's possible! (although Disk Utility says it's not!
  1. Become root (or put sudo before the commands)
  2. Make the RAID:

    diskutil createRAID mirror MyRAIDSet HFS+ disk1 disk2
    Or via the GUI, using Disk Utility.app if you like. A new HFS+ filesystem will be created there and will attach as a new disk, like /dev/disk3. Yes its nice, but this is what we don't need.
  3. Unmount the new disk with diskutil unmount disk3. Do not eject it!
  4. Partition the disk as you like:
    diskutil partitionDisk disk3 2 HFS+ Part1 10G HFS+ Part2 10G
    See diskutil's partitionDisk output for examples. There's no GUI way, that's why you reading this! A partition map and yours partitions will be created and will have a new fs created and mounted (as /dev/disk3s2 and /dev/disk3s3 in my example).
Yes! That's it! Easy?

I'v tried this on PMG4 using two 6GB HDD's and running Mac OS X Server (10.2 & 10.2.8). Then on an XServe with two 180GB IBM's (why Apple is still using these?) Works great. Disk Utitilty.app sees the RAID, can check it, but it has no clue about the volumes on it. So you have to fsck manually. When journaling is turned on, this is probably not needed. Turn on journaling using diskutil enableJournal /Volumes/Part1. Thats all for now. Have fun!

    •    
  • Currently 1.88 / 5
  You rated: 2 / 5 (8 votes cast)
 
[13,080 views]  

Partitioning mirrored disks under Mac OS X / Server | 8 comments | Create New Account
Click here to return to the 'Partitioning mirrored disks under Mac OS X / Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Partitioning mirrored disks under Mac OS X / Server
Authored by: diamondsw on Oct 30, '03 12:02:28PM

Can't you just mirror the partitions individually?



[ Reply to This | # ]
Partitioning mirrored disks under Mac OS X / Server
Authored by: spaceboy.cz on Nov 16, '03 02:50:30PM

How would You do that?



[ Reply to This | # ]
Partitioning mirrored disks under Mac OS X / Server
Authored by: dkg on Feb 16, '04 11:53:35PM
it would be nice to just mirror the partitions individually, like you say. Unfortunately, apple's diskutil software RAID doesn't look like it allows you to do RAID over partitions, just on disks. See this post to the macosx-admin list for details.

if there's been any change in diskutil's ability to do this since that posting, i haven't been able to find any documentation which describes the change. and (at least as of jaguar today with all the latest patches) trying to do diskutil createRAID on two partitions fails with the same error as mentioned in the link above:

# diskutil createRAID mirror testraid0 HFS+ disk5s2 disk6s3
Timed out waiting for arbitration
Failed to find IOMedia for disk5s2.
Header didn't completly write out!
An error occured attempting to create the raid set
#


[ Reply to This | # ]
Partitioning mirrored disks under Mac OS X / Server
Authored by: Frederico on Dec 15, '03 05:07:05PM

Any way to make this bootable?



[ Reply to This | # ]
root partition
Authored by: suarezry on Dec 19, '03 01:08:24PM

How do you partition the mirror set if it's the root partition?



[ Reply to This | # ]
Partitioning mirrored disks under Mac OS X / Server
Authored by: astafford on Jan 20, '04 11:33:58AM

I tried this for a stripe set. It seems to work at first but I can not boot from the disk. Performance is not good either except for uncached 4 k byte writes ( 200 xbench ) others are about 60.
Disktools does not work on the drive as expected, neither do Norton DiskDoctor or Speedisk.

Alan



[ Reply to This | # ]
Partitioning mirrored disks under Mac OS X / Server
Authored by: astafford on Jan 20, '04 11:37:09AM

PS Using firewire disks.



[ Reply to This | # ]
Partitioning mirrored disks under Mac OS X / Server
Authored by: jelockwood on Jan 25, '06 12:27:44PM

The post from Spaceboy was useful. Unfortunately it appears this approach no longer work with Mac OS X 10.4

Any chance someone has found a new method?

Note: I tried it first under 10.4.4 (unsuccessfully) and then 10.3.9 (successfully) using the same disks each time.



[ Reply to This | # ]