[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to freeze & thaw ext2(ext3) file system?

On Mon, Jul 08, 2002 at 01:42:07AM -0700, Satish Singhal wrote:
> hi...
> i intend to develop a backup application for linux
> platform...
> the workflow is as follows:
> - freeze the file-system(ext2 or ext3)
> - take the bckup
> - release the file system.
> i am not able to find the relevant ioctl or api for
> freezing & releasing the file system...
> so... i need some help...

Do you mean mount the filesystems read-only? If so, this is the command to

# mount -o remount,ro <filesystem>

You will probably have to use lsof to make sure no processes are running on
that filesystem.

Another way to do this is if you are backing up a major filesystem (like /
or /usr) is just to go down to single-user mode, do the backup, and bring
it back up to the default run-level (3 or 5, generally).

-- Skylar Thompson (skylar attglobal net)

Attachment: pgp00001.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]