12-17-2008
That makes sense because for some reason d26 is no longer associated with d6. I can't advise you a safe method to reattach it to d6 because I don't have access to a Solaris system using SVM/DiskSuite any more.
If the disk is genuinely faulty (which it appears to be judging by the number of hard errors and the fact that metareplace fails) then you should physically replace it before attempting to rejoin it to the mirrors.
If you need to recover the data from d26 one option would be to simply mount that device instead of d6.
10 More Discussions You Might Find Interesting
1. Solaris
Running Solaris 9 with SVM. I'm not that familiar with it, but metastat output gives "needs maintenance" message on 2 of the mirrors. There are no errors in /var/adm/messages. What do I need to do to fix this error? Thanks. (14 Replies)
Discussion started by: dangral
14 Replies
2. Solaris
hi all,
can someone pls pass on your suggestion?
Firs thing I am testing a script which checks for the pattern 'Needs Maintenance' from metastat output and prints some messages in the screen. So i need to simulate an error in mirrored disk for metastat to give this message 'Needs Maintenance'.... (3 Replies)
Discussion started by: srirammad007
3 Replies
3. Solaris
Hello guys,
i am getting some errors as below when i want to perform maintainence on the disks of my servers,
getting errors like this "metareplace: myhost: /dev/dsk/c1t0d0s5: Invalid argument" when i execute
#metareplace -e d5 c1t0d0s5
kindly advise on this matter,am afraid to use -f... (4 Replies)
Discussion started by: cromohawk
4 Replies
4. Solaris
My company is running a solaris 2.7 machine. The machine is getting slow recently. I have no expert in solaris. Please help.
I checked the log in /var/adm/message:
I also checked with the command iostat -nE. It returns:
Metastat returns the followings:
What should i do now?... (10 Replies)
Discussion started by: nickychung
10 Replies
5. Solaris
I have a disk in maintanance status . I executed metareplace -e partition device . It resynced upto 5 % and then stopped . In the /var/adm/messages it showed the write error .
My question is if I analyse and repair the disk in format command , will my write error go . I dont have 0 hard and... (6 Replies)
Discussion started by: Hitesh Shah
6 Replies
6. Solaris
Hi people,
I have on problem when execute the command METASTAT...
d60: Soft Partition
Device: d10
State: Errored
Size: 12582912 blocks (6.0 GB)
Someone help me?
Thank you very much (4 Replies)
Discussion started by: denisgomes
4 Replies
7. Shell Programming and Scripting
Hi,
after issuing metastat command I am getting output as follows
Actually these soft partitions are more than 100.
I want output as Device Name & Size.
for eg d4004 2.0 GB (4 Replies)
Discussion started by: tuxian
4 Replies
8. Solaris
Hello,
After replacing a JBOD disk that died, the metareplace was ran, the device went into enable/sync'ing state and then when the sync completed, the state changed to unavailable.
metadb shows the replica db looking good on the new disk.
format shows the disk online and looking good.
... (2 Replies)
Discussion started by: rfransix
2 Replies
9. Solaris
Dear,
Required an script such that :
If metastat |grep Needs , results in some output then this command to be executed for the same :
opcmsg object=metastat a=OS msg_grp=OpC severity=critical msg_text="Need maintenance for the system $line"
With regards,
Mjoshi (3 Replies)
Discussion started by: mjoshi87
3 Replies
10. Solaris
Hi,
We have a Solaris 10 machine with update 11 and was configured with IBM storage. It was assigned 2 LUNs (each 70GB) which were striped to make it 140GB. we have taken full backup of entire machine and Our storage team replaced IBM storage with Nimble storage (they did storage-level... (6 Replies)
Discussion started by: prvnrk
6 Replies
LEARN ABOUT DEBIAN
metaoffline
metaoffline(1M) System Administration Commands metaoffline(1M)
NAME
metaoffline, metaonline - place submirrors offline and online
SYNOPSIS
/usr/sbin/metaoffline -h
/usr/sbin/metaoffline [-s setname] [-f] mirror submirror
/usr/sbin/metaonline -h
/usr/sbin/metaonline [-s setname] mirror submirror
DESCRIPTION
The metaoffline command prevents Solaris Volume Manager from reading and writing to the submirror that has been taken offline. While the
submirror is offline, all writes to the mirror will be kept track of (by region) and will be written when the submirror is brought back
online. The metaoffline command can also be used to perform online backups: one submirror is taken offline and backed up while the mirror
remains accessible. (However, if this is a two-way mirror, data redundancy is lost while one submirror is offline.) The metaoffline command
differs from the metadetach command because it does not sever the logical association between the submirror and the mirror. To completely
remove a submirror from a mirror, use the metadetach command.
A submirror that has been taken offline will only remain offline until the metaonline command is invoked or the system is rebooted.
When the metaonline command is used, reading from and writing to the submirror resumes. A resync is automatically invoked to resync the
regions written while the submirror was offline. Writes are directed to the submirror during resync. Reads, however, will come from a dif-
ferent submirror. Once the resync operation completes, reads and writes are performed on that submirror. The metaonline command is only
effective on a submirror of a mirror that has been taken offline.
The metaoffline and metaonline commands can not be used on RAID 1 volumes in application-based recovery (ABR) mode.
A submirror that has been taken offline with the metaoffline command can only be mounted as read-only.
OPTIONS
Root privileges are required for all of the following options except -h.
-f Forces offlining of submirrors that have slices requiring maintenance.
-h Displays usage message.
-s setname Specifies the name of the diskset on which metaoffline and metaonline will work. Using the -s option will cause the com-
mand to perform its administrative function within the specified diskset. Without this option, the command will perform
its function on local metadevices.
mirror Specifies the metadevice name of the mirror from which the submirror will be either taken offline or put online.
submirror Specifies the metadevice name of the submirror to be either taken offline or put online.
EXAMPLES
Example 1: Taking a Submirror Offline
This example takes one submirror, d9, offline from mirror d10.
# metaoffline d10 d9
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), metaclear(1M), metadb(1M), metadetach(1M), metahs(1M), metainit(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
The metaonline and metaoffline commands are not applicable to mirrors in application-based recovery (ABR) mode.
SunOS 5.10 12 Apr 2004 metaoffline(1M)