[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] The filesystem [/] is full



 >The filesystem [/] 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 Cobalt
 >server or delete them altogether.  Consult the documentation for help
adding
 >storage to your Cobalt server.
 >
 >Total disk space:  725.95 MB
 >Free disk space:  46.56 MB
 >Percent Used:  93 %
 >
 >
 >I have a Raq4r.  How can I be limited to this amount?

The solution for me was to move /usr/local somewhere else. On the RaQ2,
/usr/local also resided on the / filesystem.

The biggest filesystem is usually /home. Move things there which aren't
required in / . In my case, since I've added a lot of tools and apps to my
system, /usr/local was getting pretty big.

I moved /usr/local to /home/usr/local, then made a symbolic link in /usr to
point to it (ln -s /home/usr/local /usr/local). The steps I took were
basically like this:

cd /usr
tar zcvf /home/local.tar.gz local

You can't mv a directory across filesystems - so I made a compressed tarball
of it all. This is handy as it also means I now have a backup.

cd /home
mkdir usr
cd usr
tar zxvf ../local.tar.gz

This tar command will create local with the same filepermissions and
structures as it was created with in the first step.

cd /usr
rm -rf local

rm -rf will do a forced recursive delete of local. MAKE SURE YOU'RE DELETING
THE RIGHT THING! rm -rf is extremely potent. Use it with extreme caution.
Double check you're deleting what you really want to delete.

ln -s /home/usr/local local

This makes the symbolic link, which is a bit like a shortcut in Windows
(except it's actually on the filesystem so any program that looks at
/usr/local gets sent to the new location, /home/usr/local).