A script for converting raid configuration log messages to ChangeLog files. ....


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting A script for converting raid configuration log messages to ChangeLog files. ....
# 1  
Old 06-02-2008
A script for converting raid configuration log messages to ChangeLog files. ....

hi to all
am new to shell scripting..itz very urgent.

when i excuting the command metastat(raid configuration info) it will display some information.
#metastat
d1:submirror
status: okey
pass:1

d2:submirror
stausSmiliekey

d3:submirror
staus:error

if staus is okey.no problem.once i will get any status is error,it will go to any other file.i want that type of script.
now just i want this error message will send to any anotherfile(our requirement file.u take any file..)
please itz very urgent..
Thankyou.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script Shell how's converting .html files

Hello everybody, :) I need some help with a school project that I have to create for the next week. :eek: So first, the aim of the Script is that I have a WebSite with a lot of .html / .shtml / .js / .css in one directory. That directory have few directory too but that's not so important,... (1 Reply)
Discussion started by: mariocrocop
1 Replies

2. Red Hat

RAID Configuration for IBM Serveraid-7k SCSI RAID Controller

Hello, I want to delete a RAID configuration an old server has. Since i haven't the chance to work with the specific raid controller in the past can you please help me how to perform the configuraiton? I downloaded IBM ServeRAID Support CD but i wasn't able to configure the video card so i... (0 Replies)
Discussion started by: @dagio
0 Replies

3. Solaris

SPARC T4-1/Solaris 11/Add 2 new HDDs in RAID 0 configuration

Hi, Couple of sentences for background: I'm a software developer, whose task was to create a server software for our customer. Software is ready for deployment and customer has a new T4-1 SPARC, but somehow it also became my task also to setup the server. I have managed to get the server is up... (13 Replies)
Discussion started by: julumme
13 Replies

4. Red Hat

Software RAID configuration

We have configured software based RAID5 with LVM on our RHEL5 servers. Please let us know if its good to configure software RAID on live environment servers. What can be the disadvantages of software RAID against hardware RAID (4 Replies)
Discussion started by: mitchnelson
4 Replies

5. SCO

raid 1 configuration in sco open unix

Dear Team , how i can configure raid 1 (mirroring) using ide hdd in sco open unix 5 i have two 80gb identical hdd (same make/model) thanx (0 Replies)
Discussion started by: sudhir69
0 Replies

6. Solaris

T5240 and Internal SAS RAID Configuration help

Dear Friends, I need to configure T5240 with Internal SAS RAID HBA(SG-XPCIESAS-R-INT-Z).. T5240 uses 8 hard disks... From the documents of RAID card I have found that I need to create a jump start server to include three packages SUNWaac, StorMan, SUNWgccruntime if Im using solaris10 5/08... ... (5 Replies)
Discussion started by: nicktrix
5 Replies

7. Shell Programming and Scripting

Match configuration files with a script

Hi all, Can you help me make a script(ksh-Solaris 8) that will match two configuration files? I have some problems with sed newline. The script should at least match the value of parameters from one file to another, which looks always like this: parameter1=some_value... (3 Replies)
Discussion started by: majormark
3 Replies

8. Shell Programming and Scripting

Converting Shell script to Dos batch files

Hi friends! I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me. (1 Reply)
Discussion started by: darwinkna
1 Replies

9. AIX

regd raid 0 configuration

Hey Alll Thanks for the help u give me yesterday,i need a help again from u all guys i have RS 6000 server with AIX 4.3.3 OS and with external storage (multipack) with 12 Hard disk drive which will be connected to RS 6000 scsi controller ,i dont have any raid card. now i have to... (0 Replies)
Discussion started by: solaris8in
0 Replies
Login or Register to Ask a Question
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)