Metadevice Too Small To Attach


 
Thread Tools Search this Thread
Operating Systems Solaris Metadevice Too Small To Attach
# 1  
Old 08-09-2012
Metadevice Too Small To Attach

Hi All,

I am having trouble with my metadevices and I hope someone can help.
when i try to attach my submirror i get the following error:

Code:
root@xxxx>metattach d31 d21
metattach: tbair1: d21: submirror too small to attach
root@xxxx>

However, There is a submirror on the other disk which is the same size and IS attached.

Code:
d21: Concat/Stripe
    Hot spare pool: hsp002
    Size: 33559785 blocks (16 GB)
    Stripe 0:
        Device                             Start Block  Dbase   Reloc
        /dev/dsk/c0t5000CCA0258B3915d0s1      32130     Yes     Yes

Code:
d11: Submirror of d31
    State: Okay         
    Hot spare pool: hsp002
    Size: 33562500 blocks (16 GB)
    Stripe 0:
        Device                             Start Block  Dbase        State Reloc Hot Spare
        /dev/dsk/c0t5000CCA025806279d0s1          0     No            Okay   Yes

In fact i manually partitioned the disks so that my d21 is actually 16.02GB while d11 is (default) at 16.00GB, so its actually bigger.

I think the problem is the fact that the starting block on d21 is not 0.
also, the disks are the same size but the available cylinders are different.

disk with d11 (working)
Code:
Total disk cylinders available: 46870 + 2 (reserved cylinders)
2     backup    wm       0 - 46870      279.37GB    (46871/0/0) 585887500

disk with d21 (not working)
Code:
Total disk cylinders available: 36469 + 2 (reserved cylinders)
2     backup    wu       0 - 36468      279.37GB    (36469/0/0) 585874485


any one out there have any ideas?

Thanks,
A.
# 2  
Old 08-09-2012
I think that the partition tables of your devices do not match.

Compare the format output for both devices, if they do not match try this:
Code:
prtvtoc /dev/rdsk/original | fmthard -s /dev/rdsk/mirror

That error is not always helpful IMO. It has been a while on this, so please verify the fmthard command syntax, I'm not in a place where I can do that.
# 3  
Old 08-09-2012
Solution

Hi Jim, Thanks for the input but I managed to solve it myself after a LOT of manipulation.

what I did was to detach both submirrors

Code:
metadetach d30 d20
metadetach d31 d21

remove the slice:
Code:
metadb -d DISKNAMEs7

Clear it the submirrors
Code:
metaclear -f d20
metaclear -f d21

Partition the disk with format.

Then Initialise thesubmirrors:
Code:
metainit d20 1 1 /dev/dsk/DISKNAMEs0 -h hsp001
metainit d21 1 1 /dev/dsk/DISKNAMEs1 -h hsp002

and reattach them:
Code:
metattach d30 d20
metattach d31 d21

Partitioning the disks really just came down to trial and error to find the size that worked.

A
# 4  
Old 08-09-2012
Did you check to see if the paritions were different - I think that is what usually causes that error.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Problem to understand METADEVICE and related commands

Hi everyone, I'm new with solaris administration. I have just discovered the notion of METADEVICE and I really don't understand it. Can any one please explain it to me or give me useful link ? I also want to know more about these commandes: metainit metadb metaattach Thank you ... (1 Reply)
Discussion started by: adilyos
1 Replies

2. UNIX for Dummies Questions & Answers

Can I reboot during a metadevice resync?

In my infinite lack of wisdom, I brought a Solaris 10(Sparc, 64 bit ) system down to init 1, detached a metadrive so that I could run format->analyze->refresh on it, and then reinit'd and reattached it . It started syncing the drive as it's a submirror of a mirrored drive, which happens... (8 Replies)
Discussion started by: the.gooch
8 Replies

3. Solaris

Restoring a Root File System that was on a metadevice

Hello I use Solaris 10. I need to restore the root file system, but I don't know how . i can only boot the server in safe mode or with the cd (ok boot cdrom -s) Do you guys know a good procedure, I don't want to break the mirrors. ( the server is not a cluster). Its an emergency, i would... (4 Replies)
Discussion started by: feg
4 Replies

4. Solaris

Replacement of metadevice with soft partitions

Hi guys, currently I'm working on one problem. I have Sol10 box where I need to replace old storage for the new one with minimal downtime. Layout of metadevice looks like this: d103 p 1.0GB d100 d102 p 2.0GB d100 d101 p 1.0GB d100 d100 s ... (3 Replies)
Discussion started by: brusell
3 Replies

5. Solaris

metadevice submirrors 0 and 1 not consistent

At a new job, I've inherited a handful of Solaris 10 SunFire V240 servers. I noticed that the metadevices are not consistent, in a way that I've not seen before.... internal mirrored disks: metadevice d60 has c1t0d0s6 as submirror 0 (d61) and c1t1d0s6 as submirror 1 (d62) metadevice... (1 Reply)
Discussion started by: Max Power
1 Replies

6. Solaris

metadevice problem

hi all i am very new to solaris...i am trying configure raid 0 in my ultrascsi box which is having 6 sun36GB hard disks. I have created 4 state database replicas in the following slices /dev/dsk/c1t1d0s7 /dev/dsk/c1t2d0s7 /dev/dsk/c1t3d0s7 and /dev/dsk/c1t4d0s7. i could not use any other... (7 Replies)
Discussion started by: kingston
7 Replies

7. Solaris

Unable to mount Metadevice

Hi, I am running Solaris 8 on a V880 which has recently crashed. It has got a fibre connection to a StorageTrek array containing my database info. Since the crash I have been unable to mount the 2 metadevices which correspond to /spool & /apps - these FS's contain my db info and theredore I... (20 Replies)
Discussion started by: Duffs
20 Replies

8. Shell Programming and Scripting

Negate alerting for particular metadevice.

Hi All... I have a script that checks for any problems(particularly looks for 'Needs Maintenance') with metadevices and alerts accordingly. This was not configured to alert for a particular metadevice. Now i want to negate alerting for a particular metadevice(say d40). Is this possible? I am... (6 Replies)
Discussion started by: reddybs
6 Replies

9. Solaris

increase metadevice size

Hi, I am having two metadevices d50 and d100 which are used to created soft partitions as and when required. d50 and d100 are metadevices formed on different disks. d50 -- disks 0 & 1 d100 -- disks 2 & 3 I have a soft partition d70 os 50 GB on d50. Now there is no free space on d50. ... (1 Reply)
Discussion started by: sag71155
1 Replies

10. Solaris

insufficient metadevice database replicas ERROR

First I would like to thank this forum for assisting me in setting up my 1st sunbox. Could not have done it if it had not been for you guys and google :D I have mirrored my box and have SUCCESSFULLY tested booting from the rootdisk and rootmirror successfully. I am now looking at configuring... (2 Replies)
Discussion started by: mr_manny
2 Replies
Login or Register to Ask a Question