Sponsored Content
Top Forums Shell Programming and Scripting If test array element multiplication Post 303020346 by rbatte1 on Tuesday 17th of July 2018 05:50:32 AM
Old 07-17-2018
Do you also check for the boot device being on both/all disks in rootvg and the dump device? I had a suggestion that the dump device should not be mirrored, so we created two separate devices, on for each PV. Fortunately, we never needed them, but you never know......

You should probably also check that the LV copies are synchronised. I've no longer got an AIX server so I can't test things, but something simple like lsvg -l | grep -i stale might suffice.



I hope that this helps,
Robin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

accessing my first element of array

Hello everyonel, I have an array set like so num=4 read name arr=name I go through while loop to assign different values to different array element from 1 to 4. when I try to access the FIRST element of the array I get the last one first. Like if I say ${arr} it will show the last element... (4 Replies)
Discussion started by: afadaghi
4 Replies

2. Shell Programming and Scripting

Adding array element in KSH

All, I would like to add the first 10 elements of an array. Here is how I am doing it now (only included first few add ops): #!/usr/bin/ksh ###Grab the array values out of a file### TOTAL=`awk '/time/' /tmp/file.out | awk '{print $4}'` set -A times $TOTAL SUM=$((${times} + times... (3 Replies)
Discussion started by: Shoeless_Mike
3 Replies

3. Shell Programming and Scripting

Shift array element

I want to delete and 0th element of array in shell scrpit and also shift all others to one level up. (2 Replies)
Discussion started by: darshakraut
2 Replies

4. Shell Programming and Scripting

remove an element from array

I need to remove an element from the below array variable TABLENAME. #!/bin/ksh set -A TABLENAME "mirf roxar keke mirs" echo "the array is ${TABLENAME}" If i need to remove say keke and have the final TABLENAME as below, how this could be achieved. Pls throw some light. echo "Modified... (3 Replies)
Discussion started by: michaelrozar17
3 Replies

5. Shell Programming and Scripting

previous element in the array perl

Hi, How to get previous/next element in the array perl Example @queue = (1, 2 ,3 , 4); I want to get value of 1 and 2, or, 2 and 3, or 3 and 4...etc and compare to value which one is greater to do that I need to get previous and next element of array ? (1 Reply)
Discussion started by: guidely
1 Replies

6. UNIX for Advanced & Expert Users

Perl XML::DOM: How to test if element exists?

Hi, I'm trying to write a script for some xml file handling, but I'm not getting too far with it. I've got the following xml content <?xml version="1.0" encoding="UTF-8"?> <Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <Operation name="OPER1"> <Action name="ACTION1">... (2 Replies)
Discussion started by: Juha
2 Replies

7. Shell Programming and Scripting

Multiplying array element

I am trying to take all the elements of an array and multiply them by 2, and then copy them to a new array. Here is what I have i=0 for true in DMGLIST do let DMGSIZES2="${DMGSIZES}"*2 let i++ done unset i echo ${DMGSIZES2} It does the calculation correctly for the first element,... (7 Replies)
Discussion started by: nextyoyoma
7 Replies

8. Shell Programming and Scripting

ksh insert element in array

Hi all, I need help with the following scenario in ksh. If the number of elements contained by arrayA is 11 I need to insert a zero as the element arrayA then print all arrayA elements separated by comma. Appreciate your help. (9 Replies)
Discussion started by: ejianu
9 Replies

9. Shell Programming and Scripting

Multiplication of array elements

Hi, I can't find out how to create correct code to get multiplication of each elements of array. Let's say I enter array into command line (2 3 4 5 6 8) and i need output 2*3*4*5*6*8=5760. I tried this one, but answer is 0. for i in $@; do mult=$((mult*i))done echo "mult: " $mult ... (4 Replies)
Discussion started by: rimasbimas
4 Replies

10. UNIX for Advanced & Expert Users

Array Element

This question is for someone that's more familiar with Array Element. I need to know if the maximum array element that can be assigned is 1024 and if its so, Is there a workaround solution when the counter exceeded 1024? param_array="$param_nam" counter=$counter+1 #to avoid space... (3 Replies)
Discussion started by: cumeh1624
3 Replies
dump(8) 						      System Manager's Manual							   dump(8)

