Script to automate restore data and root mirror in Solaris 10


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script to automate restore data and root mirror in Solaris 10
# 1  
Old 07-30-2014
Oracle Script to automate restore data and root mirror in Solaris 10

Hi Folks, I have taken a backup of root filesystem with tar. Please help me to write a ksh script to automate restoration and root mirror in solaris 10.
Thanks in advance.
# 2  
Old 07-30-2014
First question is, what do you mean by "restore"? You can restore a single file, restore multiple files, or restore the whole filesystem as in disaster recovery (DR).

In the latter case, if the filesystem is root and the system is down then you can't run any scripts - you have no system. In that case there's no alternative to experience and you'll need to boot from some other device (usually CD/DVD) and then enter commands manually. In the case of DR, a tar backup is usually not sufficient; you need something like ufsdump. What type of filesystem is it? ufs or zfs?

I think you need to provide much more detail of your configuration and what automation you are trying to achieve. Yes, you can easily script the restoration of a single file from the tar achive if that's what you are asking.

Also, how is the mirror made? Software (meta) or hardware (raidctl)?

Last edited by hicksd8; 07-30-2014 at 07:22 AM..
This User Gave Thanks to hicksd8 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Mirror root disk - V490

Got a V490 with one existing root disk. Other disk slot was never populated. Want to ensure we've got disk mirroring. Currently vfstab mounts the physical disk - no mirroring set up. Whats best way to achieve this without losing current disk? (1 Reply)
Discussion started by: psychocandy
1 Replies

2. Solaris

How to detach root mirror pool?

I have to do patching in single user mode in solaris 10 zfs root pool. Before that I have to detach the root mirror pool so that if patching fails then I can boot from detached root mirror pool. Please let me know how can I detach root pool bash-3.2# zpool status pool: rpool state: ONLINE... (5 Replies)
Discussion started by: hb00
5 Replies

3. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

4. UNIX for Advanced & Expert Users

Can we Automate the User creation and setting password through a script in solaris 10

Hi, I am using Solaris 10 OS and Bash shell.Is there any way can we automate User creation and setting passwords through a script or any freeware tool. Advance thanks for your response. (1 Reply)
Discussion started by: muraliinfy04
1 Replies

5. Solaris

Mirror the root disk

Hi all I wish to mirror for the root disk, but last time i do, make the server cannot boot up. :p So this time, hope you guys can assist me on it. =) At the last code, is the step i wish to do. Please help to check and correct me if got any wrong. root@leo # format </dev/null Searching for... (17 Replies)
Discussion started by: SmartAntz
17 Replies

6. Solaris

OBP - root / mirror disk syntax

Hi all Can someone explain to me the different syntax regarding how root / mirror disks are represented. I never truely understand the namely / device tress etc. Let me give you an example. On one my my servers, the root and mirror drives are :- A domain on a sunfire 6800 :- ... (6 Replies)
Discussion started by: sbk1972
6 Replies

7. Solaris

Root Mirror is broken

Hi all, Root mirror is broken under veritas control. so could you please help me how to boot the system now step by step procedure. i really thankful to all. regards krishna (3 Replies)
Discussion started by: murthy76
3 Replies

8. Solaris

restore mirrored root

Hi, I have an ultra60 SUN Server with Solaris 10 4/04 S.O. installed on. I mirrored root disk and now I try to restore this. I simulate that I have lose the root FS, not for a hardware faillure but for a software problem and I can't use "meta"commands for using a good submirror. I must restore... (1 Reply)
Discussion started by: bonovox
1 Replies
Login or Register to Ask a Question