I'm exploring the wonderful world of ZFS, but I have yet to get it working. My current setup is a Sony VAIO VGN-SZ430N laptop with four slices: A 6.37G Windows recovery slice (ad4s1), a 27.7G Windows Vista slice (ad4s2), a 20G FreeBSD slice with all of my UFS partitions (ad4s3), and a 94G unformatted slice (but I did set the type as "165: freebsd" in cfdisk during install) (ad4s4). I ran the following command to create a zpool:
[CMD="#"]zpool create tank ad4s4[/CMD]
This left me with a /tank, hopefully being my fourth slice formatted as zfs. I then created some datasets:
[CMD="#"]zfs create tank/usr[/CMD]
[CMD="#"]zfs create tank/usr/home[/CMD]
At this point I wanted to try zfs out by sticking my home directory on it (I just installed and got my system up to date, so I don't have personal information to lose)
[CMD="#"]zfs set mountpoint=/usr/home tank/usr/home[/CMD]
That seemed to be successful, but then I tried to cd into /usr/home, only to find there was nothing there. I have one normal user "agi", and that directory was missing. Fortunately, all I had to do was run:
[CMD="#"]zfs set mountpoint=none tank/usr/home[/CMD]
and my home directory was safe and sound on my UFS partition (I could successfully cd to /home/agi or /usr/home/agi and find the contents).
But what happened? Why was there nothing there even after setting the mountpoint?
One thing I found from the zfs man page was to try running
[CMD="#"]zfs mount -a[/CMD]
after setting all the mountpoints, but that did nothing
. I've tried this with /usr/ports and /usr/ports/distfiles as well, and neither of those worked.
Just recently, I saw a reference in the ZFS Administration Guide and an online guide to setting the mountpoint to /export/home instead of /home. What exactly would that do? I'm not on my FreeBSD laptop right now, so I can't test it. Is this the solution I'm looking forâ€½
Thanks in advance. I hope I didn't screw this up from the start with my slicing (I used the advice I got from this thread: http://forums.freebsd.org/showthread.php?t=10237