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... thanks... Satish Singhal __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
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... thanks... Satish Singhal __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
<u1004951@warwick.net>
2002-Jul-08 21:51 UTC
Re: How to freeze & thaw ext2(ext3) file system?
Well for everything other than /, it's called umount ;) On Mon, 8 Jul 2002, 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... > > thanks... > > Satish Singhal > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com > > > > _______________________________________________ > Ext3-users mailing list > Ext3-users@redhat.com > https://listman.redhat.com/mailman/listinfo/ext3-users >--
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 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). -- -- Skylar Thompson (skylar@attglobal.net)