11-02-2017 01:37 PM
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)
Solved! Go to Solution.
11-02-2017 03:14 PM
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
11-02-2017 11:27 PM
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..)
11-02-2017 03:14 PM
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
11-02-2017 11:27 PM
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..)
11-03-2017 05:40 AM
Yes, it appears that the du -k is a bit off but using the byte size from ls -la / 1024 works out.
Thanks