tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: moving /tmp
@ 2000-11-15 17:26 Andy Cohen
  0 siblings, 0 replies; only message in thread
From: Andy Cohen @ 2000-11-15 17:26 UTC (permalink / raw)
  To: tru64-unix-managers

Sorry for the delay in posting this summary -- I didn't get to implement the
solution until this past weekend.

SUMMARY:
=======

Basically, there was no definitive answer.  Opinions ranged from "it's fine
to make /tmp a symbolic link" to "absolutely do not make /tmp a symbolic
link".  It turns out that the machine we migrated from had /tmp as a link
but I decided to make it a separate mount point.

Here's what I did:

go to single-user mode
mv /tmp /o_tmp
mkfset disk04 tmp
mount disk04#tmp /tmp
{add appropriate entry to /etc/fstab}
mv /o_tmp/* /tmp

This seems to have worked fine.  We've been live with this for 3 full
(busy!) business days with no problems.  The only error message was when I
issued the 'mv /o_tmp/* /tmp' -- I got a warning about not being able to
move any of the MailBoxPidxxx files (or whatever they are).  

Thanks to everybody who helped out!


Original question:
============
Hello -

Our /tmp directory is on the same disk as / .  / often fills up because /tmp
gets alot of output from our primary business application.  We can't change
where the application writes to (i.e. -- we can't make it write to someplace
other than /tmp).  I'd like to put /tmp on another disk that has alot more
space.  Root (/) is UFS, everything else is AdvFS.  One solution we've
kicked around is to make a subdirectory someplace else on a disk that has
alot more room and making a link (ln -s) from /tmp to the new subdirectory.
I'm not too familiar with file systems, domains, mount point, etc.  Is this
a reasonable solution?  Would I be better off making /tmp it's own mount
point (if so should it be AdvFS) ?  Most of the AdvFS stuff is part of a
raid0+1 (LSM).  I have a number of spare 2gb AdvFS partitions available that
I can allocate if need be.  Have I explained this clearly at all?

our /etc/fstab:

root_domain#root/		advfs	rw 1 0
/dev/vol/rootdg/swapvol	swap1ufs	sw 0 2
/proc				/proc	procfs rw 0 0
usr_domain#usr			/usr		advfs rw 1 0
home_domain#users		/home	advfs rw 1 0
disk01#u01			/disk01	advfs rw 1 0
disk02#u02			/disk02	advfs rw 1 0
disk03#u03			/disk03	advfs rw 1 0
disk04#u04			/disk04	advfs rw 1 0

df -k:

Filesystem			1024-blocks		Used
Available		Capacity	Mounted on
root_domain#root			131720	87844		35768
72%		/
/proc					0		0		0
100%		/proc
usr_domain#usr			2097144	1288928	778848		63%
/usr
home_domain#users			5120000	786744	4311024		16%
/home
disk01#u01				5120000	571336	4533288		12%
/disk01
disk02#u02				6144000	2918600	3219392		48%
/disk02
disk03#u03				6144000	2711424	3426568		45%
/disk03
disk04#u04				20480000	14109288
6362440		69%		/disk04


tmp is under /.  I was thinking of making a tmp directory under /desik04 and
making a link from /tmp to /disk04/tmp (ln -s /disk04/tmp /tmp).  Can I do
this in multi-user mode with users logged in or do I need to (or just
should) be in single-user mode?



Andy Cohen
Database Systems Administrator
Cognex Corporation
1 Vision Drive
Natick, MA  01760-2059
voice: 508/650-3079            email: acohen@cognex.com
   fax: 508/650-3337            pager: 877-654-0447

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-15 17:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-15 17:26 SUMMARY: moving /tmp Andy Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox