Please help me understand ZFS, I am utterly confused and can't seem to find clarity after reading the handbook, man zpool/zfs, or searching these forums. Have been using Hammer these last few years, and am therefore likely missing something that is obvious to regular zfs users...
So, let's say I pull a zfs formatted drive with a zpool called "zroot" from a FreeBSD server, mount it as an external drive on another FreeBSD server that has a zpool called "server", and execute the following:
In my mind, I should see the full file system on the zroot pool mounted under /mnt. For instance, under /mnt/etc should be the /etc directory from the mounted disk, along with things like rc.conf and pf.conf from the previous machine. Am I right?
Unfortunately, what I see is:
There is no /etc, no /home, and nothing under zroot. However, when I boot from that drive, all of those directories are present.
From my perspective, when mounting the "zroot" pool under /mnt the entire directory tree should appear. What am I missing?
So, let's say I pull a zfs formatted drive with a zpool called "zroot" from a FreeBSD server, mount it as an external drive on another FreeBSD server that has a zpool called "server", and execute the following:
Code:
zpool import -R /mnt zroot
In my mind, I should see the full file system on the zroot pool mounted under /mnt. For instance, under /mnt/etc should be the /etc directory from the mounted disk, along with things like rc.conf and pf.conf from the previous machine. Am I right?
Unfortunately, what I see is:
Code:
root@serve:/ # ls /mnt
tmp usr var zroot
There is no /etc, no /home, and nothing under zroot. However, when I boot from that drive, all of those directories are present.
From my perspective, when mounting the "zroot" pool under /mnt the entire directory tree should appear. What am I missing?