cancel
Showing results for 
Search instead for 
Did you mean: 

file sizes don't match

PaulStevens
Level 4
Partner

Netbackup 7.7.3

RHEL master and media servers

AIX client

 

I am creating a validation step in my script that compares the filesize with netbackup output before deleting the file from the server. The file shows it's backed up but size doesn't match.

 

bash-4.2$ /usr/openv/netbackup/bin/bplist -l -b /backup1/ENCTRDRD/EXPORTS/hist_maee_record_proc_cycle_id_2067.dmp

-rw-r----- oracle    oinstall    24422972K Oct 28 05:00 /backup1/ENCTRDRD/EXPORTS/hist_maee_record_proc_cycle_id_2067.dmp

-rw-r----- oracle    oinstall    24422972K Oct 25 16:52 /backup1/ENCTRDRD/EXPORTS/hist_maee_record_proc_cycle_id_2067.dmp

bash-4.2$ ls -la /backup1/ENCTRDRD/EXPORTS/hist_maee_record_proc_cycle_id_2067.dmp

-rw-r-----    1 oracle   oinstall 25009123328 Sep 30 10:02 /backup1/ENCTRDRD/EXPORTS/hist_maee_record_proc_cycle_id_2067.dmp

bash-4.2$ du -k /backup1/ENCTRDRD/EXPORTS/hist_maee_record_proc_cycle_id_2067.dmp

24423156        /backup1/ENCTRDRD/EXPORTS/hist_maee_record_proc_cycle_id_2067.dmp

 

If I did my math right, 184K less in backup file showing (not to say when restored it's not the same size)

2 ACCEPTED SOLUTIONS

Accepted Solutions

andrew_mcc1
Level 6
   VIP   

Are you sure? 24,422,972 KB which NBU bplist gives is the same as 25,009,123,328 from the OS "ls -al" command. I suspect the "du" command which reports a slightly higher number may include some filesystem block allocation rounding-up and/or similar artifacts.

BR Andrew

View solution in original post

watsons
Level 6

I don't see a problem..

24422972K   means

24422972 * 1024 =  25009123328

which is correct.

Try du -kh  (not sure though if that works in AIX..)

View solution in original post

3 REPLIES 3

andrew_mcc1
Level 6
   VIP   

Are you sure? 24,422,972 KB which NBU bplist gives is the same as 25,009,123,328 from the OS "ls -al" command. I suspect the "du" command which reports a slightly higher number may include some filesystem block allocation rounding-up and/or similar artifacts.

BR Andrew

watsons
Level 6

I don't see a problem..

24422972K   means

24422972 * 1024 =  25009123328

which is correct.

Try du -kh  (not sure though if that works in AIX..)

Yes, it appears that the du -k is a bit off but using the byte size from ls -la / 1024 works out.

 

Thanks