InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   [How to] install Leopard on a software RAID (http://infinitemac.com/showthread.php?t=410)

gaz919 02-21-2008 10:24 PM

They are crazy high speeds for the uncached read, Does the whole system seem more responsive??
If you find its stable enough like three, four days uptime then I will be up for it.

Everthings installing so well on this install, just can't get the extension caches to keep all the kexts i want in them.

I always have to use -f at boot or the usbwireless stick, will not be mounted at start. If I unplug it then plug it back it works. but only using -f, makes it load already mounted.

But things look really promising with zfs I hope its stable.

Maybe if others read these posts somebody will know a bit about how to port dmraid to the mac.

zephyroth 02-21-2008 10:32 PM

Actually I can't install Leopard on this zfs RAID.
Mac OS Installer can't detect it. I'm trying to install Leo via Pacifist. But I think I will not be able to boot on it ...
So I can't say if the system is more responsive or not.

But I'm on it.

gaz919 02-21-2008 10:36 PM

Sounds good, I eagerly await your findings

Good Luck

zephyroth 02-22-2008 12:02 AM

At http://trac.macosforge.org/projects/zfs/wiki/issues we can see :

Features in the Works

Bootable ZFS
Encrypted ZFS [ more info.. ]
Gzip support
Browsing .zfs snapshots

Grrr ...

I've understood why Mac OS Installer don't show the ZFS RAID.

Contrary to software Raid with Diskutil, creating a RAID with ZFS don't create an associated device node ...

I created one with mknod, like this "mknod b /dev/disk4 9 0" but I don't know how to attach the RAID ZFS to it ... Don't even know if it's possible ...

EDIT: In fact it seems to be possible with the following command "zfs create -V 50G "POOL"/mywol"

But this command is not implemented in MacOS and Linux ... only in Solaris.

gaz919 02-25-2008 04:36 PM

I read your comments on installing raid via partitions rather than disks and was wondering if you thought it could be faster this way in raid 0 ? I thought if you could partition exactly the surface pallet size , you would have a different read arm for each partition, this might gain you a little speed. ( Only for multi pallet HD). I hope your getting a bit further in your zfs implement. If you find anyway to speed up the system using partitions please keep us informed.

Good Luck

zephyroth 02-25-2008 04:57 PM

I'm actually trying this :

1 - Create 2 partitions on one of the two disks intended to be used in RAID.

BOOT 1G with the following folders:
---> "/usr/standalone", "/Library/Preferences", "/System/Library/Extensions", "/System/LIbrary/CoreServices" and "/mach_kernel"

RAID 147,9 G

2 - Create a software RAID array with partition RAID 147,9 G and RAID1 148.9G.

3 - Install Leopard on the newly created RAID

4 - Make BOOT partition bootable.

5 - At boot type "-v rd=diskX" (which is the RAID array) and then add it in com.apple.Boot.plist

If it works the more annoying thing will be that /Volumes/Boot/System/Library/Extensions and /Volumes/RAID/System/Library/Extensions must be the same everytime.
(if you change a kext in RAID you must change it in BOOT too because the kexts loaded at boot will be those on BOOT ... not RAID !), same thing for the kernel.

EDIT : I found this ---> http://www.opensolaris.org/os/commun...fsboot-manual/
Maybe I can do this with Mac OS ? ... I'm on it.

For the ZFS implementation we must wait for a new release because booting from a ZFS partition is not implemented in the MacOS version.

zephyroth 02-25-2008 05:17 PM

It works !

Disk Speed Bench X

- Non RAID Volume "/Volumes/Leopard"

Elapsed time 8.116926 secs; transfer speed (66142147bytes/sec)

- RAID Volume "/Volumes/RAID"

Elapsed time 3.432911 secs; transfer speed (156389410bytes/sec)

gaz919 02-26-2008 06:43 AM

thats great, does that mean you can boot off the zfs file system using the Darwin efi bootloader?
If yes then this is a great find. You should cut and paste the commands you used and make a guide.
I looked into the nforce raid drivers and found them for Linux, would these be any use in osx I imagine they
would be somewhat the same.

I'll get some drives out of an old pc I have and give the zfs raid a go, hopefully you get a chance to do a guide
soon, as I'm not sure which of the above solaris commands I need to use, and how much I need to change them.
I presume we get an install running first then make the zfs raid then copy the install to it then make it bootable.
do we need any zfs kexts or are the standard soft raid ones fine?

Eagerly waiting a guide!

zephyroth 02-26-2008 01:43 PM

Oups no ... No zfs at the moment.

The created RAID above is HFS+ with Diskutil but works without an existing installation ! The guide is on the wiki.
I've made some tests with a ZFS RAID and performances has not as high as XBench score shows us.

Finally (at least at the moment) I think the solution on the wiki is the easiest way to boost OSX performance until someone create a driver.

gaz919 02-26-2008 02:17 PM

Thanks heaps for all the effort you are putting in, I'll probably give it a go soon, I always prefer a os on raid, the boost is always noticable.

Good Luck