Welcome! » Log In » Create A New Profile

File Size Byte Count - Conversion

Posted by Dennis Peacock 
File Size Byte Count - Conversion
March 25, 2014 08:07AM
I have an odd problem....but aren't most of my problems "odd"? :)

blist gives large file sizes in KBytes.....I need to "correctly" convert those file sizes listed in KBytes to the real Unix/Linux file Byte size.

Example:
File A - 2775784693 Bytes on the server
File A - 2710707K as reported by Netbackup in the bplist output

A simple conversion of 2710707 * 1024 does NOT yeild 2775784693 bytes but does yield 2775763968 Bytes, which does NOT equal the original file size on the server.

Does anyone here know how to resolve this?
File Size Byte Count - Conversion
March 25, 2014 08:55AM
the file hasn't grown 20kb since the backup? what version of netbackup? what does cat_convert -dump on the backup.f file | grep filename show?

thanks,
jerald

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto] On Behalf Of Dennis Peacock
Sent: Tuesday, March 25, 2014 10:08 AM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] File Size Byte Count - Conversion

I have an odd problem....but aren't most of my problems "odd"? :)

blist gives large file sizes in KBytes.....I need to "correctly" convert those file sizes listed in KBytes to the real Unix/Linux file Byte size.

Example:
File A - 2775784693 Bytes on the server
File A - 2710707K as reported by Netbackup in the bplist output

A simple conversion of 2710707 * 1024 does NOT yeild 2775784693 bytes but does yield 2775763968 Bytes, which does NOT equal the original file size on the server.

Does anyone here know how to resolve this?

+----------------------------------------------------------------------
|This was sent by dpeaco < at > acxiom.com via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
****************************************************************
Confidentiality Note: The information contained in this
message, and any attachments, may contain confidential
and/or privileged material. It is intended solely for the
person(s) or entity to which it is addressed. Any review,
retransmission, dissemination, or taking of any action in
reliance upon this information by persons or entities other
than the intended recipient(s) is prohibited. If you received
this in error, please contact the sender and delete the
material from any computer.
****************************************************************

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
File Size Byte Count - Conversion
March 25, 2014 09:31AM
Netbackup 7.5.0.5
Files are not growing during backup.

If you take this number: 2775784693 and divide it by 1024, you will get the exact number Netbackup posted in bplist output. The problem is coverting that number BACK to the original byte count.

This is part of an audit process.....file name and file size byte count are checked before removal of the files.
File Size Byte Count - Conversion
March 25, 2014 10:54AM
The problem is that the number is rounded.
2775784693 / 1024 = 2710727.23925781250000000000
2710727.23925781250000000000 * 1024 = 2775784693.00000000000000000000

2710727 * 1024 = 2775784448

------ Original Message ------
From: "Dennis Peacock" <nbu-forum < at > backupcentral.com>
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Sent: 25/03/2014 16:31:09
Subject: [Veritas-bu] File Size Byte Count - Conversion

[quote]Netbackup 7.5.0.5
Files are not growing during backup.

If you take this number: 2775784693 and divide it by 1024, you will get
the exact number Netbackup posted in bplist output. The problem is
coverting that number BACK to the original byte count.

This is part of an audit process.....file name and file size byte count
are checked before removal of the files.

+----------------------------------------------------------------------
|This was sent by dpeaco < at > acxiom.com via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[/quote]
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
Sorry, only registered users may post in this forum.

Click here to login