[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] SHP Fix ?
- Subject: Re: [cobalt-users] SHP Fix ?
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Sat Nov 16 15:34:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "jeanjean" <jeanjean@xxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Saturday, November 16, 2002 8:19 AM
Subject: [cobalt-users] SHP Fix ?
> Hi,
>
> I have a Raq4 that begin to fill the /dev/md1 partition.... I have some
> reserve, here is the actual status :
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/md1 743371 654375 88996 88% /
> /dev/md3 198275 31509 166766 16% /var
> /dev/md4 36081419 1273228 34808191 4% /home
>
> But the available space will be full filled in 2 - 3 weeks if it continue
to
> run SHP.
> SHP is disabled, but it continue to fill the space...
>
> Is there a fix to free space ? Can we delete some files ? If yes, which
?
> I thinked to try do delete some doc files in /usr/doc/ like :
>
> samba (4,7Mb)
> MySQL (6.0Mb)
>
> We don't need that documentation on that server. Can we delete it ?
> I try to search in the list for 'shp fix' but don't find anything
> significant...
> Thanks for any help
> Regards
> jeanjean@xxxxxxx
> Jean
>
The following script will change /usr/local to /home/local with symlinks and
transfer all the files and should solve your problem.
You can wget it from http://www.raqateers.com/downloads/usr2home.sh chmod
755 and run it.
Bassi
=== script ===
#!/bin/sh
echo "changing directory to /home "
cd /home
pwd
echo "If you have any errors above please STOP NOW"
echo
echo "Continue (y/n)"
read yn
case $yn in
"y") echo OK;;
"yes") echo OK;;
*) echo Install Canceled; exit 0;;
esac
mkdir local
ls -al
echo "can you see a directory called local"
echo "If you have any errors above please STOP NOW"
echo
echo "Continue (y/n)"
read yn
case $yn in
"y") echo OK;;
"yes") echo OK;;
*) echo Install Canceled; exit 0;;
esac
cd /usr
pwd
echo "we are now in /usr"
echo "If you have any errors above please STOP NOW"
echo
echo "Continue (y/n)"
read yn
case $yn in
"y") echo OK;;
"yes") echo OK;;
*) echo Install Canceled; exit 0;;
esac
echo "now zipping up the files and moving them"
tar cf - local | (cd /home && tar xvf -)
mv local local.old; ln -s /home/local local; ls -ald local #moved it
echo "making a link from usr/local to home/local"
ls -ald local*
ls -al
echo "If you have any errors above please STOP NOW"
echo
echo "Continue (y/n)"
read yn
case $yn in
"y") echo OK;;
"yes") echo OK;;
*) echo Install Canceled; exit 0;;
esac
echo "if you had any errors at all STOP NOW as we are about to remove some
files"
echo "If you have any errors above please STOP NOW"
echo
echo "Continue (y/n)"
read yn
case $yn in
"y") echo OK;;
"yes") echo OK;;
*) echo Install Canceled; exit 0;;
esac
rm -fr local.old;sync;df
echo "all done"