04-13-2011
"metareplace -e" needs the metadevice to be of type mirror or raid. Since d100 is only a concat/stripe you are out of luck.
If you replace a device with no redundancy, you loose (or have already lost) all data on it. So just clear the metadevices d101, d102, d103 and d100 and then recreate them on the replacement disk. Hope, you have a current backup of your data!
9 More Discussions You Might Find Interesting
1. Solaris
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
2. Shell Programming and Scripting
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
3. Solaris
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
4. Solaris
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
5. Solaris
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
Hi Friends,
I need your assistance, could someone assist....
Scenario:- Solaris 10, with zones and mounted file systems, using SAN.
SVM with metasets on it configured soft partitions on the meta device.
These soft partitions are mounted and file systems are being accessed.
We are now trying... (6 Replies)
Discussion started by: unahb1
6 Replies
7. Solaris
Hi all,
can somebody provide me with advice if is possible to replace physical LUN, with soft partitions (located directly on LUN, not on metadevice) by the new one.
Current state looks like this:
root@xxx:/etc/zones # metastat -c| egrep -i 900bec2d286
d504 p 159GB... (1 Reply)
Discussion started by: brusell
1 Replies
8. Solaris
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:
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... (3 Replies)
Discussion started by: A-Train
3 Replies
9. UNIX for Advanced & Expert Users
Hi,
I have this mirrored system with soft-partitions.
I have a difficulty determining the lucreate cmd in this env.
#metastat -p
d0 -m d10 d20 1
d10 1 1 c1t2d0s0
d20 1 1 c1t3d0s0
d1 -m d11 d21 1
d11 1 1 c1t2d0s5
d21 1 1 c1t3d0s5
d100 -p d1 -o 58720384 -b 8388608
d200 -p d1 -o... (1 Reply)
Discussion started by: chaandana
1 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)