d693
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm a bit stuck here. I'm trying to clone a computer to a VM. So, I booted from a LiveFS CD, partitioned/sliced the disk, copied the files using zfs send/recv and scp (for the UFS /boot). The kernel boots just fine, but it won't mount my ZFS root.
I get: Code:
Trying to mount root from zfs:tank/root Manual root filesystem specification: <fstype>:<device> blah blah... Code:
vfs.zfs.debug=1 I then noticed/realized that I need to update /boot/zfs/zpool.cache. So I booted up the livefs, imported the pool (zpool import -R /alt tank) and exported it. No zpool.cache anywhere. It seems that you MUST import it WITHOUT altroot (-R), but if I do that, the entire environment goes FUBAR when the CD / is shadowed by my ZFS root, and nothing works! So, my question is: how am I supposed to create the file if I can't import the pool, and importing the pool is the only way? Last edited by DutchDaemon; October 17th, 2011 at 10:46. |
|
#2
|
|||
|
|||
|
I finally fixed this. Finally as in I've been at it constantly for like 2.5 hours. Ugh.
Anyway, this post led me on the right path. What I did was, something like: Boot LiveFS, choose fixit mode Code:
cd /mnt2/boot/kernel kldload ./opensolaris.ko ; kldload ./zfs.ko Code:
zpool import -f -R /alt tank zfs set mountpoint=none tank/root mkdir /boot/zfs zpool export tank; zpool import tank export LD_LIBRARY_PATH=/mnt2/lib (I think?) mkdir /myboot; mount /dev/da0s1a /myboot cp /boot/zfs/zpool.cache /myboot/boot/zfs/ zfs unmount -a zfs set mountpoint=/ tank/root reboot Last edited by DutchDaemon; October 17th, 2011 at 10:46. |
|
#3
|
|||
|
|||
|
How would you accomplish this using the 9.0 CDs and DVDs? Gone are the MFS previously used by the CDs and DVDs, thus no place to temporary save the /boot/zfs/zpool.cache file prior to transferring it to your boot data set.
Until this minor setback is resolved, I guess you either need an existing system or you need to install from 8.2-RELEASE, prior to configuring your new zroot data pool and its associated file systems. |
|
#4
|
||||
|
||||
|
Quote:
__________________
Powered by BareBSD |
| The Following User Says Thank You to gkontos For This Useful Post: | ||
graudeejs (April 30th, 2012) | ||
![]() |
| Tags |
| livefs, zfs, zfs root, zpool, zpool.cache |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Booting old kernel and zpool.cache | terminus | Installing & Upgrading | 3 | May 25th, 2011 04:59 |
| zpool cache on CF fails | nsayer | Installing & Upgrading | 5 | December 2nd, 2010 00:21 |
| [Solved] zpool create <pool> drives fails | ServerStorm | General | 9 | August 25th, 2010 01:01 |
| Adding a new raidz to zpool does not give zfs create more space | audunfr | Installing & Upgrading | 0 | April 19th, 2009 12:39 |