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:
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.
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.
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.
# 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..
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)
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)
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)
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)
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)
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)