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

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

 



--AGZzQgpsuUlWC1xT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

# 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).

--=20
-- Skylar Thompson (skylar@attglobal.net)

--AGZzQgpsuUlWC1xT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Kx8CYyzijMrwBxERAiuLAJoCq7N+Ma3XhmPjj+c6gmQahoTSwwCePWZx
bJnb+9JE7sKUfD43cLoZGgw=
=WRBc
-----END PGP SIGNATURE-----

--AGZzQgpsuUlWC1xT--





[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux