Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
We bought a new server with preinstalled RHEL 5. It has RAID 1 and 2 Hard drives of 500 GB capacity. This is what it shows:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
3.9G 458M 3.3G 13% /
/dev/mapper/VolGroup00-LogVol05
3.9G 177M 3.6G 5% /home
/dev/mapper/VolGroup00-LogVol04
5.9G 3.9G 1.8G 70% /var
/dev/mapper/VolGroup00-LogVol03
3.9G 137M 3.6G 4% /tmp
/dev/mapper/VolGroup00-LogVol02
7.8G 2.1G 5.3G 29% /usr
/dev/sda3 190M 16M 165M 9% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
I usually set up the / partition to the maximum size in all the installations. How do I resize the root partition and others without much of pain ? I tried googling to no avail. I would really appreciate any help.
• Create a new partition of type 8e (Linux LVM) with the free space using fdisk
• (probably) reboot the machine - to make the partition table readable
• pvcreate /dev/??? use the new partition created
• vgextend the root volume group using the new PV
example: /usr/sbin/vgextend VolGroup00 /dev/sda2
• lvextend the logical volume
example: lvextend -L+15G /dev/VolGroup00/LogVol00
• ext2online - to make the space viewable (may be called resize2fs on RHEL 5)
example ext2online /dev/VolGroup00/LogVol00
• Test for free space - df -h
Last edited by AlucardZero; 06-03-2010 at 08:29 AM.
Here is the situation now:
Disk /dev/sda: 499.5 GB, 499558383616 bytes
255 heads, 63 sectors/track, 60734 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 9 72261 de Dell Utility
/dev/sda2 10 662 5245222+ 8e Linux LVM
/dev/sda3 * 663 687 200812+ 83 Linux
/dev/sda4 688 60734 482327527+ 5 Extended
/dev/sda5 688 60734 482327496 8e Linux LVM
I am a little confused about the pvcreate part. I am sorry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.