1837674 Members
3140 Online
110117 Solutions
New Discussion

Block size

 
SOLVED
Go to solution
mehul_3
Regular Advisor

Block size

hi,
How one can identified about how many bytes per block
Is there any command to show it?

Mehul
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: Block size

Hi Mehul,

what blocks do you mean ? disk usage ? filesystem blocks ?

# du -s (512 bytes)
# du -ks (1024 bytes)

# fstype -v /dev/vgxx/lvolx

Regards,
Robert-Jan
mehul_3
Regular Advisor

Re: Block size

Hi
The issue is that whenever I take backup using fbackup.The last statement shows something like
fbackup(3056): total blocks written to output file /dev/rmt/0m: 40810402.

How can I identified what is the size of my backup in bytes/Kbytes/Gbytes becasue it is mentioned in blocks
Robert-Jan Goossens
Honored Contributor

Re: Block size

Hi,

512 bytes blocks

# echo "512*40810402" | bc
20894925824 --> about 20 GB

Regards,
Robert-Jan

Geoff Wild
Honored Contributor

Re: Block size

A block is 512 bytes

So, you backed up:
512 X 40810402 = 20894925824 bytes

/ 1024 = 20405201 Kb

/ 1024 = 19926.95 Mb

/ 1024 = 19.45 Gb

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.