Sponsored Content
Operating Systems Solaris insufficient metadevice database replicas ERROR Post 89219 by mr_manny on Friday 11th of November 2005 01:35:53 PM
Old 11-11-2005
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 Smilie

I have mirrored my box and have SUCCESSFULLY tested booting from the rootdisk and rootmirror successfully.
I am now looking at configuring the system to automatically boot the rootmirror when the rootdisk is not available/offline.

I initially received "md : d10 unavailable" messages, which I believe needed "nologging"
to be associated w/the root device in my /etc/vfstab file.

unfortunately, I am now receiving "insufficient metadevice" messages:

Insufficient metadevice database replicas located.

Use metadb to delete databases which are broken.
Ignore any "Read-only file system" error messages.
Reboot the system when finished to reload the metadevice database.
After reboot, repair any broken database replicas which were deleted.

Type control-d to proceed with normal startup


Is there a way to configure the box to automatically boot off the alternate?
Or do I have to DELETE the primary from the metadb before being able to bring the system backONLINE after a failed drive?

thanks,
manny


my eeprom contains the following:

test-args: data not available.
diag-passes=1
local-mac-address?=false
fcode-debug?=false
scsi-initiator-id=7
oem-logo: data not available.
oem-logo?=false
oem-banner: data not available.
oem-banner?=false
ansi-terminal?=true
screen-#columns=80
screen-#rows=34
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttya-rts-dtr-off=false
ttya-ignore-cd=true
ttyb-mode=9600,8,n,1,-
ttya-mode=9600,8,n,1,-
output-device=screen
input-device=keyboard
auto-boot-on-error?=true
error-reset-recovery=sync
load-base=16384
auto-boot?=true
boot-command=boot
diag-file: data not available.
diag-device=rootdisk rootmirror
boot-file: data not available.
boot-device=rootdisk rootmirror
use-nvramrc?=true
nvramrc=devalias rootdisk /pci@1f,700000/scsi@2/disk@0,0
devalias rootmirror /pci@1f,700000/scsi@2/disk@1,0
security-mode=none
security-password: data not available.
security-#badlogins=0
verbosity=normal
diag-trigger=error-reset power-on-reset
service-mode?=false
diag-script=normal
diag-level=max
diag-switch?=false

my metadb contians the following:
# metadb -i
flags first blk block count
a p luo 16 8192 /dev/dsk/c1t0d0s7
a p luo 8208 8192 /dev/dsk/c1t0d0s7
a m p luo 16 8192 /dev/dsk/c1t1d0s7
a p luo 8208 8192 /dev/dsk/c1t1d0s7


when I created my DiskSuite database replicas I used the following command:
metadb -a -f -c2 /dev/dsk/c1t0d0s7 /dev/dsk/c1t1d0s7


my Drive slices are setup as follows:

# df -h | grep dsk
/dev/md/dsk/d30 14G 4.6G 9.6G 33% /
/dev/md/dsk/d31 5.8G 539M 5.2G 10% /var
/dev/md/dsk/d34 4.8G 4.9M 4.8G 1% /tmp
/dev/md/dsk/d32 14G 15M 14G 1% /apps
/dev/md/dsk/d35 15G 16M 15G 1% /dbaexports
/dev/md/dsk/d33 6.3G 8.0M 6.2G 1% /home
# swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d36 85,36 16 10247216 10247216
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SDS and replicas

Hello, We are using Solstice Disk Suite on Solaris 2.7. We want to add two striped volume with six disks. On each disk, we take a slice and we create the stripe. That I want to know : Is it necessary to add two replicas on the same slice on the new disks, as made before on the others... (1 Reply)
Discussion started by: christophe
1 Replies

2. Solaris

Problem with DiskSuite replicas

Good morning, I have Solstice disk suite installed on my server. One disk broke so I sostitute it. A replica was present on this disk. I had delete and then recreate it with commands metadb -d and metadb -a. Now when I inquire for the status of replicas I see this: stp11# metadb -i ... (2 Replies)
Discussion started by: bonovox
2 Replies

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

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

5. Solaris

metadevices: how to test metadb (how to corrupt replicas/understanding replicas)

