Solved

ZFS root file system backup

Posted on 2009-03-31
3
2,169 Views
Last Modified: 2013-12-27
I'm new to ZFS and have some question on it. I installed a solaris 10 system and used ZFS as its root file system. I created a flash archive using flarcreate and then tried to install the archive but It's failed. I got a error message during booting: "The file just loaded does not appear to be executable". Here are my question.

1. Does flarcreate support ZFS root system?
2. If not, is there any system backup solution for ZFS.
3. Solaris has UFS and ZFS. Which one is a better choice for root file system.

Thanks in advance.
0
Comment
Question by:tyknight
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
blu earned 500 total points
ID: 24035488
1. Not at this time.
2. Yes. Look at the "backup" subcommand of the zfs command. Man zfs.
3. Depends. If you want to use flar, then UFS.  Upgrading with ZFS and live upgrade is astoundingly simple. I upgraded my systems to ZFS root asd soon as it was available.
0
 

Author Comment

by:tyknight
ID: 24047194
Thanks. I followed the procedure in http://docs.sun.com/app/docs/doc/817-2271/ghzur?a=view to backup and restore root pool but still failed. Here is the steps.

zpool set listsnapshots=on mpool

Backup...
1.zfs snapshot -r rootpool@0311
2.zfs send -Rv rootpool@20090402 > /mnt/backup/20090403.zfs

Restore...
1. Replace the root disk with a new harddisk
2. Boot from Solaris installation CD
3. zpool create -f -o failmode=continue -R /tmp/a -m legacy -o cachefile=/etc/zfs/zpool.cache rootpool c0t0d0s0
   i got an error after a few minutes  "cannot mount `/tmp/a': directory is not empty
4. zpool set bootfs=rootpool/ROOT/rootpool_root_dataset
5, reboot and got "The file just loaded does not appear to be executable".


What's wrong with the procedure?
0
 
LVL 22

Expert Comment

by:blu
ID: 24049475
You probably don't want to use /tmp/a as the mountpoint. Since /tmp is of type swapfs, I don't know if everything will work the same. The semantics for swapfs are not exactly the same as the other file systems.  Usually you should use /a as the temporary root mount point.

Look at this link, it goes into a little more depth:
http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#ZFS_Root_Pool_Recovery

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now