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

Hi,

I've installed CentOS 4.2 (fully updated) and my disk config is as follows:
Code:
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      2.0G  218M  1.7G  12% /
/dev/sda1              99M   23M   72M  24% /boot
none                 1004M     0 1004M   0% /dev/shm
/dev/mapper/VolGroup00-LogVol01
                      2.0G   36M  2.0G   2% /home
/dev/mapper/VolGroup00-LogVol02
                     1008M   34M  924M   4% /tmp
/dev/mapper/VolGroup00-LogVol03
                      2.0G  830M  1.1G  44% /usr
/dev/mapper/VolGroup00-LogVol04
                      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.
Code:
[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:
Code:
[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?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 12th July 2006, 12:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Have a look here: http://www.linuxdevcenter.com/pub/a/...-with-lvm.html
__________________
Falko
--
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
Reply

Bookmarks

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 05:19
configuring ispconfig hjlopes Installation/Configuration 3 3rd July 2006 23:21
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42
website for configuring guidovanh Installation/Configuration 12 23rd March 2006 10:35
confius on configuring behind firewall... crypt3rc0d3 Installation/Configuration 1 15th February 2006 20:16


All times are GMT +2. The time now is 22:45.


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