?
Solved

ZFS root file system backup

Posted on 2009-03-31
3
Medium Priority
?
2,182 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
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.
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

771 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