View Single Post
  #2   (View Single Post)  
Old 10th September 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Scroll up the screen, and you'll probably see something along the lines of "can't load pool as it was previously accessed by another system".

You're supposed to be able to fix this by:
* booting into single-user mode
* mounting / read/write using mount -u /
* force import of pool using zpool import -f <nameofpool>
* do a proper export of pool
* do a proper import of pool
* rebooting

However, I've never been able to figure out the exact correct order of steps to do this. Sometimes it works, sometimes it doesn't.

What I've taken to doing, and it's a real hack, is to edit /etc/rc.d/zfs and add a zpool import -f <nameofpool> to the start() function. This works if the disk in the pool will only ever be used in this server, which is how all my systems are currently setup. We don't move pools from system to system.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote