Old 11th July 2006, 14:00
cwolf cwolf is offline
Junior Member
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question configuring LVM?


I've installed CentOS 4.2 (fully updated) and my disk config is as follows:
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
                      2.0G  218M  1.7G  12% /
/dev/sda1              99M   23M   72M  24% /boot
none                 1004M     0 1004M   0% /dev/shm
                      2.0G   36M  2.0G   2% /home
                     1008M   34M  924M   4% /tmp
                      2.0G  830M  1.1G  44% /usr
                      102G  330M   96G   1% /var
I want to resize mount-point "/" to 1024MB instead of 2048MB. Then I want to resize "/var" with the 1024MB previously belonging to "/". I've succesfully resized "/home" to 1024MB and back to 2048MB again to test the procedure, but it needs to unmount the mount-point that's being resized. Unmounting "/" or "/var" isn't possible.
[root@localhost ~]# umount /
[root@localhost ~]# umount /var/
umount: /var: device is busy
umount: /var: device is busy
unmounting "/" seems to work, but executing resize2fs gives:
[root@localhost ~]# resize2fs /dev/VolGroup00/LogVol00 1024M
resize2fs 1.35 (28-Feb-2004)
/dev/VolGroup00/LogVol00 is mounted; can't resize a mounted filesystem!
Also "umount -l /" or "umount -l /dev/VolGroup00/LogVol00" shows the "still mounted message".

I was under the impression that LVM is much more user-friendly when it comes to diskspace management, so what can I do, to unmount and resize every mount-point on my system?

Reply With Quote
Sponsored Links
Old 12th July 2006, 13:52
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

Have a look here: http://www.linuxdevcenter.com/pub/a/...-with-lvm.html
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie's question for Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk strephon HOWTO-Related Questions 5 8th January 2007 06:19
configuring ispconfig hjlopes Installation/Configuration 3 4th July 2006 00:21
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 22:42
website for configuring guidovanh Installation/Configuration 12 23rd March 2006 11:35
confius on configuring behind firewall... crypt3rc0d3 Installation/Configuration 1 15th February 2006 21:16

All times are GMT +2. The time now is 13:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.