[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.5

Best way to perform full system backup for a Solaris with Mirror Setup

Asked by frankcheong in Sun Solaris, Backup & Restore Software, Disaster Recovery

I have to perform a full system backup for a Solaris 8 machine (SUNFire 280R) with mirror setup on all partitions and would like to know what is the best way to perform a full system backup on such system such that we can use this full system backup tape as DR in the future. Pls find below the system setting FYI:-

root@server # df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d0       2033311 1620541  351771    83%    /
/proc                      0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
fd                         0       0       0     0%    /dev/fd
swap                 15247032      32 15247000     1%    /var/run
swap                 15247000       0 15247000     0%    /tmp
/dev/md/dsk/d3       10327372 9967329  256770    98%    /u01
/dev/md/dsk/d5       17734538 17525339   31854   100%    /u03
/dev/md/dsk/d4       10327372 6770750 3453349    67%    /u02
/dev/md/dsk/d6       17734538 9787650 7769543    56%    /u04

root@server # metadb -i
        flags           first blk       block count
     a m  p  luo        16              8192            /dev/dsk/c1t0d0s7
     a    p  luo        8208            8192            /dev/dsk/c1t0d0s7
     a    p  luo        16              8192            /dev/dsk/c1t1d0s7
     a    p  luo        8208            8192            /dev/dsk/c1t1d0s7
 r - replica does not have device relocation information
 o - replica active prior to last mddb configuration change
 u - replica is up to date
 l - locator for this replica was read successfully
 c - replica's location was in /etc/lvm/mddb.cf
 p - replica's location was patched in kernel
 m - replica is master, this is replica selected as input
 W - replica has device write errors
 a - replica is active, commits are occurring to this replica
 M - replica had problem with master blocks
 D - replica had problem with data blocks
 F - replica had format problems
 S - replica is too small to hold current data base
 R - replica had device read errors

root@server # cat md.cf
# metadevice configuration file
# do not hand edit
d6 -m d16 d26 1
d16 1 1 c1t0d0s6
d26 1 1 c1t1d0s6
d5 -m d15 d25 1
d15 1 1 c1t0d0s5
d25 1 1 c1t1d0s5
d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4
d3 -m d13 d23 1
d13 1 1 c1t0d0s3
d23 1 1 c1t1d0s3
d1 -m d11 d21 1
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0

Pls comment which of the method below is the best way to perform full system backup for such a system such that we can use this full system backup tape as DR in the future.

Method 1.
Boot to single user mode using CD (boot cdrom -s) and execute the below script.
---SCRIPT---
#!/usr/bin/sh
# Backup replicas
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s7
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t1d0s7
# Backup /
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s0
# Backup /u01
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s3
# Backup /u02
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s4
# Backup /u03
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s5
# Backup /u04
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s6
---SCRIPT---

Method 2.
Boot to single user mode (boot -s) and execute the below script.
---SCRIPT---
#!/usr/bin/sh
# Backup replicas
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s7
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t1d0s7
# Backup /
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/md/rdsk/d0
# Backup /u01
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/md/rdsk/d3
# Backup /u02
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/md/rdsk/d4
# Backup /u03
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/md/rdsk/d5
# Backup /u04
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/md/rdsk/d6
---SCRIPT---

Method 3.
Offline the mirror and perform full backup using the script below. But what about the root partition? From the DiskSuite Administrator Guide, it told me that I cannot offline the mirror for root parition. What should I do then?
---SCRIPT---
#!/usr/bin/sh
# Lock the file system from write access for /u01
/usr/sbin/lockfs -w /u01
# Lock the file system from write access for /u02
/usr/sbin/lockfs -w /u02
# Lock the file system from write access for /u03
/usr/sbin/lockfs -w /u03
# Lock the file system from write access for /u04
/usr/sbin/lockfs -w /u04
# Offline the metamirror for /u01
/usr/sbin/metaoffline /dev/md/dsk/d13
# Offline the metamirror for /u02
/usr/sbin/metaoffline /dev/md/dsk/d14
# Offline the metamirror for /u03
/usr/sbin/metaoffline /dev/md/dsk/d15
# Offline the metamirror for /u04
/usr/sbin/metaoffline /dev/md/dsk/d16
# Backup replicas
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s7
/usr/sbin/ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t1d0s7
# Backup /u01
/usr/sbin/ufsdump 0ucf /dev/rmt/0 /dev/md/rdsk/d13
# Backup /u02
/usr/sbin/ufsdump 0ucf /dev/rmt/0 /dev/md/rdsk/d14
# Backup /u03
/usr/sbin/ufsdump 0ucf /dev/rmt/0 /dev/md/rdsk/d15
# Backup /u04
/usr/sbin/ufsdump 0ucf /dev/rmt/0 /dev/md/rdsk/d16
### What should I do about the root parition? Is this the right way to perform full backup? Any advantage over other? Why DiskSuite Administrator Guide refer to this method over the others in the backup section?
# Unlock the file system from write access for /u01
/usr/sbin/lockfs -u /u01
# Unlock the file system from write access for /u02
/usr/sbin/lockfs -u /u02
# Unlock the file system from write access for /u03
/usr/sbin/lockfs -u /u03
# Unlock the file system from write access for /u04
/usr/sbin/lockfs -u /u04
# Online the metamirror for /u01
/usr/sbin/metaonline /dev/md/dsk/d13
# Online the metamirror for /u02
/usr/sbin/metaonline /dev/md/dsk/d14
# Online the metamirror for /u03
/usr/sbin/metaonline /dev/md/dsk/d15
# Online the metamirror for /u04
/usr/sbin/metaonline /dev/md/dsk/d16
---SCRIPT---

[+][-]10/06/09 09:54 PM, ID: 25512304Accepted Solution

Your question has an Asker Certified™ answer! frankcheong verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zones: Sun Solaris, Backup & Restore Software, Disaster Recovery
Sign Up Now!
Solution Provided By: expone
Participating Experts: 1
Solution Grade: A
 
[+][-]10/06/09 10:05 PM, ID: 25512349Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/07/09 02:14 AM, ID: 25513343Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/07/09 02:24 AM, ID: 25513388Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/07/09 02:34 AM, ID: 25513437Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/07/09 02:43 AM, ID: 25513500Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/07/09 03:03 AM, ID: 25513607Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/07/09 04:05 AM, ID: 25513996Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100204-EE-VQP-115 - Hierarchy / EE_QW_3_20080625