Sponsored Content
Operating Systems Solaris how we can calculate this bytes(55207936) in to MB(output=26957) Post 302357232 by tv.praveenkumar on Tuesday 29th of September 2009 06:57:23 AM
Old 09-29-2009
how we can calculate this bytes(55207936) in to MB(output=26957)

root@erpdevserver $ vxassist -g devdg maxsize
Maximum volume size: 55207936 (26957Mb)

This is the output in vxvm(3.1).. my question is
how we can calculate this bytes(55207936) in to MB(output=26957) or in GB.plz tell how to calculate
 

10 More Discussions You Might Find Interesting

1. Solaris

cron output = 0 bytes

I have a cron job set to run a script everyday. If I run the script out side of cron it runs correctly. If cron runs the script is produces a 0 byte file and it puts the output in the / directory. The script is set to put the output in a specific directory. Any help would be appreciated. (8 Replies)
Discussion started by: mbattreall
8 Replies

2. Shell Programming and Scripting

calculate output

I was wondering can anyone give me a clue how to start script which would do the following: I have 2 numbers as input for example: 100 and 1000 and I need to create file and in that file should be written 100 - 199 200 - 299 300 - 399 400 - 499 500 - 599 600 - 699 700 - 799... (3 Replies)
Discussion started by: amon
3 Replies

3. Shell Programming and Scripting

Remove first N bytes and last N bytes from a binary file on AIX.

Hi all, Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this? Your help is greatly appreciated!! Best Regards, Naveen. (1 Reply)
Discussion started by: naveendronavall
1 Replies

4. Shell Programming and Scripting

Calculate N days from a file output

OK, here is the output from a cron I have here: FULL OUTPUT: acoxxx Lastlogin= 2010/07/15 13:10 db2t Lastlogin= 2010/07/16 13:09 db2tadm Lastlogin= 2010/07/20 13:09 eisuser Lastlogin= 2010/07/20 11:53 israel Lastlogin= 2010/07/10 11:42 nmon Lastlogin= 2010/07/05 12:55 norbac Lastlogin=... (4 Replies)
Discussion started by: iga3725
4 Replies

5. Shell Programming and Scripting

Error PHP Fatal error: Allowed memory size of 67108864 bytes exhausted(tried to allocate 401 bytes)

While running script I am getting an error like Few lines in data are not being processed. After googling it I came to know that adding such line would give some memory to it ini_set("memory_limit","64M"); my input file size is 1 GB. Is that memory limit is based on RAM we have on... (1 Reply)
Discussion started by: elamurugu
1 Replies

6. Programming

Copying 1024 bytes data in 3-bytes chunk

Hi, If I want to copy a 1024 byte data stream in to the target location in 3-bytes chunk, I guess I can use the following script. dd bs=1024 count=3 if=/src of=/dest But, I would like to know, how to do it via a C program. I have tried this with memcpy(), that did not help. (3 Replies)
Discussion started by: royalibrahim
3 Replies

7. Shell Programming and Scripting

Output only first 400 bytes of a huge text file

How do I output only the first 400 bytes of a huge text file to a new file. It has to be unmodified so no added invisible characters. Many thanks..... (3 Replies)
Discussion started by: garethsays
3 Replies

8. Shell Programming and Scripting

awk to calculate timex output

I have a timex 'dd' command that generates an output similar to this: real 701.92 user 3.06 sys 469.10 for the moment, i m redirecting the output to a temp file to stage the calculation (using bc) for: a) MB/s b) cpu usage = 100*(user+sys)/real I am looking around for an 1-liner... (3 Replies)
Discussion started by: ux4me
3 Replies

9. UNIX for Dummies Questions & Answers

X bytes of 0, Y bytes of random data, Z bytes of 5, T bytes of 1. ??

Hello guys. I really hope someone will help me with this one.. So, I have to write this script who: - creates a file home/student/vmdisk of 10 mb - formats that file to ext3 - mounts that partition to /mnt/partition - creates a file /mnt/partition/data. In this file, there will... (1 Reply)
Discussion started by: razolo13
1 Replies

