Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mirroring root disk

Status
Not open for further replies.

fahimchoudhry

Technical User
Jul 29, 2004
3
0
0
US
I am using disksuite to mirror a root drive:
ROOT DISK
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 1000 1.71GB (1001/0/0) 3594591
1 var wm 1001 - 1716 1.23GB (716/0/0) 2571156
2 swap wu 1717 - 2261 955.61MB (545/0/0) 1957095
3 unassigned wm 2262 - 3430 2.00GB (1169/0/0) 4197879
4 unassigned wm 3431 - 4599 2.00GB (1169/0/0) 4197879
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

ANOTHER DISK
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 1000 1.71GB (1001/0/0) 3594591
1 var wm 999 - 1717 1.23GB (719/0/0) 2581929
2 swap wu 1718 - 2262 955.61MB (545/0/0) 1957095
3 unassigned wm 2263 - 3431 2.00GB (1169/0/0) 4197879
4 unassigned wm 3432 - 4600 2.00GB (1169/0/0) 4197879
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

[ernie:root] metastat -p
d0 -m d10 1
d10 1 1 c0t0d0s0
d1 -m d11 d21 1
d11 1 1 c0t0d0s1
d21 1 1 c0t8d0s1
d2 -m d12 d22 1
d12 1 1 c0t0d0s2
d22 1 1 c0t8d0s2
d20 1 1 c0t8d0s0
EVERY THINK WENT FINE, BUT WHEN I TRY TO ATTACH FOLLOWING I GET THE ERROR:::

[ernie:root] metattach d0 d20
metattach: ernie: d20: submirror too small to attach

pls help::::::thanks

 
As you can see the partition tables of your disks don't match!

Do the following steps:

First copy the partition table of the original disk to the mirror with the command:

# prtvtoc /dev/rdsk/original | fmthard -s /dev/rdsk/mirror

Check with "format" again and you will see that the partition table looks exactly the same now.

Then create at least 2 state database replicas on both disks with the command:

# metadb -a -f -c2 /dev/dsk/SliceForMetadb /dev/dsk/SliceSorMirrormetadb

Then start building your metadevices again.

HTH.

mrjazz [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top