If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Convert 512-blocks to 4k blocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-10, 13:08
rockycj_dba rockycj_dba is offline
Registered User
 
Join Date: Apr 2009
Posts: 17
Convert 512-blocks to 4k blocks

I'm using DB2 v9.1 LUW. I'm looking at "df" on Unix now and below is an example. It's lists out in 512-blocks, I need this in 4k blocks. Is there a way to do this in Unix or do I manually convert and how?

So for container 1 there is 7,340,032 in size in 512-blocks. What would the 4k block be and how is it converted? Or am I not understanding the 512-blocks and what this means?


Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/copy811_ctr1 7340032 1564416 79% 26 1% /db2_data/copy811/container1
/dev/copy811_ctr2 7340032 1564416 79% 26 1% /db2_data/copy811/container2
/dev/copy811_ctr3 7340032 1564408 79% 26 1% /db2_data/copy811/container3
/dev/copy811_ctr4 7340032 1564416 79% 26 1% /db2_data/copy811/container4
/dev/copy811_ctr5 7340032 1564416 79% 26 1% /db2_data/copy811/container5
/dev/copy811_logs1 2097152 1907864 10% 12 1% /db2_data/copy811/logs


Thank you.


CC
Reply With Quote
  #2 (permalink)  
Old 08-03-10, 16:04
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
df -B4096
What does it have to do with DB2 though?
Reply With Quote
  #3 (permalink)  
Old 08-03-10, 17:02
rockycj_dba rockycj_dba is offline
Registered User
 
Join Date: Apr 2009
Posts: 17
Convert 512-blocks to 4k blocks

You're right, it has nothing to do with DB2. It Unix. My bad.

I tried to do this command and got this message:

devdb# df -B4096
df: illegal option -- B
df: illegal option -- 4
Usage: df [-P] | [-IMitv] [-gkm] [-s] [filesystem ...] [file ...]
Reply With Quote
  #4 (permalink)  
Old 08-04-10, 08:50
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
How about taking the number, adding 7*512 (for the last non-full block), and dividing it by 8?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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