Help with attaching mirrors


 
Thread Tools Search this Thread
Operating Systems Solaris Help with attaching mirrors
# 1  
Old 07-27-2012
Help with attaching mirrors

Hi Guys,

I need a help with attaching the sub mirrors as it keep throwing errors.

I have done solaris live upgrade and it was succesful but it keeps throwing error only for root (s0) and swap (s1)when i try to attach them.
For rest of the partitions for slices 3,4,5 on target 1 are able to attach with the mirror and finished syncing as well with target 0 slices 3,4,5.

Code:
 
error:

d20 submirror too small to attach

metastat output for below disks is

Code:
bash-2.05# metastat -p
d2 -m d12 d22 1
d12 1 1 c1t0d0s3
d22 1 1 c1t1d0s3
d1 -m d11                  --------------- swap
d11 1 1 c1t1d0s1
d0 -m d10                 ---------------- root
d10 1 1 c1t1d0s0
d3 -m d13 d23 1
d13 1 1 c1t0d0s4
d23 1 1 c1t1d0s4
d4 -m d14 d24 1
d14 1 1 c1t0d0s5
d24 1 1 c1t1d0s5
d20 1 1 c1t0d0s0
d21 1 1 c1t0d0s1

Code:

d20 1 1 c1t0d0s0
d21 1 1 c1t0d0s1



Now not able able to attach d20 to d0 and d21 to d1 as it keep on throwing the error above said.

The prtvtoc of the two disks are as below and target 1 is master.

Code:
bash-2.05# prtvtoc /dev/dsk/c1t1d0s2       
* /dev/dsk/c1t1d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*     935 sectors/track
*       4 tracks/cylinder
*    3740 sectors/cylinder
*   38298 cylinders
*   38296 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    4203760  20973920  25177679
       1      3    01   25177680   8396300  33573979
       2      5    01          0 143227040 143227039
       3      0    00   33573980  20973920  54547899
       4      0    00   54547900  88641740 143189639
       5      8    00          0   4203760   4203759
       7      0    00  143189640     37400 143227039


bash-2.05# prtvtoc /dev/dsk/c1t0d0s2
* /dev/dsk/c1t0d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*     424 sectors/track
*      24 tracks/cylinder
*   10176 sectors/cylinder
*   14089 cylinders
*   14087 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*   143176320    142464 143318783
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    4202688  20972736  25175423
       1      3    01   25175424   8395200  33570623
       2      5    00          0 143349312 143349311
       3      0    00   33570624  20972736  54543359
       4      0    00   54543360  88632960 143176319
       5      8    00          0   4202688   4202687
       7      0    00  143318784     30528 143349311

Any ideas how it can be done without losing the data and without any downtime as i see the geometry is different for both which could be causing this issue.

Thanks in advance

Thanks,
Phani


Last edited by phanidhar6039; 07-27-2012 at 08:29 AM.. Reason: more info
# 2  
Old 07-27-2012
Detach remaining c1t0d0 submirrors, clear metadevices from them. Then copy vtoc from primary submirror:
Code:
prtvtoc /dev/dsk/c1t1d0s2 | fmthard -s - /dev/dsk/c1t0d0s2

After that recreate c1t0d0 metadevices and attach them to the mirrors.
# 3  
Old 07-27-2012
Quote:
Originally Posted by bartus11
Detach remaining c1t0d0 submirrors, clear metadevices from them. Then copy vtoc from primary submirror:
Code:
prtvtoc /dev/dsk/c1t1d0s2 | fmthard -s - /dev/dsk/c1t0d0s2

After that recreate c1t0d0 metadevices and attach them to the mirrors.
Hi Bartus,

Thanks for reply i have already tried it and it returned this error say both disks are of different size.

Code:
bash# prtvtoc /dev/dsk/c1t1d0s2 |fmthard -s - /dev/rdsk/c1t0d0s2
Partition 0 not aligned on cylinder boundary: "       0      2    00    4203760  20973920  25177679"

Thanks,
Phani
# 4  
Old 07-27-2012
I think it is not an error, just warning... Can you post prtvtoc from both disks now?
# 5  
Old 07-28-2012
For mirroring it is always recommended to have disks of same size.If they have different cylinder, head, sector count or different size you will have to fiddle with sizing slices.

You should keep in mind that prtvtoc output for second disk should be same as that
of first disk.You have to keep the starting and end cylinders same for each slice.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Zpool with 3 2-way mirrors in a pool

I have a single zpool with 3 2-way mirrors ( 3 x 2 way vdevs) it has a degraded disk in mirror-2, I know I can suffer a single drive failure, but looking at this how many drive failures can this suffer before it is no good? On the face of it, I thought that I could lose a further 2 drives in each... (4 Replies)
Discussion started by: fishface
4 Replies

2. Solaris

Oneway mirrors

All, One-way mirror. Elements of the concat in Last-errd state. What would be the best way to correct it? metastat -s db2test -pc db2test/d220 p 5.0GB db2test/d200 db2test/d219 p 5.0GB db2test/d200 db2test/d218 p 5.0GB db2test/d200 db2test/d217 p 30GB db2test/d200... (0 Replies)
Discussion started by: ossupport55
0 Replies

3. Linux

[Errno 256] No more mirrors to try.

Dear all, CentOS 6 After executing "yum update -y" command I am facing this error. Please help me out. thanks in advance. Full error & error code is given as follow: ... (7 Replies)
Discussion started by: saqlain.bashir
7 Replies

4. Linux

Additional mirrors on centos

How can I add additional mirrors to my CENTOS distro, according to this page AdditionalResources/Repositories - CentOS Wiki there are few fedora project repositories I'd like to add any of them but I don't know how? Thank you in advance (0 Replies)
Discussion started by: c0mrade
0 Replies

5. Solaris

both mirrors in needs maintenance state.

Hi, Ii am facing the belwo problem: d50: Mirror Submirror 0: d30 State: Needs maintenance Submirror 1: d40 State: Needs maintenance Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 212176648 blocks (101 GB) d30:... (3 Replies)
Discussion started by: sag71155
3 Replies

6. Solaris

DiskSuite: Breaking mirrors.

Ok, so I have a remote system (7 states away) that's using SDS to manage the two 18 gig disks. /, swap, /var, /home, and /opt. The mirroring procedure I created uses installboot to ensure there's a bootblk on both disks of an SDS mirror. The system has a problem booting (can't write to... (21 Replies)
Discussion started by: BOFH
21 Replies

7. UNIX for Advanced & Expert Users

Reliant Unix and Disk Mirrors

Hi Folks, This is already posted on Disk & Memory, will post under expert incase there is someone here who has seen this before. This one has me a bit confused. I have a large system running Reliant 5.45 with an EMC 3930 disk array fibre attached. As part of our requirement I... (0 Replies)
Discussion started by: gull04
0 Replies
Login or Register to Ask a Question