Page 1 of 4
Have OS X wait for ZFS during boot
Posted:
Sat Sep 12, 2015 9:44 am
by stefa.rossi
Hello everybody,
my home folder is on ZFS. I was wondering, would it be possible to make OS X wait for all the pools to be imported and mounted, before presenting the login screen?
Re: Have OS X wait for ZFS during boot
Posted:
Sat Sep 12, 2015 3:11 pm
by Brendon
Not so far as we know unfortunately. There is definitely a bit of inconvenience, that I understand! I have taught my family to wait until the raidz array where our home directories reside to settle down before attempting to log in.
Cheers
Brendon
Re: Have OS X wait for ZFS during boot
Posted:
Thu Nov 05, 2015 11:05 am
by stefa.rossi
That's a good starting point, thank you!
I already have a script, written in Python, that checks if all ZFS filesystem are mounted by calling 'zfs list' and checking if the mountpoints are mounted. Maybe I can modify the plist to run that script instead, and make the script call '/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow' once ZFS is done mounting...
Re: Have OS X wait for ZFS during boot
Posted:
Thu Nov 05, 2015 12:17 pm
by Brendon
I will be interested to hear of your progress in this regard.
Cheers
Brendon
Re: Have OS X wait for ZFS during boot
Posted:
Mon Nov 30, 2015 6:35 am
by bhagaban
Hello every body,
I changed the name filed of strlcpy(vfe.vfe_fsname, "zfs", MFSNAMELEN); to strlcpy(vfe.vfe_fsname, "zss", MFSNAMELEN);
To get the file system name as zss. But when checked the mount command . pool is still showing as zfs instead of zss.
Which file i need to change to get the name as zss instead of zfs.
Bhagaban
Re: Have OS X wait for ZFS during boot
Posted:
Mon Nov 30, 2015 7:59 am
by ilovezfs
Re: Have OS X wait for ZFS during boot
Posted:
Mon Nov 30, 2015 4:19 pm
by lundman
I think we also set it a bit further down, in vfs_getattr, in the same file.
Re: Have OS X wait for ZFS during boot
Posted:
Mon Dec 21, 2015 3:27 am
by bhagaban
How to create a raw storage pool using virtual devices, and no mounted file system on it.
Re: Have OS X wait for ZFS during boot
Posted:
Wed Dec 23, 2015 3:52 am
by lundman
Create a zpool data pool, whichever way you prefer:
- Code: Select all
zpool create BOOM diskX
then set the pool's dataset to not mount:
- Code: Select all
zfs set mountpoint=manual BOOM
Then create virtual block devices in the pool
- Code: Select all
zfs create -V 100G BOOM/virtual1
Where you replace 100G with whatever size you actually want, and "virtual1" with whatever name you want. This will create another diskX virtual disk
Re: Have OS X wait for ZFS during boot
Posted:
Wed Dec 23, 2015 8:47 am
by bhagaban
Hi,
I have created below 3 dsk files as raw image files. and i want to add them to a storage zpool.
mkfile -n 1g test1.dsk
mkfile -n 1g test2.dsk
mkfile -n test33.dsk
Now i want to creata a single pool which is consist of above the dsks
and can I mount any file systems other then zfs on that pool
any suggestions would be great.
Bhagaban