Local Full Backup and Restore ZFS

Hi men,

I'm testing for my backup&restore job with ZFS.

My server have two disks. I wanna do backup&restore job like ufsdump utility:

Disk0 is rpool(root zpool) and disk1 (backup zpool) will be stored full backup replicates. When rpool zpool have problem, i can "boot cdrom -s" and use my full backup replicate to restore my OS on disk0.

This is a example i read:

For example:
# zfs send tank/gozer@0830 > /bkups/gozer.083006
# zfs receive tank/gozer2@today < /bkups/gozer.083006
# zfs rename tank/gozer tank/gozer.old
# zfs rename tank/gozer2 tank/gozer

How can i do above commands in my circumstance? I did "zpool import " command but mount point of zpool cannot mount.

ok>boot cdrom -s
# zpool import backup
cannot mount '/backup': failed to create mountpoint
# zfs list
NAME     USED  AVAIL  REFER  MOUNTPOINT
backup  8.90G  58.0G  8.90G  /backup
# zpool import rpool
cannot mount '/rpool': failed to create mountpoint

# zfs list
NAME                            USED  AVAIL  REFER  MOUNTPOINT
backup                         8.90G  58.0G  8.90G  /a/backup
rpool                          9.79G  57.1G    94K  /rpool
rpool@0602                         0      -    94K  -
rpool/ROOT                     4.79G  57.1G    18K  legacy
rpool/ROOT@0602                    0      -    18K  -
rpool/ROOT/s10s_u7wos_08       4.79G  57.1G  4.78G  /
rpool/ROOT/s10s_u7wos_08@0602  3.26M      -  4.78G  -
rpool/dump                     4.00G  57.1G  4.00G  -
rpool/dump@0602                    0      -  4.00G  -
rpool/swap                     1.00G  58.1G    16K  -
rpool/swap@0602                    0      -    16K  -

I am muddling now, zfs is so complex. Please suggest my case or i should try other way to do full backup&restore?

Thx men!

Solaris ZFS Administration Guide - Sun Microsystems

Hi, i did read this guide before. If i knew how to do i hadn't ask for help. Can u tell me more detail on my circumstance?

did you backed up boot sector ?

I do not have SPARC server , but I used Gentoo for a few years and what I can tell you what I learned using Gentoo is : backup root file system then do a fresh installation and then restore your backup image

try this

Home Fileserver: ZFS boot pool recovery

Thx man. I have a idea that use disk1 UFS filesystem and it can be mount when i boot -s by cdrom.

I did test work well but its looks not OK when combine UFS with ZFS jobs.

You can not use two filesystems on same disk , it is possible if you have two partitions

You screwed up server :smiley: , if you have critical data on hard disk do not touch it best solution is if you have some empty disk , it is cheap hardware . Install ZFS filesystem and then restore your backup file .

Or if you want to use Solaris combination what I have on my home file server , root file system is on UFS , and ZFS is on another disk and it is automatically mounted at boot .

If your server is production server , try to use BEST solution to resolve your problem !