Hi all, I recently started exploring Solaris 10. I am testing metadevices now. I have been reading about the state databases here: 6.State Database (Overview) (Solaris Volume Manager Administration Guide) - Sun Microsystems So I created 3 metadbs on 2 slices (6 in total; c1t1d0s3... (3 Replies)
Discussion started by: deadeyes
3 Replies

6. Solaris

Solaris Volume Manger - Database Replicas Question - Benefits of Increasing Default Size?

Hey all! I was hoping someone knew anything about this one... I know with Solaris Volume Manager the default Database Replica size is 8192 blocks (4MB approximately) Now I know you can increase this amount but is there any point? The reason I am asking this is that I've setup mirroring on... (2 Replies)
Discussion started by: Keepcase
2 Replies

7. Programming

Fortran runtime error: Insufficient data descriptors in format after reversion

Hello, I have some Fortran code that is providing the following error: At line 1165 of lapc_shells_2.f Fortran runtime error: Insufficient data descriptors in format after reversion Here are the lines just above and including 1165: WRITE (*,"('ATTEMPTING TO READ PLATE... (1 Reply)
Discussion started by: jm4smtddd
1 Replies

8. Solaris

zfs raidz2 - insufficient replicas

I lost my system volume in a power outage, but fortunately I had a dual boot and I could boot into an older opensolaris version and my raidz2 7 drive pool was still fine. I even scrubbed it, no errors. However, the older os has some smb problems so I wanted to upgrade to opensolaris11. I... (3 Replies)
Discussion started by: skk
3 Replies

9. UNIX for Advanced & Expert Users

sendmail error - 452 4.3.1 Insufficient system resources

Hi All, I am using svnnotify (which is available on net) script to send svn commit notification. Everything was working fine up to yesterday but from yesterday i started seeing error. 29CD01FCE44 7228 Thu Apr 5 11:11:51 apache@vm0001.host.com (host mail.mailserver.com said: 452... (6 Replies)
Discussion started by: vishal_vsh1
6 Replies

10. Shell Programming and Scripting

Xargs error: insufficient space for argument

I'm trying to crudely hack my way through some data processing. I have file.txt with around 17,000 lines like this: ACYPI002690-PA.aa.afa.afa.trim_phyml_tree_fullnames_fullhomolog.txt 3 72 71 ACYPI002690-PA.aa.afa.afa.trim_phyml_tree_fullnames_fullhomolog.txt 97 111 71... (1 Reply)
Discussion started by: pathunkathunk
1 Replies
metadb(1M)						  System Administration Commands						metadb(1M)

NAME
metadb - create and delete replicas of the metadevice state database SYNOPSIS
/sbin/metadb -h /sbin/metadb [-s setname] /sbin/metadb [-s setname] -a [-f] [-k system-file] mddbnn /sbin/metadb [-s setname] -a [-f] [-k system-file] [-c number] [-l length] slice... /sbin/metadb [-s setname] -d [-f] [-k system-file] mddbnn /sbin/metadb [-s setname] -d [-f] [-k system-file] slice... /sbin/metadb [-s setname] -i /sbin/metadb [-s setname] -p [-k system-file] [mddb.cf-file] DESCRIPTION
The metadb command creates and deletes replicas of the metadevice state database. State database replicas can be created on dedicated slices, or on slices that will later become part of a simple metadevice (concatenation or stripe) or RAID5 metadevice. Do not place state database replicas on fabric-attached storage, SANs, or other storage that is not directly attached to the system and available at the same point in the boot process as traditional SCSI or IDE drives. See NOTES. The metadevice state database contains the configuration of all metadevices and hot spare pools in the system. Additionally, the metadevice state database keeps track of the current state of metadevices and hot spare pools, and their components. Solaris Volume Manager automati- cally updates the metadevice state database when a configuration or state change occurs. A submirror failure is an example of a state change. Creating a new metadevice is an example of a configuration change. The metadevice state database is actually a collection of multiple, replicated database copies. Each copy, referred to as a replica, is subject to strict consistency checking to ensure correctness. Replicated databases have an inherent problem in determining which database has valid and correct data. To solve this problem, Volume Man- ager uses a majority consensus algorithm. This algorithm requires that a majority of the database replicas be available before any of them are declared valid. This algorithm strongly encourages the presence of at least three initial replicas, which you create. A consensus can then be reached as long as at least two of the three replicas are available. If there is only one replica and the system crashes, it is possible that all metadevice configuration data can be lost. The majority consensus algorithm is conservative in the sense that it will fail if a majority consensus cannot be reached, even if one replica actually does contain the most up-to-date data. This approach guarantees that stale data will not be accidentally used, regardless of the failure scenario. The majority consensus algorithm accounts for the following: the system will stay running with exactly half or more replicas; the system will panic when less than half the replicas are available; the system will not reboot without one more than half the total replicas. When used with no options, the metadb command gives a short form of the status of the metadevice state database. Use metadb -i for an explanation of the flags field in the output. The initial state database is created using the metadb command with both the -a and -f options, followed by the slice where the replica is to reside. The -a option specifies that a replica (in this case, the initial) state database should be created. The -f option forces the creation to occur, even though a state database does not exist. (The -a and -f options should be used together only when no state databases exist.) Additional replicas beyond those initially created can be added to the system. They contain the same information as the existing replicas, and help to prevent the loss of the configuration information. Loss of the configuration makes operation of the metadevices impossible. To create additional replicas, use the metadb -a command, followed by the name of the new slice(s) where the replicas will reside. All repli- cas that are located on the same slice must be created at the same time. To delete all replicas that are located on the same slice, the metadb -d command is used, followed by the slice name. When used with the -i option, metadb displays the status of the metadevice state databases. The status can change if a hardware failure occurs or when state databases have been added or deleted. To fix a replica in an error state, delete the replica and add it back again. The metadevice state database (mddb) also contains a list of the replica locations for this set (local or shared diskset). The local set mddb can also contain host and drive information for each of the shared disksets of which this node is a member. Other than the diskset host and drive information stored in the local set mddb, the local and shared diskset mddbs are functionality identical. The mddbs are written to during the resync of a mirror or during a component failure or configuration change. A configuration change or failure can also occur on a single replica (removal of a mddb or a failed disk) and this causes the other replicas to be updated with this failure information. OPTIONS
Root privileges are required for all of the following options except -h and -i. The following options can be used with the metadb command. Not all the options are compatible on the same command line. Refer to the SYNOP- SIS to see the supported use of the options. -a Attach a new database device. The /kernel/drv/md.conf file is automatically updated with the new information and the /etc/lvm/mddb.cf file is updated as well. An alternate way to create replicas is by defining them in the /etc/lvm/md.tab file and specifying the assigned name at the command line in the form, mddbnn, where nn is a two-digit number given to the replica definitions. Refer to the md.tab(4) man page for instructions on setting up replicas in that file. -c number Specifies the number of replicas to be placed on each device. The default number of replicas is 1. -d Deletes all replicas that are located on the specified slice. The /kernel/drv/md.conf file is automatically updated with the new information and the /etc/lvm/mddb.cf file is updated as well. -f The -f option is used to create the initial state database. It is also used to force the deletion of replicas below the minimum of one. (The -a and -f options should be used together only when no state databases exist.) -h Displays a usage message. -i Inquire about the status of the replicas. The output of the -i option includes characters in front of the device name that represent the status of the state database. Explanations of the characters are displayed following the replica status and are as follows: d replica does not have an associated device ID. 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 r replica does not have device relocation information t tagged data is associated with the replica W replica has device write errors a replica is active, commits are occurring to this 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 database R replica had device read errors B tagged data associated with the replica is not valid -k system-file Specifies the name of the kernel file where the replica information should be written. The default system-file is /ker- nel/drv/md.conf. This option is for use with the local diskset only. -l length Specifies the size of each replica. The default length is 8192 blocks, which should be appropriate for most configurations. "Replica sizes of less than 128 blocks are not recommended. -p Specifies updating the system file (/kernel/drv/md.conf) with entries from the /etc/lvm/mddb.cf file. This option is nor- mally used to update a newly built system before it is booted for the first time. If the system has been built on a system other than the one where it will run, the location of the mddb.cf on the local machine can be passed as an argument. The system file to be updated can be changed using the -k option. This option is for use with the local diskset only. -s setname Specifies the name of the diskset on which the metadb command will work. Using the -s option will cause the command to per- form its administrative function within the specified diskset. Without this option, the command will perform its function on local database replicas. slice Specifies the logical name of the physical slice (partition), such as /dev/dsk/c0t0d0s3. EXAMPLES
Example 1: Creating Initial State Database Replicas The following example creates the initial state database replicas on a new system. # metadb -a -f c0t0d0s7 c0t1d0s3 c1t0d0s7 c1t1d0s3 The -a and -f options force the creation of the initial database and replicas. You could then create metadevices with these same slices, making efficient use of the system. Example 2: Adding Two Replicas on Two New Disks This example shows how to add two replicas on two new disks that have been connected to a system currently running Volume Manager. # metadb -a c0t2d0s3 c1t1d0s3 Example 3: Deleting Two Replicas This example shows how to delete two replicas from the system. Assume that replicas have been set up on /dev/dsk/c0t2d0s3 and /dev/dsk/c1t1d0s3. # metadb -d c0t2d0s3 c1t1d0s3 Although you can delete all replicas, you should never do so while metadevices still exist. Removing all replicas causes existing metade- vices to become inoperable. FILES
/etc/lvm/mddb.cf Contains the location of each copy of the metadevice state database. /etc/lvm/md.tab Workspace file for metadevice database configuration. /kernel/drv/md.conf Contains database replica information for all metadevices on a system. Also contains Solaris Volume Manager configuration information. EXIT STATUS
The following exit values are returned: 0 successful completion >0 an error occurred ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWmdr | +-----------------------------+-----------------------------+ SEE ALSO
mdmonitord(1M), metaclear(1M), metadetach(1M), metahs(1M), metainit(1M), metaoffline(1M), metaonline(1M), metaparam(1M), metarecover(1M), metarename(1M), metareplace(1M), metaroot(1M), metaset(1M), metassist(1M), metastat(1M), metasync(1M), metattach(1M), md.tab(4), md.cf(4), mddb.cf(4), md.tab(4), attributes(5), md(7D) Solaris Volume Manager Administration Guide NOTES
Replicas cannot be stored on fabric-attached storage, SANs, or other storage that is not directly attached to the system. Replicas must be on storage that is available at the same point in the boot process as traditional SCSI or IDE drives. A replica can be stored on a: o Dedicated local disk partition o Local partition that will be part of a volume o Local partition that will be part of a UFS logging device SunOS 5.10 14 Sep 2004 metadb(1M)
All times are GMT -4. The time now is 01:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy