Solved

ZFS root file system backup

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 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