>How can be database filesize more then filesystem? >What command gives real size in such situation? It was new for me to know about sparse files http://www.gnu.org/manual/tar/html_node/tar_121.html Simple commands to get real information: du ls -ls only GNU-command(cp tar) can deal with such files correctly But I want to convert sparse file to normal But it seems to me that I only can rm it Simple way to create sparse file: dd if=/dev/zero of=/srv/ftp/1tbfile bs=1k count=1 seek=$((1024*1024*1024)) #ls -l bad -rw------- 1 notes notes 1092980282390 Jun 4 17:41 bad #ls -ls bad 1668864 -rw------- 1 notes notes 1092980282390 Jun 4 17:41 bad 13840 -rw------- 1 notes notes 7077888 Jun 5 14:48 good #du bad good 1668864 bad 13840 good #du -k bad 834432 #bc -l 1668864*512 854458368 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Thu Jun 5 23:14:12 2003
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:12 EST