Solved

ZFS root file system backup

Posted on 2009-03-31
3
2,168 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

744 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

18 Experts available now in Live!

Get 1:1 Help Now