Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-22-2010, 12:16 PM
|
#1
|
Member
Registered: Apr 2010
Posts: 52
Rep:
|
LVM REDUCE HOW TO UNMOUNT /dev/volumegroup/lvm
Hello friends
I know all the command to reduce the lvm
umount /vg0
fsck -f /dev/volumegroup/lvm
resize2fs /dev/volumegroup/lvm
lvreduce /dev/volumegroup/lvm -L 400M
But when i fire the command
umount /dev/volumegroup/lvm
or
umount /vg0
Then i got the following error
root@localhost ~]# umount /dev/volumegroup/lvm
umount: /vg0: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
This is the output of my /etc/fstab file
#
# /etc/fstab
# Created by anaconda on Mon Oct 11 00:04:01 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=8e8d82b4-11e3-4d6d-8f7e-f0898e245329 / ext4 defaults 1 1
UUID=f6edbfd0-9d76-4669-9c66-7bd131a507ce /boot ext4 defaults 1 2
UUID=6a6455e7-0fbb-42d8-b7cc-717e89bcf62f swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/volumegroup/lvm /vg0 ext3 defaults 0 0
I think i must remove the following entry from /etc/fstab
/dev/volumegroup/lvm /vg0 ext3 defaults 0 0
Please guide me
Thanks & Regards
Rahul
|
|
|
10-22-2010, 12:28 PM
|
#2
|
Member
Registered: Oct 2010
Location: San Francisco, CA
Distribution: Snow Leopard, Ubuntu, RedHat
Posts: 64
Rep:
|
Your fstab doesn't help, if we don't know what devices the UUIDs are connected to, but I suspect that your installation lives on the LVM, and you can't unmount your root partition while you're using it (for obvious reasons.) No worries; just boot from a livecd. Fedora's rescue cd mode will work just fine.
|
|
|
10-23-2010, 04:29 AM
|
#3
|
Member
Registered: Jun 2010
Location: India
Distribution: Redhat
Posts: 68
Rep:
|
Try this steps:
1) fuser -vm /vg0
2) check autofs status -> service autofs stop
3) quotaoff /home
4) reboot
Last edited by raviteja_s; 10-23-2010 at 05:10 AM.
|
|
|
10-29-2010, 08:49 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,431
|
Quote:
Originally Posted by raviteja_s
Try this steps:
1) fuser -vm /vg0
2) check autofs status -> service autofs stop
3) quotaoff /home
4) reboot
|
How does this help him, exactly? The OP has a process accessing the volume, which is why it couldn't be unmounted. Rebooting may do NOTHING, except restart the process, and waste time.
|
|
|
All times are GMT -5. The time now is 05:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|