need help with lvremove :(
need help with lvremove, im using fedora 17
/dev/vg_bindas/lv4 is mounted on /usr/local
also lvremove with -f option didnt work either
ps won't show you mounted filesystems.
Use "df -h" to see what is mounted and where it is mounted. Run your umount against the filesystem mount name associated with lv4.
Be sure that whatever is in the filesystem is something you no longer need before you do the lvremove.
If you need further help post your df -h output here.
thanks for reply but it didnt work
i posted ps to show that /usr/local is not being used in any process preventing lvremove
I need to do this because i need more space in root (/) as most installs go to /usr not /usr/local
i am new to linux so didnt know which filesystem to provide extra space there, i gave / only 5 gb and /usr/local 15 gb
some softwares tend to go /opt but not all
i even tried shrinking the filesystem by resize2fs but still got errors
Run "lsof /usr/local". It will show you any process that is using the directory, /usr/local.
The ps command would only show you process NAMES that include /usr/local. Just because a process is running in /usr/local it isn't necessary part of the process name.
You can however run "ps -ef |grep <PID>" for any process ID shown by the lsof of /usr/local.
You didn't get any errors when you tried the umount? That seems odd if it is actually busy as the lvremove says. However sometimes a filesystem is busy for simple reasons. (e.g. if you happen to have done a "cd /usr/local" then ran "su -" to become root - the user you switched from is still busying out /usr/local even though the user you switched to isn't there - this is because the su is starting a subshell.)
Also you should do "ls -l /dev/mapper/vg_bindas-lv4" and "/dev/vg_bindas/lv4" so you can see what (if any symbolic links are shown). One should be a symbolic link to the other but there's always a chance things aren't as expected so it is always best to verify assumptions even if they are "usually" the correct ones.
thanks for the info on lsof
no i didnt get any errors when doing a umount, this time i made sure i was not in /usr/local when doing su -
either any process are using /usr/local because then i would have gotten errors
here ls -l on those paths
Note that it is possible you dont see any in use files however it might still be in use.
NFS shows such behavior so make sure this filesystem is not exported or stop nfs service.
Also if /usr/local is not mounted, how did you unmount it? Umount /usr/local? Or umount -l /usr/local?
Note that the latter can result in such behavior that it is still in use/seems to be still in use to the kernel.
What is in /proc/mounts?
I have seen issues with /etc/mtab being incorrect while /proc/mounts shows the correct mounts.
What is your final goal?
You might have to reboot to solve this issue.
The message from lsof is informative:
Also it begs the question whether your other filesystems are gvfs and if so what is the proper method for expanding them if they're also shared out?
Unfortunately I don't use gvfs here so can't give you much guidance. You should do a web search for "unmount gvfs" or "umount gvfs".
|All times are GMT -5. The time now is 02:02 AM.|