Sponsored Content
Operating Systems Solaris Local Full Backup and Restore ZFS Post 302389841 by tien86 on Tuesday 26th of January 2010 06:10:08 AM
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...
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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

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

7. 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

8. 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

9. 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
VGCFGRESTORE(8) 					      System Manager's Manual						   VGCFGRESTORE(8)

NAME
vgcfgrestore - restore volume group descriptor area SYNOPSIS
vgcfgrestore [-d|--debug] [-f|--file filename] [-l[l]|--list] [-h|--help] [-M|--Metadatatype1|2] [-t|--test] [-v|--verbose] VolumeGroupName DESCRIPTION
vgcfgrestore allows you to restore the metadata of VolumeGroupName from a text backup file produced by vgcfgbackup. You can specify a backup file with --file. If no backup file is specified, the most recent one is used. Use --list for a list of the available backup and archive files of VolumeGroupName. OPTIONS
-l | --list -- List files pertaining to VolumeGroupName List metadata backup and archive files pertaining to VolumeGroupName. May be used with the -f option. Does not restore Vol- umeGroupName. -f | --file filename -- Name of LVM metadata backup file Specifies a metadata backup or archive file to be used for restoring VolumeGroupName. Often this file has been created with vgcfg- backup. See lvm for common options. REPLACING PHYSICAL VOLUMES
vgdisplay --partial --verbose will show you the UUIDs and sizes of any PVs that are no longer present. If a PV in the VG is lost and you wish to substitute another of the same size, use pvcreate --restorefile filename --uuid uuid (plus additional arguments as appropriate) to initialise it with the same UUID as the missing PV. Repeat for all other missing PVs in the VG. Then use vgcfgrestore --file filename to restore the volume group's metadata. SEE ALSO
lvm(8), vgcreate(8) Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) VGCFGRESTORE(8)
All times are GMT -4. The time now is 08:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy