tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Lucas Carey <lcarey () ic ! sunysb ! edu>
To: tru64-unix-managers
Subject: SUMMARY: remount ro
Date: Sat, 27 Oct 2001 17:04:49 +0000	[thread overview]
Message-ID: <102653641822055.tru64-unix-managers.marc@archive.invalid> (raw)

The final answer, according to Dr. Blinn, and implied by the other responses 
suggesting things that didn't work,  is no, it is impossible to mount a 
filesystem mounted rw, ro without unmounting it. 
-Lucas Carey
----Original question-----------------

> >In linux it is possible to remount a directory from rw to ro.
> >mount -o remount ro [dir]
> >Is this possible in Tru64 v5.1a, Advfs? I would like to have slave
> >/usr/local/ servers that normally have ro mounts, but they need to remount
> >the directories rw in order to sync them up to the master. I tried mount
> > -u -o ro [dir] and got: Operation not supported.
> >
--------and clarification-----------
I linux it is possible, in multi-user mode, to take a filesystem that is
mounted read-write and remount it read-only. This can be done to an active
filesystem. here is an example
#mount | grep sda7
/dev/sda7 on /mnt/sda7 type reiserfs (rw)
#pwd
/mnt/sda7/ExonIntron
#umount /mnt/sda7
umount: /mnt/sda7: device is busy
#mount -o ro,remount /mnt/sda7
#mount | grep sda7
/dev/sda7 on /mnt/sda7 type reiserfs (ro)
#pwd
/mnt/sda7/ExonIntron
#mount -o rw,remount /mnt/sda7
#mount |grep sda7
/dev/sda7 on /mnt/sda7 type reiserfs (rw)

I have taken a filesystem that I cannot unmount because I am in it, and
remounted it read-only. This is done while the system is up and running, and
while processes are running that have the target filesystem as thier working
directory. umount [filesystem] ; mount -o ro [filsystem] and related commands
will not work.

                 reply	other threads:[~2001-10-27 17:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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