Operating System - HP-UX
1820906 Members
4754 Online
109629 Solutions
New Discussion юеВ

Re: kilobytes to megabytes to gigabytes

 
khilari
Regular Advisor

kilobytes to megabytes to gigabytes

Hi people, well just wanted to clear so 1 megabyte=1024 kilobytes and 1 giga byte=1024 megabytes. There fore if i talk about lvol3 below it is 204800/1024=200 megabytes and if i calculate the whole space of the volume group right now then it is.
200 +
291.92 +
4600 +
2300 +
200 +
270 +
24 =
7885.92/1024 = 7.701 giga bytes space.
What about terabytes 1024 giga = 1 tera byte.

Kindly, confirm this calculation

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 89336 114568 44% /
/dev/vg00/lvol1 298928 32392 236640 12% /stand
/dev/vg00/lvol8 4710400 627984 4050872 13% /var
/dev/vg00/lvol7 2310144 1331168 971344 58% /usr
/dev/vg00/lvol4 204800 71832 132600 35% /tmp
/dev/vg00/lvol6 2736128 1873056 856352 69% /opt
/dev/vg00/lvol5 24576 2344 22064 10% /home
13 REPLIES 13
Arunvijai_4
Honored Contributor

Re: kilobytes to megabytes to gigabytes

Hi Khilari,

Here is the link provides you with good information,

http://www.t1shopper.com/tools/calculate/

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Robert-Jan Goossens
Honored Contributor

Re: kilobytes to megabytes to gigabytes

correct.

attached is a script bdfmegs, which will report bdf sizes in megabytes.

Best regards,
Robert-Jan
A. Clay Stephenson
Acclaimed Contributor

Re: kilobytes to megabytes to gigabytes

The easy way to remember is that 2^10 = 1024. The standard SI prefixes kilo, mega, giga, and tera (10^3,10^6,10^9,10^12) have been "borrowed" for digital use and taking into account that 1000 (10^3) is approximately 1024 (2^10) the meanings
are:

KB = 2^10
MB = 2^20
GB = 2^30
TB = 2^40


If it ain't broke, I can fix that.
Bharat Katkar
Honored Contributor

Re: kilobytes to megabytes to gigabytes

Approximate sizes are:

root: 200 MB
stand: 298MB
var: 4.7 GB
usr: 2.3 GB
tmp: 204 MB
opt: 2.7 GB
home: 24 MB

1 TB = 1024 GB = 1024*1024 MB

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Geoff Wild
Honored Contributor

Re: kilobytes to megabytes to gigabytes

When doing lvcreates/lvextends, use capital L:

lvextend -L 3072 /dev/vg00/lvol10

That's 3GB.

then fsadm ad capital M for megabytes:

fsadm -b 3072M /var/adm/crash

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: kilobytes to megabytes to gigabytes

Here's a most recent version of bdfmegs. The units of measure are powers of 2 (one Kbyte = 1024 bytes)


Bill Hassell, sysadmin
TwoProc
Honored Contributor

Re: kilobytes to megabytes to gigabytes

This is exactly why, when laying out lv's - I always denote the size of the partitions that I'm after in the number of PE's that I want to use, instead of Mbytes. It's for those of us who are driven to avoid doing "mathy" things when and where possible.
We are the people our parents warned us about --Jimmy Buffett
khilari
Regular Advisor

Re: kilobytes to megabytes to gigabytes

well, adding to johns remark. I want to clear so 1 physical extent = 4 megabytes ????
A. Clay Stephenson
Acclaimed Contributor

Re: kilobytes to megabytes to gigabytes

No, 1 PE = 1 PE. The size of a PE can range from 1MB to 256MB but must be a power of 2 multiple of 1MB.

Math is good for you. Those who like science and can do math go into physics, chemistry, (or engineering); those who like science but can't do math go into biology.
If it ain't broke, I can fix that.
Ralph Grothe
Honored Contributor

Re: kilobytes to megabytes to gigabytes

To give this thread a kind of goofy touch I would like to draw your attention to the fact that the SI units for quantities of storage in the IT were "recently" changed from base 2 to base 10 multipliers.
So if you still want to refer to 2^10 Bytes you are demanded to talk of one kibi Byte.
Similarily 2^20 is one mebi byte, and 2^30 one gibi byte.
I am convinced they did this to please the marketing and sales people so that they now can sell you 1000000000 bytes as one GB instead of 1073741824 what you payed for ;-)

http://www.iec.ch/zone/si/si_bytes.htm
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: kilobytes to megabytes to gigabytes

Btw, even since long before the introduction of kibibyte the networking folks always have been measuring their bandwiths in Mbps where they really meant 10^6 octets per second.
This discovery was a very disturbing experience for me because it shattered my bandwith/througput guesstimations up to that point ;-)
Madness, thy name is system administration
A. Clay Stephenson
Acclaimed Contributor

Re: kilobytes to megabytes to gigabytes

I don't think I agree with that. 1Mbps is 10^6 bits/sec.
If it ain't broke, I can fix that.
Ralph Grothe
Honored Contributor

Re: kilobytes to megabytes to gigabytes

Sorry Clay,
a flaw I made because a bit is indeed an 8th of an octet.
I meant to have written that 1 Mbps is merely ca. 122 kB/s.
But I was referring to the base 10 vs. base 2 obfuscation anyway.
Madness, thy name is system administration