Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rm -r *

Status
Not open for further replies.

lweng

Technical User
May 18, 2001
113
US
After I remove all the files and directories under /u02 by typing " rm -r * ", the dir is empty. But when I try to install an Oracle under /u02, it says 'not enough space'. I type df -k to check space under /u02, suprise me the capacity is still 62%. Does rm -r * release the space? and how to fix it? Thanks.
 
Hi,
U can do one thing.First unmount the fs /u02 and then mount it again.Then check the space for it using df -k.If it still shows 62% full then check for (dot dir or dot files under it) by giving the command ls -al.Just check if this helps.And by the way what is the size of /u02 fs?
 
Thanks your reply. /u02 is about 1 gig. How umount and mount /u02. There are some dot files under /u02 as the other empty dir like

drwxrwxr-x 3 oracle other 512 Jul 30 14:44 .
drwxr-xr-x 28 root root 1024 Jul 30 11:05 ..
drwx------ 2 root root 8192 Jul 29 21:10 lost+found

Thanks again.
 
Hi,
Your fs seems to be fine with no hidden directories.U can unmount by giving the command 'umount /u02' and then mount it by giving 'mount /u02'.Note this mount option will work if there is an entry for /u02 in /etc/vfstab.And normally oracle installation takes about 800-900 MB space.But if u are installing the latest version then check the readme file for space requirements.
I hope this helps.
 
I'm wondering if you have any memory that belongs to your oracle user still hanging around. I had a similar problem when I deleted everything in the Oracle FS without stopping Oracle! (we all learn from our mistakes!) If you cannot unmount the filesystem, I suspect this might be your problem.

Check to see if there are any processes running belonging to your Oracle user (ps -ef | grep <oracle user name>). If there are processes out there and Oracle isn't running, you may have deleted u02 without bringing down Oracle. You could probably kill those processes.

Then type this: ipcs | grep <your oracle user name>

If Oracle isn't running (which I would think it wouldn't be if you deleted the executables) you should get no output.

If Oracle isn't running and you do get output, you can use ipcrm to remove the memory stuff that is hanging around. See the man page for ipcs and ipcrm for more info.

If there are a lot of ipcs listings, sometimes it is just as easy to boot.

Good luck.
 
Thanks all, I reboot the machine and everything is ok.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top