Re: Repositioning /var | /tmp to avoid disk full condition

2003-06-05 Thread Sunil Sunder Raj
Hi,

# umount /var
# mv /var /usr
# ln -s /usr/var /var
In /etc/fstab remove the line containing /var

Regards
SSR

From: Joseph Maxwell [EMAIL PROTECTED]
To: FreeBSD Users [EMAIL PROTECTED]
Subject: Repositioning /var | /tmp to avoid disk full condition
Date: Sat, 31 May 2003 11:58:23 -0700
Hello,
The 3rd edition of The Complete FreeBSD suggest repositioning the /var
directory ( and even /tmp) to prevent filling up that partition. I
ignored it and did just that today, filled it up. So I attempted the
repositioning with the following recommended command steps and results:
 cd /var
 tar cf - . | (cd /usr/var; tar xf - )
 cd /
 rm -rf /var
 ln -s /usr/var /var
However the  'rm -rf /var' returned

 rm: /var: Device busy

After trying all known tricks to me to remove /var, I concluded that
since it was mounted from the /etc/fstab I should dismount it and remove
the directory (link point ?) and create a soft link there as
recommended. However, on rebooting boot was aborted, was thrown into
single users mode. After some findangling eventually got the system back
up as before with the /var directory, except that now it contains only
the /var/cron and /var/run directories.
The original /var contained

 /var/account:
 /var/at:
 /var/backups:
 /var/crash:
 /var/cron:
 /var/db:
 /var/games:
 /var/log:
 /var/lost+found:
 /var/mail:
 /var/msgs:
 /var/preserve:
 /var/qmail:
 /var/run:
 /var/rwho:
 /var/smtpd:
 /var/spool:
 /var/tmp:
 /var/webmin:
 /var/yp:
How can I restore the full functioning structural integrity as before,
of course the contents of the /usr/var directory was wiped out somwhere
along the way, sans log, sans mail, sans everything. Just want to
continue as before.
Thanks.

--  Joe  --



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
_
Staying fit. It's about being happy! 
http://server1.msn.co.in/features/stayingfit/index.asp Check out the new 
mantra.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Repositioning /var | /tmp to avoid disk full condition

2003-06-03 Thread Vallo Kallaste
On Sat, May 31, 2003 at 11:58:23AM -0700, Joseph Maxwell
[EMAIL PROTECTED] wrote:

 How can I restore the full functioning structural integrity as before,
 of course the contents of the /usr/var directory was wiped out somwhere
 along the way, sans log, sans mail, sans everything. Just want to
 continue as before.

FreeBSD uses mtree(8) to create distribution directories, look into
/etc/mtree, you find the templates there. In case you've lost the
/var hierarchy, the simplest way to recreate it is:
mtree -deU -f /etc/mtree/BSD.var.dist -p /var
This is what /usr/src/etc/Makefile distribution target uses, also.
-- 
Vallo Kallaste
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Repositioning /var | /tmp to avoid disk full condition

2003-06-01 Thread Joseph Maxwell
Hello,
The 3rd edition of The Complete FreeBSD suggest repositioning the /var
directory ( and even /tmp) to prevent filling up that partition. I
ignored it and did just that today, filled it up. So I attempted the
repositioning with the following recommended command steps and results:

 cd /var
 tar cf - . | (cd /usr/var; tar xf - )
 cd /
 rm -rf /var
 ln -s /usr/var /var

However the  'rm -rf /var' returned

 rm: /var: Device busy

After trying all known tricks to me to remove /var, I concluded that
since it was mounted from the /etc/fstab I should dismount it and remove
the directory (link point ?) and create a soft link there as
recommended. However, on rebooting boot was aborted, was thrown into
single users mode. After some findangling eventually got the system back
up as before with the /var directory, except that now it contains only
the /var/cron and /var/run directories.

The original /var contained

 /var/account:
 /var/at:
 /var/backups:
 /var/crash:
 /var/cron:
 /var/db:
 /var/games:
 /var/log:
 /var/lost+found:
 /var/mail:
 /var/msgs:
 /var/preserve:
 /var/qmail:
 /var/run:
 /var/rwho:
 /var/smtpd:
 /var/spool:
 /var/tmp:
 /var/webmin:
 /var/yp:

How can I restore the full functioning structural integrity as before,
of course the contents of the /usr/var directory was wiped out somwhere
along the way, sans log, sans mail, sans everything. Just want to
continue as before.

Thanks.

--  Joe  --



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Repositioning /var | /tmp to avoid disk full condition

2003-06-01 Thread Lee Harr
cd /var
tar cf - . | (cd /usr/var; tar xf - )
cd /
rm -rf /var
ln -s /usr/var /var
However the  'rm -rf /var' returned

rm: /var: Device busy

After trying all known tricks to me to remove /var, I concluded that
since it was mounted from the /etc/fstab I should dismount it and remove
the directory (link point ?) and create a soft link there as
However, on rebooting boot was aborted, was thrown into
single users mode.
Probably all you need to do is remove the line about /var
from your /etc/fstab  (or just comment it out)
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]