- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: UMOUNT ERROR And Free LV
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:34 PM
08-10-2005 03:34 PM
# umount /dev/vgmsa01/yog
umount: cannot unmount /yog : Device busy
umount: return error 1.
#######################################
This is second query--
When i delete some files from one LV which is say 98% occupied...after deleting it is suppose to come upto 80% as files calculated..
Still its showing 98% ...
i fire lvsync still no expected result.
Waiting for ur valuable replies...
Thanks,
Yogesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:42 PM
08-10-2005 03:42 PM
Re: UMOUNT ERROR And Free LV
Both your problems correspond to one reason. Your file system has some files open under this file system which is causing to be busy and not allowing to be unmounted and also the files which are in use are not freeing up space even after deleting. You need to find out the applications which are using these files. Once that application is terminated both your problems will resolv.
Use fuser to find out the processes using the file system. A more detailed information can be get through lsof if you have that.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:44 PM
08-10-2005 03:44 PM
Re: UMOUNT ERROR And Free LV
#fuser -ku /dev/vgmsa01/yog
#umount /dev/vgmsa01/yog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:45 PM
08-10-2005 03:45 PM
SolutionSee whether any one is using the file system dev/vgmsa01/yog.
#fuser -cu dev/vgmsa01/yog will show you the processes related.Kill those processes.
#fuser -ku dev/vgmsa01/yog
try umount again. If this doesnt solve your prob, use lsof to find out the open files in this file system and kill those.
For second query can you have a reboot and see again.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:47 PM
08-10-2005 03:47 PM
Re: UMOUNT ERROR And Free LV
and then run
#lsof dev/vgmsa01/yog
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:53 PM
08-10-2005 03:53 PM
Re: UMOUNT ERROR And Free LV
do
kill $pid; sleep 3; kill -9 pid
done
at this point your deleted file handles should be released and you should start to see the actual free space. If you still want to unmount the filesystem, at this point you should be able to do so:
umount /yog
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 05:13 PM
08-10-2005 05:13 PM
Re: UMOUNT ERROR And Free LV
You can use the following command to unmount
#fuser -kuc /
Some times even though you deleted the files, but still your application is not released the files then bdf won't show the freed space. Normally stopping/starting the application will resolve the problem.
Incase if you want to see whether files are using by application or not, you can use the tool called uli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 05:46 PM
08-10-2005 05:46 PM
Re: UMOUNT ERROR And Free LV
Fyi,Lsof stands for LiSt Open Files, and it does just that. It lists information about files that are open by the processes running on a UNIX system.
You must concern this:
Lsof never reports a path names for a file that has been unlinked from its parent directory -- e.g., deleted via rm, or the unlink() system call -- even when some process may still hold the file open. That's because the path name is erased from name caches and the parent directory file when the file is unlinked.
Unlinked open files are sometimes used by applications for temporary, but invisible storage (i.e., ls won't show them, and no other process can open them.) However, they may occasionally consume disk space to excess and cause concern for a system administrator, who will be unable to locate them with find, ls, du, or other tools that rely on finding files by examining the directory tree.
By using lsof's +L option you can see the link count of open files -- in the NLINK column. An unlinked file will have an NLINK value of zero. By using the option +L1 you can tell lsof to display only files whose link count is less than one (i.e., zero).
When a process has a lock of length one, starting at byte zero, lsof can't distinguish it from a full file lock.That's because most UNIX dialects represent both locks the same way in their file lock (flock or eflock) structures.