1834809 Members
2811 Online
110070 Solutions
New Discussion

Re: two /tmp directories

 
Sp4admin
Trusted Contributor

two /tmp directories

Hello,

I have problem. I may a rookie move and now have two /tmp directories mount. one is /dev/vg00/lvol4 and the other one is /dev/vg00/lvol10. My plan was to comment out the old /tmp which is lvol4 and mount the new one on lvl10. I have made the change in the fstab. buy I ran a mount -o remounr /tmp. this just remouted the second /tmp directory. I was trying to avoid a reboot.

o/s 11.1

Thanks in Advance
sp,
5 REPLIES 5
Paul Sperry
Honored Contributor

Re: two /tmp directories

I have done this before and always had to reboot. Dont forget to clean up the unused space form the old /tmp when your finished.
Steven E. Protter
Exalted Contributor

Re: two /tmp directories

Shalom,

Any solution is likely to disrupt normal system use since /tmp is used for many processes.

fuser -cuk /tmp

Then try umount then mount no mount -o tricks.

I think however that reboot is nearly inevitable.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: two /tmp directories

I believe what you've done is mounted /dev/vg00/lvol10 as /tmp, replacing /dev/vg00lvol4. If you want to have them both mounted at the same time, make a new mount point, such as /newtmp, them "mount /dev/vg00/lvol10 /newtmp" and "mount /dev/vg00/lvol4 /tmp". When you're ready to switch over, just "mount /dev/vg00/lvol10 /tmp". You'll have to unmount first. To make the change permanent, edit /etc/fstab accordingly.


Pete

Pete
Sp4admin
Trusted Contributor

Re: two /tmp directories

Thanks!

I think I will go for the reboot option.

Thanks,
sp,
Sp4admin
Trusted Contributor

Re: two /tmp directories

Thanks for the advice.