Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-22-2010, 11:16 AM   #1
Registered: Apr 2010
Posts: 52

Rep: Reputation: 2
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
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
Old 10-22-2010, 11:28 AM   #2
Registered: Oct 2010
Location: San Francisco, CA
Distribution: Snow Leopard, Ubuntu, RedHat
Posts: 64

Rep: Reputation: 14
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.
Old 10-23-2010, 03:29 AM   #3
Registered: Jun 2010
Location: India
Distribution: Redhat
Posts: 68

Rep: Reputation: 1
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 04:10 AM.
Old 10-29-2010, 07:49 AM   #4
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,727

Rep: Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258Reputation: 6258
Originally Posted by raviteja_s View Post
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce lvm in size in RHEL5.0 kbklinux Linux - Software 1 05-14-2009 02:06 AM
How do you safely reduce a LVM partitions size? Igby Linux - Server 4 05-11-2009 11:41 PM
How to reduce LVM partition ^ Guillaume777 Linux - Software 1 08-27-2007 05:01 AM
LVM Partitions Automatically Unmount r_s_karthikeyan Linux - Newbie 1 01-03-2007 07:48 AM
reduce an LVM partition in Red Hat jhnsegers Linux - Software 0 11-25-2004 01:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration