[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] / is getting full
- Subject: Re: [cobalt-users] / is getting full
- From: "Mike's List" <mikelist@xxxxxxx>
- Date: Fri Jan 10 06:21:00 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
You might and you might not...below is a script I wrote to move some
stuff to /home and free up several megs worth of files...you can execute
it line-by-line (RECOMMENDED, as your / is full --script might not run,
not sure how Linux re-acts to / being full, system fork or not???).
- Mike
-----script starts-----
#!/bin/sh
# The below script is to move some files from / directory,
# more specifically, non-crucial directories in /usr onto
# /home to create more space in / directory.
# The below creates directory in /home
mkdir /home/doc
mkdir /home/man
mkdir /home/X11R6
# The below move files from /usr/doc to /home/doc and /usr/man
# to /home/man and /usr/X11R6 to /home/X11R6 with preservation
# to special files/links, etc.
tar cf - /usr/doc | ( cd /home/doc ; tar xf - )
tar cf - /usr/man | ( cd /home/man ; tar xf - )
tar cf - /usr/X11R6 | ( cd /home/X11R6 ; tar xf - )
# Confirms that the files have been move properly with ls command
# and the below will erase the /usr/doc /usr/man and /usr/X11R6
rm -r /usr/doc
rm -r /usr/man
rm -r /usr/X11R6
# Once confirmation is made you need to link /usr{/doc/man/X11R6}
# to the /home{/doc/man/X11R6} directories
ln -s /home/doc /usr/doc
ln -s /home/man /usr/man
ln -s /home/X11R6 /usr/X11R6
# Now you can confirm that /usr/doc /usr/man /usr/X11R6 are
# pointing to /home by doing a simple ls -ld command
# ie. ls -ld /usr/doc --and now df -k will displays / reduced.
-----script ends-----
On Fri, 10 Jan 2003, Rishi Gangoly wrote:
> Hi
>
> I got a message that / is getting full.
>
> I think I've got hacked. Any ideas on what I could do on a temp basis to get
> out of this emergency. I guess I would have to re-install the RaQ4 from
> scratch.
>
> ----------------------------------------------------------------------
> is getting very close to full. This is very dangerous for the server
> and can cause unexpected errors to occur. You either need to move some
> files to another storage device and delete them from the Sun Cobalt server
> or delete them altogether. Consult the documentation for help adding
> storage to your Sun Cobalt server.
>
> Total disk space: 725.95 MB
> Free disk space: 49.91 MB
> Percent Used: 93 %
> ----------------------------------------------------------------------
>
> Regards
>
> Rishi
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>