07-09-2009
Problem with state database
Hi Experts,
I am facing problem while creating a concatenated volume. I would like to decribe the process I did:
1- I created state data base with slice1,slice2,slice3,slice4,slice5,slice6 with command:
#metadb -a -f slice1 slice2 ........ slice6
From metastas, everything seems to be ok. But when I used these slices to create a concatenated volume by below command:
#metainit d20 1 2 slice1 slice2
The concatenated vol was created, but when I tried to add one more slice (c1t1d1s3) with volume d20, the below error comes:
ERROR : metainit: sun : c1t1d1s3 : overlaps with device in meta device state databse.
Please guide me to recover from this problem.
Thanks in advance!
Deepak
8 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
Hi! This is my first post and im not that familiar with UNIX but I'll try to explain my problem..
I have a server here at work running Open UNIX Release 8.0.0
It has a special application on it that I'm trying to run a database backup on. For the last 2 weeks this has failed.. Usually the... (2 Replies)
Discussion started by: TaZ
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I'm trying to run one shell scrip from crontab.That scrip is connecting with sybase database with isql statement.
But when that scrip is going to run using crontab, it is showing following error :
CT-LIBRARY error:
ct_connect(): network packet layer: internal net library error: Net-Lib... (0 Replies)
Discussion started by: dipakjoshi
0 Replies
3. Shell Programming and Scripting
hi guys,
I am using the following code in order to access a database.
#!/usr/bin/perl
print "READ DATA FROM DATABASE\n";
use DBI;
use strict;
#use DBD::Oracle;
my $user='reassure';
my $pass='R3Assur3';
#my $dsn="dbi:Oracle:orcl";
my $dsn='dbi:Oracle:cobscs.world';
my $dbh =... (1 Reply)
Discussion started by: chriss_58
1 Replies
4. Shell Programming and Scripting
Hi,
I have many servers distributed on my customer locations all servers has MYSQL database.
I want to backup database for each server on server at my location using scheduler.
So I create Shell script file to backup and copy the database file from customer server to my server as... (3 Replies)
Discussion started by: amsbas
3 Replies
5. UNIX for Advanced & Expert Users
How are you, good afternoon, I do not speak and I do not write in English, and I'm iniciandome in unix / linux on my own, I am using the google translator, my question is this, know what are the shutdown command to change user State:
# shutdown -y -g0 -i0 (completely off my system)
# shutdown... (8 Replies)
Discussion started by: PrincipianteZ
8 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I new to scripting and i need to know how to put the script when the capture goes down in the feeds database.. I tried with this "ps -ef | grep asn" command and it displaying the capture,apply time. But the alert we are receving now is replication is failed . So i need to develop the... (1 Reply)
Discussion started by: g.nanthagopal
1 Replies
7. AIX
Hi Admins,
I am having a whole system lpar in open firmware state on HMC.
How can I bring it to running state ?
Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies
8. Shell Programming and Scripting
Hello Everyone,
I have a process that should be always running. Unfortunately, this process is getting down almost every 10 minutes. I want to make a script that verify the state of this process: If the process is up, the script shouldn't do nothing and if it's down he should run it.
Can... (3 Replies)
Discussion started by: adilyos
3 Replies
LEARN ABOUT DEBIAN
metaclear
metaclear(1M) System Administration Commands metaclear(1M)
NAME
metaclear - delete active metadevices and hot spare pools
SYNOPSIS
/usr/sbin/metaclear -h
/usr/sbin/metaclear [-s setname] -a [-f]
/usr/sbin/metaclear component
/usr/sbin/metaclear [-s setname] [-f] metadevice... hot_spare_pool...
/usr/sbin/metaclear [-s setname] -r [-f] metadevice... hot_spare_pool...
/usr/sbin/metaclear [-s setname] -p component
/usr/sbin/metaclear [-s setname] -p metadevice
DESCRIPTION
The metaclear command deletes the specified metadevice or hot_spare_pool., or purges all soft partitions from the designated component.
Once a metadevice or hot spare pool is deleted, it must be re-created using metainit before it can be used again.
Any metadevice currently in use (open) cannot be deleted.
OPTIONS
Root privileges are required for all of the following options except -h.
-a Deletes all metadevices and configured hot spare pools in the set named by -s, or the local set by default.
-f Deletes (forcibly) a metadevice that contains a subcomponent in an error state.
-h Displays usage message.
-p Deletes (purges) all soft partitions from the specified metadevice or component.
-r Recursively deletes specified metadevices and hot spare pools, but does not delete metadevices on which others
depend.
-s setname Specifies the name of the diskset on which metaclear will work. Using the -s option causes the command to perform
its administrative function within the specified diskset. Without this option, the command performs its function on
local metadevices and/or hot spare pools.
OPERANDS
metadevice ... Specifies the name(s) of the metadevice(s) to be deleted.
component Specifies the c*d*t*s* name(s) of the components containing soft partitions to be deleted.
hot_spare_pool ... Specifies the name(s) of the hot spare pools to be deleted in the form hspnnn, where nnn is a number in the range
000-999.
EXAMPLES
Example 1: Deleting Various Devices
The following example deletes a metadevice named d10.
# metaclear /dev/md/dsk/d10
The following example deletes all local metadevices and hot spare pools on the system.
# metaclear -a
The following example deletes a mirror, d20, with an submirror in an error state.
# metaclear -f d20
The following example deletes a hot spare pool, hsp001.
# metaclear hsp001
The following example deletes a soft partition, d23.
# metaclear d23
The following example purges all soft partitions on the slice c2t3d5s2 if those partitions are not being used by other metadevices or are
not open.
# metaclear -p c2t3d5s2
The following example purges soft partitions from a metadevice.
# metaclear -p d2
d3: Soft Partition is cleared
d4: Soft Partition is cleared
d5: Soft Partition is cleared
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 |SUNWmdu |
+-----------------------------+-----------------------------+
SEE ALSO
mdmonitord(1M), metadb(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
SunOS 5.10 8 Aug 2003 metaclear(1M)