How to reattach a mirror?


 
Thread Tools Search this Thread
Operating Systems Solaris How to reattach a mirror?
# 1  
Old 12-20-2012
How to reattach a mirror?

OK, I upgraded to the latest version of Solaris 10. Perhaps 'upgrade' isn't the right term because I reinstalled the root/boot drive with Solaris 10. Prior to this I had 4 physical drives. The first two had "/" and "/usr", the other two had a /var/audit and /home. I initially booted from cdrom and reinstalled using a flash archive. I ended up with what I had, when I did a more on /etc/release it was the same version. SO I reinstalled and it broke all the mirrors. I can mount the old '/' and old /usr/ as single drives. What I want to do is recover the /var/audit and /export/home. I inherited this system, but this is how the two were before. I believe the db are on slice 7. How do I recover them:

/dev/md/dsk/d30 /dev/md/rdsk/d30 /var/audit ufs 2 yes nosuid
/dev/md/dsk/d31 /dev/md/rdsk/d31 /export/home ufs 2 yes nosuid
# 2  
Old 12-20-2012
Does this help: Chapter 10 RAID 1 (Mirror) Volumes (Tasks) (Solaris Volume Manager Administration Guide)

It seems there are several optional file systems which can mirror that Solaris systems use, so you may need a file system specific procedure if they are not simple mirrors.
# 3  
Old 12-20-2012
The problem I have, and I did look at what you offered yesterday, is since the reloading of the OS, there are no databases and I don't know how to recover them, though:

metadb there are no existing databases

---------- Post updated at 03:36 PM ---------- Previous update was at 03:34 PM ----------

Quote:
Originally Posted by brownwrap
The problem I have, and I did look at what you offered yesterday, is since the reloading of the OS, there are no databases and I don't know how to recover them, though:

metadb there are no existing databases
I do know that the databases is on slice7 of the disk, just don't know how to recover it.

---------- Post updated at 04:45 PM ---------- Previous update was at 03:36 PM ----------

OK, I figured it out. First remember the databases were on slice7, I found a note that said you can look for them using
Code:
metadb -a /dev/dsk/c1t2d0s7
d40: Submirror of d30
    State: Needs maintenance
    Invoke: metasync d30
    Size: 49160256 blocks (23 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s0          0     No            Okay   Yes


d50: Submirror of d30
    State: Needs maintenance
    Invoke: metasync d30
    Size: 49160256 blocks (23 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t3d0s0          0     No            Okay   Yes

That told me there were databases.

Next I did metasync
Code:
metasync d30
metasync d31

Some of the mirrors were gone because I had mirrors on the now root disk. But after running the metasync, I was now able to mount the old mirros.
# 4  
Old 12-21-2012
So, you got back to normal? Great! Fancy file systems can be a pain, which sells SAN and storage appliances. Smilie
# 5  
Old 12-21-2012
Yes, back up

The last remaining item is the remove the databases that were associated with the root drive. It is not longer mirrored but the state databases remain.
# 6  
Old 12-22-2012
What is the output of
Code:
# metadb -i

?
# 7  
Old 12-23-2012
output of metadb -i

Code:
# metadb -i
        flags           first blk       block count
    M  m  p  lu         16              unknown         /dev/dsk/c1t0d0s7
    M     p  lu         8208            unknown         /dev/dsk/c1t0d0s7
    M W   p  l          16              unknown         /dev/dsk/c1t1d0s7
    M W   p  l          8208            unknown         /dev/dsk/c1t1d0s7
     a m   c luo        16              8192            /dev/dsk/c1t2d0s7
     a     c luo        8208            8192            /dev/dsk/c1t2d0s7
     a     c luo        16              8192            /dev/dsk/c1t3d0s7
     a     c luo        8208            8192            /dev/dsk/c1t3d0s7
     a     c luo        16              8192            /dev/dsk/c1t1d0s2
 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


Last edited by DukeNuke2; 12-23-2012 at 06:20 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. Solaris

Mirror patching

HI Friends.... kindly explain os mirror patching?in SVM and Vxvm. :wall: (1 Reply)
Discussion started by: Rajesh_Apple
1 Replies

3. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

4. Solaris

ZFS Mirror versus Hardware Mirror

I've looked a little but haven't found a solid answer, assuming there is one. What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
Discussion started by: Lespaul20
3 Replies

5. AIX

mirror rootvg

Hello I have a question I have a box with Aix 5.3 with rootvg on mirror. I deleted a filesystem and I create a new one to install some software but when I type lsvg -l rootvg all my filesystems has mirror unless the new one. My question is I can mirror this fs only ??? or I have to... (9 Replies)
Discussion started by: lo-lp-kl
9 Replies

6. AIX

how to mirror raid5

Hi, I have an ssa filesystem to move to san. We don't want any downtime. I heard that you can do a mirroring of existing file system on the san. The file system is a type of either raid 0, raid 1, or raid 5. Anyone know how to do this? Thanks in advance, itik (4 Replies)
Discussion started by: itik
4 Replies

7. AIX

Resizing VG with mirror

Dear Friends, I would like to know if there is any chance to expand a Volume Group, If this VG have a mirror. If there is any chance to do this what would be the safer way to avoid lost any data. Sorry about my English.:D Thanks a lot. (1 Reply)
Discussion started by: chrispaz
1 Replies

8. Solaris

mirror failed

i am working in sun solaris unix platform with storage device T3+ i got an error message mirror failed i have telneted to the storage and gave the command format it gives disk not available , i have shifted my storage from node A to node B then i gave the same command format by telneting to... (0 Replies)
Discussion started by: sasiprabu
0 Replies

9. UNIX for Dummies Questions & Answers

Screen doesn't reattach

delete this (0 Replies)
Discussion started by: kharlog
0 Replies
Login or Register to Ask a Question