home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!phys.ksu.edu!rjq
- From: rjq@phys.ksu.edu (Rob Quinn)
- Newsgroups: comp.unix.admin
- Subject: Re: Backup while device busy!
- Date: 4 Jan 1993 14:52:49 GMT
- Organization: Kansas State University
- Lines: 46
- Message-ID: <1i9j01INNchm@moe.ksu.ksu.edu>
- References: <61800002@acf3.NYU.EDU>
- NNTP-Posting-Host: bohr.phys.ksu.edu
-
- In <61800002@acf3.NYU.EDU> zhangd@acf3.NYU.EDU (zhangd) writes:
- >When I am doing backup of a user filesystem at midnight, I prefer to umount
- >the filesystem
- >and then mount readonly thereafter. However, the filesystem is often
- >unmountable
- >because of "device busy" error! The point is somebody uses open files on it
- >via NFS
- >and I can't detect and close them all.
-
- I have no problem umount'ing a filesytem that is being used over NFS. You'll
- just cause 'Stale NFS file handle' errors on the client.
-
- > Although I logout all current users on UNIX, those
- >users on PC can still have open files via PC-NFS.
-
- More likely, there are still processes active on the filesystem such as long
- running jobs. I use 'ofiles' to look for them. For instance:
- #ofiles /usr/local
- /dev/sd1g: /usr/local
- user process command type inode(s)
- rjq 10359 emacs m + 994
- rjq 214 xinit m + 1383 1935
- rjq 213 sh f 1384
- root 203 vlmd m + 21269
- rjq 215 Xsun fm 4183 4184 + 1338
- monitor 295 xterm m + 1388
- rjq 9763 tn3270 fm 16612 + 1023
- [.....]
-
- There's also 'pff'. Both are available for ftp somewhere.
-
- >2. if there is a way to find out all opening files on a partition and close
- >them forcefully? ( mount, showmount...)
-
- Kill the processes.
-
- >3. Could other backup commands ( like TAR ) handle this situation better?
-
- I do level 5 backups every day, level 3's on Fridays, and level 0's once
- a month. I only shutdown for the level 0's.
-
- --
- | "He does not _drink_ from a can like most humans... |
- | he slurps it out. It sounds as if he's trying Rob Quinn |
- | to drink it without tipping the can." rjq@phys.ksu.edu |
- | -anon referring to Bryan Nehl QuinnBob@KSUVM.BITNET |
-