Ok, I believe I follow what you're talking about. Why would moving /var
to /home be dangerous ?
Are there other directories that you would suggest moving to free up
more space on / ?
Thanks,
Mike
-----Original Message-----
From: Vidiot [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 08, 1998 11:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Moving directories
>I have a system which has the fs setup as follows:
>
>Filesystem Size Used Avail Capacity Mounted on
>/dev/hda1 99M 72M 22M 77% /
>/dev/hda7 4.2G 2.3M 4.0G 0% /home
>/dev/hda6 478M 386M 68M 85% /usr
>/dev/hda5 949M 139M 761M 15% /usr/src
>
>
>As you can see, I have lots of free space on /dev/hda7, but very little
>on /. Sendmail is giving me errors about not having enough space in
>/var/mqueue.
>
>How can I move /var/* to /dev/hda7 ?
I'm not sure you want to move all of /var to /home. That is dangerous
in
single user mode. Moving mqueue there would be fine, since sendmail is
normally not running in single user mode.
So, to get mqueue there, I'd do this (as root)
kill sendmail
mkdir -p /home/var/mqueue
cd /home/var/mqueue
(cd /var/mqueue >& /dev/null ; tar cf - *)|tar xvpf -
[check to make sure that the tar copy worked]
rm -r /var/mqueue
ln -s /home/var/mqueue /var/mqueue
start sendmail
I think you get the picture.
As I mentioned, I wouldn't blindly move all of /var to /home.
Any how, that is what I would do, others may do it differently.
MB
--
System Administrator - Finnigan FT/MS - Madison WI.
URL:http://www.ftms.com/
e-mail: [EMAIL PROTECTED] [Oooohhh, I need a hug]
phone: (608) 273-8262 ext: 612 fax: (608) 273-8719
Visit - URL:http://www.vidiot.com/ (Your link to Star Trek and UPN)
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST
ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips
/mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.