Name
       dump - create file system dump

Syntax
       /etc/dump [ key [ argument... ] filesystem ]

Description
       The command copies all files changed after a certain date from a specified filesystem to a file, a pipe, magnetic tapes, or disks.  The key
       specifies the date and other options to be used by

       Dumping a filesystem requires operator attention.  An operator must intervene when the end of a tape or disk is reached, when  the  end	of
       the  occurs, or when an unrecoverable input disk read error occurs (if more than 32 read errors occur).	In addition to alerting all opera-
       tors in the operator group, interacts with the operator at the control terminal when can no longer proceed,  or	if  something  is  grossly
       wrong.  All questions that poses must be answered by typing yes or no.

       Because	a  full  dump  uses considerable system time, checkpoints itself at the start of each tape or disk volume.  If writing that volume
       fails, asks the operator to restart from the checkpoint after the present tape or disk has been replaced.

       The utility reports to the operator periodically, giving usually low estimates of the number of blocks to write, the  number  of  tapes	or
       disks the dump will take, the time to completion, and the time until the tape or disk must be changed.  The output is verbose, so that oth-
       ers know that the terminal controlling is busy, and will be for some time.

       This utility supports EOT handling which allows the use of multiple media.  The utility prompts for the next volume when it encounters  the
       end of the current volume.

Options
       With the command, you specify a string of one or more of the options described below.  If no options are specified, the key 9u is assumed.

       0-9     Specifies  the  dump  level.  All files that were modified since the last date stored in the file for the same filesystem at lesser
	       levels will be dumped.  If no date is determined by the level, the beginning of time is assumed.  Thus,	the  level  0  causes  the
	       entire filesystem to be dumped.

       B       Indicates  that the next argument is a number that specifies the size, in 1024-byte blocks, of a storage medium, such as a diskette
	       or removable disk cartridge.  See the first example.

       d       Indicates that the density of the tape, expressed in bits per inch, is taken from the next argument.  This density is used in  cal-
	       culating the amount of tape used per reel.  The default density is 1600 bpi.

       f       Places  the  dump  on  the file or device specified by the next argument.  If the name of the file is -, writes to standard output.
	       The default dump device is

       n       Notifies, by means similar to a command, all users in the group operator when needs operator attention.

       S       Prints output file size in bytes, or number of volumes for devices.  See the third example.

       s       Indicates that the next argument specifies the size of the dump tape, in feet.  When the specified size is reached, waits  for  the
	       reel to be changed.  The default tape size is 2300 feet.

       u       Writes the date of the beginning of the dump on the file if the completes successfully.	This file records a separate date for each
	       filesystem and each dump level.	The format of consists of one free format record per line: filesystem name,  increment	level  and
	       format dump date.  The superuser can carefully edit to change any of the fields.

       W       Tells the operator which file systems need to be dumped.  This information is taken from the files and The W option causes to print
	       out, for each file system in the most recent dump date and level, and highlights those file systems that should be dumped.  If  the
	       W option is used, all other options are ignored, and exits immediately.

       w       Lists only those filesystems that need to be dumped.

Examples
       This example dumps the filesystem to RX50 diskettes.  The option is needed when running to read this dump.
       dump 9Bf 400 /dev/rra2a /dev/ra0a
       This example dumps the filesystem to a 6250 bpi tape on a TU78 tape drive:
       dump 0undf 6250 /dev/rmt?h /usr/users
       This example reports number of bytes to be output for a level 0 dump of the root file system.  Please note: the file test is not created.
       dump 0Sf test /

Restrictions
       The programs returns a 1 on successful completion.

       Sizes are based on 1600-bpi blocked tape.

       Anything fewer than 32 read errors on the filesystem are ignored.

       Each reel requires a new process, so parent processes for reels already written remain until the entire tape is written.

Files
       Default filesystem to dump from

       Default tape unit to dump to

       Dump date record

       Dump table: file systems and frequency

       Operator group definition

       Required for user interface

See Also
       dump(5), fstab(5), opser(8), restore(8), rrestore(8c)
       Guide to Backup and Restore

																	   dump(8)
All times are GMT -4. The time now is 08:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy