The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell script to convert file_size from bytes to megabytes a1_win Shell Programming and Scripting 3 08-06-2009 04:33 PM
Extract sequence blocks solli Shell Programming and Scripting 7 03-26-2009 11:38 PM
Managing Gigabytes for Java 2.1.1 (Default branch) iBot Software Releases - RSS News 0 02-29-2008 04:30 PM
Sorting blocks of data alfredo123 Shell Programming and Scripting 8 07-05-2007 10:53 AM
Delete blocks with no data.. mgirinath Shell Programming and Scripting 1 01-28-2006 06:33 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-05-2009
jfd7000 jfd7000 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 12
Converting Blocks to megabytes and gigabytes.

Sorry for the simple question.

I am new to Unix and Unix AIX.

I increased a file system the other day but cheated and used a conversion calculator.

Could you good people tell me the best way to increase a file system that is in 512 byte blocks.

Say the file system is 100mb and I wanted to increase to 200mb how would I work this out?

Thanks for your help
  #2 (permalink)  
Old 10-05-2009
faruk faruk is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 52
Hi,

Code:
the file system is 100mb and I wanted to increase to 200mb
The Filesystem can be increased according to your PP size of the vg. You can increase any file system size by multiple of your PP size.

For eg: if your PP size is 256Mb and you try to increase the file system size by 200Mb the file system will be increased by 256Mb only.

HTH.
  #3 (permalink)  
Old 10-06-2009
garethr garethr is offline
Registered User
  
 

Join Date: May 2009
Location: England
Posts: 89
bc can be useful:

E.g. Number of blocks in 100MB:

Code:
# echo "(100*1024*1024)/512" | bc
204800
  #4 (permalink)  
Old 10-06-2009
jfd7000 jfd7000 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 12
Why do you multiply the value by 1024 then 1024 again?

100*1024*1024?

Say the block size was 1024000 or 500mb if I wanted to add 100mb would I just add 204800 to 1024000?
  #5 (permalink)  
Old 10-07-2009
garethr garethr is offline
Registered User
  
 

Join Date: May 2009
Location: England
Posts: 89
1024 = 1k
1024*1024 = 1M
100*1024*1024 = 100M

512 bytes in a block.
So, number of blocks in 100M = (100*1024*1024)/512
  #6 (permalink)  
Old 10-07-2009
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,628
For reference you might want to read this thread and maybe this thread.

I hope this helps.

bakunin
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0