10. Shell Programming and Scripting

Shell script - entered input(1-40 bytes) needs to be converted exactly 40 bytes

hello, suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly. example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly. enter your name: donald duck (this is of 11 bytes) expected is as below - display 11... (3 Replies)
Discussion started by: shravan.300
3 Replies
vxdco(1M)																 vxdco(1M)

NAME
vxdco - perform operations on DCO objects and DCO volumes SYNOPSIS
vxdco [-g diskgroup] att volume dco vxdco [-g diskgroup] attlogvol dco dco_volume vxdco [-g diskgroup] [-o rm] dis dco vxdco [-g diskgroup] [-o rm] dislogvol dco vxdco [-g diskgroup] -o force enable dco DESCRIPTION
Note: The vxdco command can only be used with version 0 DCOs and DCO volumes. It cannot be used with version 20 DCOs and DCO volumes. The vxdco command is used to manipulate version 0 data change objects (DCO objects or DCOs) and DCO volumes that allow the use of Persis- tent FastResync with volumes. The att operation attaches a DCO object, dco, to a volume, volume. If the DCO object has an associated DCO volume, you can use the command vxvol set fmr=on volume to enable Persistent FastResync on the volume after the att operation has completed. The attlogvol operation associates a DCO volume, dco_volume, with a DCO object, dco. If the DCO object is already attached to a volume, you can use the command vxvol set fmr=on volume to enable Persistent FastResync on the volume after the attlogvol operation has completed. The dis operation dissociates a DCO object, dco, from a volume, and disables FastResync on that volume. If the -o rm option is specified, the DCO object, the DCO volume, its plexes and associated subdisks are removed in the same operation. The dislogvol operation dissociates a DCO volume from a DCO object, dco, and disables FastResync on the parent volume. If the -o rm option is specified, the DCO volume, its plexes and associated subdisks are removed in the same operation. If an error occurs while reading or writing a DCO volume, it is detached and the badlog flag is set on the DCO. (You can use one of the options -a, -F or -m to vxprint to check if the badlog flag is set on a DCO.) The -o force enable operation clears the badlog flag on the DCO. The following command sequence demonstrates how to recover the DCO volume that tracks the top-level volume vol1 in the disk group egdg: vxdco -g egdg -o force enable vol1_dco vxvol -g egdg stop vol1 vxvol -g egdg start vol1 Here vol1_dco is the DCO associated with vol1. Caution: Only use the -o force enable operation if you are certain that no writes have gone to the volume since the error occurred that caused its DCO volume to become detached. Otherwise, data corruption may result. The -g diskgroup option specifies the disk group to which the parent volume, DCO object, and DCO volume belong. You can use the make keyword to vxassist to create a volume with an attached DCO object and DCO volume. You can also use the addlog key- word to vxassist to create and add a DCO object and DCO volume to an existing volume. vxdco may then be used to dissociate a DCO object from its parent volume, and subsequently reattach it if the DCO object and DCO volume have not been removed. The vxdco command is also used by vxassist and vxplex to handle the DCO objects and DCO volumes that are associated with volumes. The vxmake command is used to create DCO objects, which can be specified using output from vxprint. Note: When using disk group move, split and join (see vxdg(1M)) to move volumes or snapshot volumes between disk groups, take care to ensure that the DCO volumes accompany their parent volumes. EXIT CODES
The vxdco utility exits with a non-zero status if the attempted operation fails. A non-zero exit code is not a complete indicator of the problems encountered, but rather denotes the first condition that prevented further execution of the utility. See vxintro(1M) for a list of standard exit codes. NOTES
When a volume is attached to a DCO as its log volume, its device nodes are deleted. If vxdco dislogvol is subsequently used to dissociate the log volume from the DCO, the device nodes are not recreated. SEE ALSO
vxassist(1M), vxdg(1M), vxintro(1M), vxmake(1M), vxplex(1M), vxprint(1M), vxvol(1M) VxVM 5.0.31.1 24 Mar 2008 vxdco(1M)
All times are GMT -4. The time now is 05:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy