Need help to increase partition size


Results 1 to 2 of 2

Thread: Need help to increase partition size

  1. #1
    Join Date
    Aug 2013
    Posts
    1

    Need help to increase partition size

    Hi .. I am still newbie and need a help urgently

    I have VM machine which was running out of space so I increased space from 20GB to 40GB. Now I need help to increase space in linux logical volume.

    [root@localhost ~]# fdisk -l


    Disk /dev/sda: 42.9 GB, 42949672960 bytes

    255 heads, 63 sectors/track, 5221 cylinders

    Units = cylinders of 16065 * 512 = 8225280 bytes


    Device Boot Start End Blocks Id System

    /dev/sda1 * 1 13 104391 83 Linux

    /dev/sda2 14 2610 20860402+ 8e Linux
    LVM

    Disk /dev/sdb: 8005 MB, 8005787648 bytes


    32 heads, 63 sectors/track, 7756 cylinders

    Units = cylinders of 2016 * 512 = 1032192 bytes



    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 7756 7818016+ b W95 FAT32


    [root@localhost ~]#




    [root@localhost ~]# df -h
    Filesystem Size Used Avail Use% Mounted on

    /dev/mapper/VolGroup00-LogVol00
    18G 14G 2.7G 84% /

    /dev/sda1 99M 18M 77M 19% /boot

    tmpfs 467M 0 467M 0% /dev/shm

    [root@localhost ~]#



    I did try lvresize and lvextend but it throws error.

    Thanks.

  2. #2
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,978
    I don't use LVM but it is supposed to be able to add partitions together instead of resizing them. The resizing of a partition will work satisfactory for non-LVM partitions AFAIK.

    Why bother with a LVM for a hard disk with just 45GB? Distos like the Red hat (fedora) and OpenSuse may still encourage LVM for server application but it is a hindrance for desktop machines with small hard drives. May be I have not put it to the full test but being an extra layer of filing systems management it would have its own difficulties if one try to move/migrate/resize it. AFAIK if you want to change its size the standard BASH commands will not work and the only way is to consulate the LVM manual.

    It made sense in the past when the boot loader could not boot beyond certain cylinder size but technology has moved on and nowadays this is no longer a problem.
    Last edited by saikee; 08-12-2013 at 04:19 PM.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •