[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: "Rishi Gangoly" <usergroups@xxxxxxxxxxxxxxxxxxx>
- Date: Sat Jan 11 08:13:03 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Thanks Mike will try this out right away to buy me some time.
I guess for now this shoud do.
But the what I really need to do is get UN-HACKED.
I have around 50 virtual sites configured on it using a mix of mail, ftp and
web services.
Can you tell me what configuration files are needed to be backed up so
that I can format, re-install and restore the data to system so that I have
the least amount of downtime?
Here is what I thought is needed
/etc/passwd
/etc/group
/etc/shadow
/etc/named.conf
/etc/named
/etc/mail
/etc/httpd
/home
/var
/usr/local/majordomo
Regards
Rishi
----- Original Message -----
From: "Mike's List" <mikelist@xxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Friday, January 10, 2003 7:33 PM
Subject: Re: [cobalt-users] / is getting full
> 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
> >
>
> _____________________________________
> 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