1835204 Members
2467 Online
110077 Solutions
New Discussion

backup size

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

backup size

i need to supply a number that indicates how much space is used when we do full system backup. I have checked output of fbackup: There is a figure there: total blocks written to output: 14,358,342. Since this is blocks, I am wondering how to convert to megabytes?
Is there any other (more reliable?) way to get
this type of info?
system hp-ux 11.00
machine d220

Thanks for you help with this
Maria
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: backup size

The blocksize for all reasonably modern versions of fbackup is 1024 bytes; very old versions were 512 bytes.

Since 1MB = 1024X1024 your answer is

Backup Size (MB) = NBLOCKS / 1024.
If it ain't broke, I can fix that.
Tom Dawson
Regular Advisor

Re: backup size

Maria,

Clay is absolutely right. From the man page for fbackup on a 11.11 system:

"Note also that the blocksize used in
earlier releases (7.0 and before) was 512 bytes, whereas it is now 1024 bytes."

Tom
Peter Gillis
Super Advisor

Re: backup size

Thanks Clay - a related question. How come on issuing bdf cmd the used field for a filesystem says, for example, /tmp 3150 ; and when I do a cd /tmp, and then go du -sk it replies back with 1961?

thanks Maria.
Michael Tully
Honored Contributor

Re: backup size

Hi Maria,

# bdf /tmp
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 524288 336820 175795 66% /tmp
# du -sk
335397 .

At a guess I would say that your problem relates to file(s) that may have been removed, but are still in use by the system. The example from one of my systems suggests that I don't have a similar problem to yours. Doing this on /tmp may produce these differences many times as it is really a dumping ground for many processes. What happens when you do this on any other filesystems? I think you'll find that they are ok.

HTH
Michael
Anyone for a Mutiny ?
Peter Gillis
Super Advisor

Re: backup size

Michael
thanks. yes, it does seem that tmp is the directory with the largest difference and the others are much more similar to your example. thanks for the explanation.
Maria.