Svein Skogen wrote:
Let's say for a moment I should go for this solution, with the rpool tucked away on an 
usb-stick in the same case as the LTO-3 tapes it "matches" timelinewise (I'm 
using HP C8017A  kits) as a zfs send -R to a file on the USB stick. (If, and that's a big 
if, I get amanda or bacula to do a job I'm comfortable with that has been verified. Not a 
stab at those software projects, more a stab at them being an unknown entity for me), how 
would I go about restoring:

a) the boot record
b) the rpool (and making it actually bootable off the usb stick)
c) the storage zpool (probably after I get the system back up after a and b, 
but please humor me).

Reason I'm coming back here, is ... well the performance with Linux (that I 
actually have software for which I'm comfortable with) wasn't quite what I've 
grown used to with FreeBSD and Solaris.

//Svein
Assume your machine has died the True Death, and you are starting with new disks (and, at least a similar hardware setup).

I'm going to assume that you named the original snapshot 'rpool/ROOT/whate...@today'

(1)   Boot off the OpenSolaris LiveCD

(2) Do a basic install, using whichever disk you intend to be the new root.

(3)   Reboot to your new "virgin" system

(4)   Mount the USB stick

(5) Make a new Boot Environment to do the restore into: # beadm create New

     - there should now be a zfs filesystem named 'rpool/ROOT/New'

(5) Do a 'zfs receive', using the stream stored on the USB stick, and the destination the rpool. You should likely need to rename the incoming snapshot. # cat <usb_mounted_stream> | zfs receive rpool/ROOT/myroot

(6) A 'zfs list -t all -r rpool' will now show use the 'rpool/ROOT/myr...@today' snapshot and 'rpool/ROOT/myroot' filesystem

(7) Make sure the mountpoint is / # zfs set mountpoint=/ rpool/ROOT/myroot

(8) Destroy the restored snapshot: # zfs destroy rpool/ROOT/myr...@today

(9)   Replace your "New" filesystem with the restored one:
       # zfs rename rpool/ROOT/New rpool/ROOT/Old
       # zfs rename rpool/ROOT/myroot rpool/ROOT/New
       # zfs destroy rpool/ROOT/Old

(10)  Activate the restored BE:
       # beadm activate New


You should now be all set. Note: I have not /explicitly/ tried the above - I should go do that now to see what happens. :-)


Restoring the data pool is dirt simple. Create your zpool, and simply 'zfs receive' from the tapes you have. Likely, it's easier to install Amanda (or whatever backup program you're using) and have it do the restore/tape management for you.




--
Erik Trimble
Java System Support
Mailstop:  usca22-123
Phone:  x17195
Santa Clara, CA

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to