Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ZFS root file system backup

Posted on 2009-03-31
3
Medium Priority
?
2,186 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
blu earned 1500 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
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…

610 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