Local Full Backup and Restore ZFS


 
Thread Tools Search this Thread
Operating Systems Solaris Local Full Backup and Restore ZFS
# 1  
Old 01-26-2010
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:
Code:
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.

Code:
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!

Last edited by pludi; 01-26-2010 at 07:15 AM.. Reason: code tags, please...
# 2  
Old 01-26-2010
# 3  
Old 01-26-2010
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?
# 4  
Old 01-27-2010
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
# 5  
Old 01-28-2010
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.
# 6  
Old 01-28-2010
You can not use two filesystems on same disk , it is possible if you have two partitions

You screwed up server Smilie , 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 !
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Deja-dup make my / full. So I cannot restore my back up

The problematic directory is the following: /root/.cache/deja-dup This directory grows until my "/" is full and then the restoring activity fails. I already tried to create a symbolic link with origin another partition where I have more space. However during the restoring activity ... (4 Replies)
Discussion started by: puertas12
4 Replies

2. Solaris

New ZFS FS not seen on local zone

Hi , I added a new fs to the global zone and also did the zonecfg to add the FS to the zone but finally I do not see the new "FS" on the local zone. Even in th e/etc/zones/zone.xml the fs and the correct directory is mentioned. Any Idea please ? (4 Replies)
Discussion started by: manni2
4 Replies

3. Solaris

Full zfs - cannot import

I installed Solaris 11 Express on my machine and created a raidz2 filesystem over 5 harddrives. Thas was a few months ago. Unfortunately, yesterday I made a mistake in free space calculation and tried to copy more data to the fs than how much space there was. When the fs got full, the... (5 Replies)
Discussion started by: RychnD
5 Replies

4. Solaris

Emergency - restore a deleted zfs snapshot

Hi, I deleted a zfs snapshot because it was as big as the original zfs. After the snapshot was removed, all the data in the original zfs is gone. How this happened? Can I restore the snapshot? Please help. Thanks a lot! (5 Replies)
Discussion started by: aixlover
5 Replies

5. Solaris

Restore from Flash Archive on local filesystem

I am doing a practice restore using a test UNIX(Solaris) system, and a SCSI Hard Drive whose slice 5 contains the Flash Archive file that I need to restore from. The test system is offline( no network ) and does not have external devices, such as tape drive. My goal is to somehow restore the... (9 Replies)
Discussion started by: the.gooch
9 Replies

6. Solaris

ZFS Restore Attempt

We currently have T2000 servers attached to Sun 3320 Storage Arrays. We run a database on the 3320 devices with the storage created through ZFS. We use 3 RAIDZ2 pools and then create our partitions from those. Now onto the question. If our T2000 fails and we swap out machines is there a way... (1 Reply)
Discussion started by: buckhtr77
1 Replies

7. Solaris

after ZFS can not restore VTOC of disk..

I tried to use zfs .. only for test ..so when I take my test disks into zfs pool their VTOC changed .. and 7th slice does not appear now. How can I restore default VTOC to my disks. my machine is x86 .. SunFire X4200 .. so this disks do not have slices like sparc machines .. they have... (6 Replies)
Discussion started by: samar
6 Replies

8. Solaris

Full backup and Restore

Dear All ; first how are you every body I'm just subscribed in your forum and i hope i found what i searched for along time . I'm not a Solaris specialist but i read more to build a Network Management Station depends on Solaris as OS and it is working good now . my problem is how to perform... (16 Replies)
Discussion started by: Basha
16 Replies

9. UNIX for Dummies Questions & Answers

Full System Restore from 250 - V280R

Hello, Here is what I am trying to do. We have an old Enterprise 250 which we want to phase out. So plan is to move everything running on the 250 to an unused Sun Fire V280R. Here is what I decided to do: 1. Fresh Solaris 8 install on Sun 280R (disk0). Configure network and install... (1 Reply)
Discussion started by: mshafi
1 Replies
Login or Register to Ask a Question