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


Reply
  Search this Thread
Old 10-22-2010, 12:16 PM   #1
crahuldba@gmail.com
Member
 
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
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
 
Old 10-22-2010, 12:28 PM   #2
Stephannn
Member
 
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, 04:29 AM   #3
raviteja_s
Member
 
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 05:10 AM.
 
Old 10-29-2010, 08:49 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,431

Rep: Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112Reputation: 8112
Quote:
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.
 
  


Reply


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 03:06 AM
How do you safely reduce a LVM partitions size? Igby Linux - Server 4 05-12-2009 12:41 AM
How to reduce LVM partition ^ Guillaume777 Linux - Software 1 08-27-2007 06:01 AM
LVM Partitions Automatically Unmount r_s_karthikeyan Linux - Newbie 1 01-03-2007 08:48 AM
reduce an LVM partition in Red Hat jhnsegers Linux - Software 0 11-25-2004 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 AM.

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