Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Just want to know, Is there any downtime by remounting /tmp filesystem.

  • step 1. mount -o remount defaults,exec /tmp
  • step 2. mount -o remount defaults,noexec,nosuid,nodev /tmp
share|improve this question
1  
Your question isn't clear. If you are asking if it will shutdown any of your services, you will need to analyze your especific case. Please, edit your question to be more clear and more people will reply to them. –  Alexandre Teles Aug 20 '13 at 11:23
1  
Why not spin up a VM and try it? –  Journeyman Geek Aug 20 '13 at 11:26

1 Answer 1

If you just do -o remount without actually doing a umount and then mount none of the running processes should be affected other than that the IO might freeze for a short time because the FS has to flush it's buffers and write everything to disk. Open file descriptors should survive the remount and writes/reads should only be delayed but not aborted.

But I don't understand why you want to execute the mount -o remount twice, why don't you just directly do the second of your two steps if that's your final goal?

share|improve this answer
    
Thanks guys, I am installing software which will be executed from /tmp folder automatically, So we are having permission issues, So i want to remount with exec parameter. –  user186290 Aug 20 '13 at 12:40
    
Thanks for the answer. I realize this is a really late comment but could you provide any documentation to support the claim that descriptors should survive the remount and writes/reads should only be delayed? I've been looking all over the net and this is the only answer I've found describing the effects of remount. –  Chris Jones Jul 6 at 1:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.