Sorry for repeating,
Quote:
Here clearly I am explaining my requirement.
Data center move means all the mounted unix file system is going to be moved to differnt place. So I want to write a script which will give the bdf information before movement and after movement of unix file system.
Im not sure you understand the confusion, from what point of vue are you talking about?
a users perspective or a systems administrator?
Me beeing sysadmin understand :
Data is stored on a file system, this file system is mounted on a mount point knowing that this is transparent for a user, he sees his data in a directory...
So for me, unmounting and mounting elsewhere has not changed the filesystem and so the size would be the same
Now moving for me, would be creating new filesystems and moving (or copying / then erase) the data from the first to second would then change things:
the second filesystem was empty now it has data in it ...
and bdf would show the changes , but then what are you trying to compare?
Since the filesystems arent the same there is nothing to compare but the occupancy on the new filesystem, and since it was a new FS, and you copied in one go it woulndnt have fragmentation and so it will quite surely occupy less space