10-12-2017
Quote:
Originally Posted by
Scrutinizer
Yes it does. You need to use /usr/xpg4/bin/grep for that..
Thanks.. That works!
10 More Discussions You Might Find Interesting
1. Programming
I need to write a make script to install a C module in a UNIX
environment.It should install the sources, build the libraries and
install them and also install the info pages on the system.
Can this script be general enough to also install on
windows, windows dll, windows help file's etc. Any... (3 Replies)
Discussion started by: cherio
3 Replies
2. Shell Programming and Scripting
Is there any method to realise this in one command?
Thanks in advance (2 Replies)
Discussion started by: GCTEII
2 Replies
3. UNIX for Dummies Questions & Answers
I am using raidctl on a v440 disk and noticed it resyncs after every boot, which takes about 30 minutes because of the size of the partition. I am concerned with what happens during the resync if "writes" happen to the disk before it is complete?
Any info would be helpful.
Thanks (0 Replies)
Discussion started by: csgonan
0 Replies
4. Linux
Can anyone could tell me what is the meaning of this problem:
Last successful check resync is greater than min sync interval (1195785433 > 7200)
And what can do to solve this problem.
Thank you..Please HElp me! (4 Replies)
Discussion started by: o_m_g
4 Replies
5. AIX
Hi,
I have NTP configured:
vi /etc/ntp.conf
broadcastclient
server 128.127.1.3
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
# xntpdc
xntpdc> sysinfo
system peer: 128.127.1.3
system peer mode: client
leap indicator: 00
stratum: 12
precision: ... (0 Replies)
Discussion started by: victorcheung
0 Replies
6. Shell Programming and Scripting
Hi All,
i am aware that there is a difference between:
1. rsync -n -av /tmp .
2. rsync -n -av /tmp/ .
I would like to do the first option. But if i use a variable (rsync -av $log .), the command behaves like a second option (with the trailing slash)
Is there any way to use a... (2 Replies)
Discussion started by: c00kie88
2 Replies
7. Shell Programming and Scripting
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)
Discussion started by: instant000
15 Replies
8. AIX
Hi All,
I have two mount points have the same data with little changes between them
/appabc1
/appabc2
Both of them have the same data, there is some little changes on the data between them
I want /appabc2 to has the same data of /appabc1 exactly including to those little changes... (6 Replies)
Discussion started by: Mr.AIX
6 Replies
9. UNIX for Dummies Questions & Answers
In my infinite lack of wisdom, I brought a Solaris 10(Sparc, 64 bit ) system down to init 1, detached a metadrive so that I could run format->analyze->refresh on it, and then reinit'd and reattached it .
It started syncing the drive as it's a submirror of a mirrored drive, which happens... (8 Replies)
Discussion started by: the.gooch
8 Replies
10. Solaris
Dear Team,
This time i am facing some new problems which is beyond my thinking. I need some expert advice.
We are having 4 Servers ( 2 nos Sun SPARC Enterprise T5220 & 2 nos of SF e2900 Servers ). Both the T5220 Servers are Termed as Node A and Node B . The same things are followed with... (1 Reply)
Discussion started by: sudhansu
1 Replies
LEARN ABOUT SUNOS
metasync
metasync(1M) System Administration Commands metasync(1M)
NAME
metasync - handle metadevice resync during reboot
SYNOPSIS
/usr/sbin/metasync -h
/usr/sbin/metasync [-s setname] [buffer_size] metadevice
/usr/sbin/metasync [-s setname] -r [buffer_size]
/usr/sbin/metasync -p metadevice
DESCRIPTION
The metasync command starts a resync operation on the specified metadevice. All components that need to be resynced are resynced. If the
system crashes during a RAID5 initialization, or during a RAID5 resync, either an initialization or resync restarts when the system
reboots.
Applications are free to access a metadevice at the same time that it is being resynced by metasync. Also, metasync performs the copy oper-
ations from inside the kernel, which makes the utility more efficient.
Use the -r option in boot scripts to resync all possible submirrors.
OPTIONS
The following options are supported:
-h Displays usage message.
-p metadevice Regenerates parity information for RAID5 metadevices.
-s setname Specifies the name of the diskset on which metasync will work. Using the -s option will cause the command to perform its
administrative function within the specified diskset. Without this option, the command will perform its function on local
metadevices.
-r Specifies that the metasync command handle special resync requirements during a system reboot. metasync -r should only be
invoked from the svc:/system/mdmonitor service. The metasync command only resyncs those metadevices that need to be
resynced. metasync schedules all the mirror resyncs according to their pass numbers.
To override the default buffer_size value used by the svc:/system/mdmonitor service, you can edit /etc/system to specify:
set md_mirror:md_resync_bufsz = 2048
so that resyncs occur as quickly as possible.
OPERANDS
buffer_size Specifies the size (number of 512-byte disk blocks) of the internal copy buffer for the mirror resync. The size
defaults to 128 512-byte disk blocks (64 Kbytes). It can be no more than 2048 blocks. For best performance (quick-
est completion of the resync), 2048 blocks is the recommended size.
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), metaoffline(1M), metaonline(1M), metaparam(1M),
metarecover(1M), metarename(1M), metareplace(1M), metaroot(1M), metaset(1M), metassist(1M), metastat(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 metasync service is managed by the service management facility, smf(5), under the service identifier:
svc:/system/mdmonitor
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser-
vice's status can be queried using the svcs(1) command.
SunOS 5.10 24 Nov 2004 metasync(1M)