Just want to know, Is there any downtime by remounting
- step 1. mount -o remount defaults,exec /tmp
- step 2. mount -o remount defaults,noexec,nosuid,nodev /tmp
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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?