From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078611110749.tru64-unix-managers.marc@archive.invalid> From: Guy Dallaire Date: Wed, 30 Apr 1997 14:09:31 +0000 To: tru64-unix-managers Subject: SUMM: vrestore takes more space than before X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078611110749 Thanks to the many who replied: "Robert L. McMillin" "Dwight Walker (PSS)" BigRedDog alan@nabeth.cxo.dec.com (Alan Rollow) If I forgot someone, you know who you are and I thank you also. For some strange reason, when I came back to work this morning, the situation was normal, the fileset was back at 92% full. The only thing th= at happened during the night were the full backups of the system and the bouncing of the oracle databases. I suspect that the bouncing of the databases has something to do with it. As someone suggested, maybe a file was open but it was not showing in the 'ls' but still occupied some space. Is suspect that when I started the restore last night, the database was n= ot completely shut down, maybe that's the problem. So BigRedDog was probably right. Some people suggested that my oracle files are "sparse files". If I remember well, I've read somewhere that oracle 7.2.x for DU does not crea= te sparse files, also, considering the time it takes to add a datafile to th= e database, I presume that the file is physically allocated and formetted i= n some way, it not just an open(), lseek() close(). ---------------- Here is the original post: -----------------------------= --- Hello, I've just restored a bunch of oracle data files unto a disk (restored at the same place they were before they got destoyed) and the disk usage increased ! The disk was 92% full at the time I took the backup. After restoring the files, the disk is 97% full. No files other than what I backed up and restored are on that fileset. It's a bit of a pain because I can no longe= r use clonefset to backup this fileset because it is more than 95% full. Any Idea ? NOTE: During the vrestore, the disk went full, I had to remove all the files I was restoring/overwriting to make some space. Could this be the problem ? Would a defragment help ? -------------------------------------------------------------------------= ---- I think you hit the nail on the head with this one. From what (little) I know about advfs, it doesn't exactly throw out rm'd stuff. A defrag will *not* help. I believe you need to flush your volume's trashcan directory using rmtrashcan. All this is strictly hearsay, though, and not to be taken that seriously. Good luck... --=20 Robert L. McMillin | Not the voice of Syseca, Inc. | rlm@syseca-us.com Personal: rlm@helen.surfcty.com |=A0rlm@netcom.com -------------------------------------------------------------------------= ---- Guy, I've experienced this problem before, and after a great deal of=20 investigation and testing, the only conclusion was that oracle=20 datafiles are what is known as a sparse file. When you think that a oracle datafile upon creation occupies x amount=20 of disk space but it is basically an empty file. As a tablespace=20 becomes fragmented, so does the datafile. This is what is known as a=20 sparse file - a file that takes up space but contains empty space. A defrag will help after the file is restored but does not really=20 help in the restoration. To combat this on tight filedomains I used=20 to add a single disk to the filedomain using addvol - ( even to RAID=20 sets ). When the restoration was complete I then did a defrag and a=20 rmvol, to remove the volume. The remove volume command moves the=20 data from the ( temporary ) volume I had added back onto the RAID set=20 and then removes itself from the filedomain. If there was not enough=20 space for this I could fire up the database and relocate a datafile or=20 two, and then remove the volume. All this can be done on line. Obviously there will be a large IO=20 performance hit. And you don't really want to remove the volume with=20 the database up or at least no heavy transactions in those=20 tablespaces. Dwight Walker -------------------------------------------------------------------------= - If you deleted a file that had an open file handle, it would be removed from the directory listing, but the space would still be allocated until that file handle was closed. You might try rebooting. -cliff -------------------------------------------------------------------------= - If some of the files were sparse before and the restored expanded them, that could account for the usage. Fragmentation could cause additional space usage in the form of more space used for the extra extents, but I wouldn't think it would be much. -Alan Guy Dallaire dallaire@total.net "God only knows if god exists"