Find the answer to your Linux question:
Results 1 to 7 of 7
Hi Guys , I have quick question on resizing partion . i have made three partitions s follows TOTAL current disk space 40GB /boot /dev/sda1 2GB (primary) / /dev/sda2 18GB ...
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    3

    Resizing Partion

    Hi Guys ,

    I have quick question on resizing partion . i have made three partitions s follows

    TOTAL current disk space 40GB

    /boot /dev/sda1 2GB (primary)
    / /dev/sda2 18GB (primary)
    /swap /dev/sda3 4GB (primary)

    /date /dev/sda5 16GB (extended )

    Now i need to have more space in /data , server running in Virtual environment and i have expaded the disk to 60 GB (addedd +20GB).

    quistion is

    since i have utilised complete partitions ( 3 primary and 1 extended ) , what is possibility of resizing my extended partition.

    Please advice .......



    With regards

    Mohamed

  2. #2
    Just Joined!
    Join Date
    Sep 2007
    Posts
    51

    Type of virtual environment

    TOTAL current disk space 40GB

    /boot /dev/sda1 2GB (primary)
    / /dev/sda2 18GB (primary)
    /swap /dev/sda3 4GB (primary)

    /date /dev/sda5 16GB (extended )

    Well, what type of virtual environment are we referring to (Vmware 4.1, Redhat Xen/KVM, Windows Hyper-V, etc).

    Please advise.

    Once you let me know what type of environment you have, then we can go from there.

    T

    I have included an article for your review - Extending a logical volume

    I would test it using a USB volumes or disk first just to make sure you want it to perform in a particular way.
    Last edited by tdsan; 11-05-2011 at 11:17 AM.

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    3
    Hi ,

    We are using VMware Environment and /data partion we are set as LVM and we expanded the disk (/dev/sda) in VMware .The issue is that since i already made extended partition .How can i expanded it .

    appeciate you answer


    With regards

    mohamed

  4. #4
    Linux User
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    262
    Since you are using LVM, you should read this section of the LVM HowTo on extending a logical volume at Extending a logical volume

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Could you post complete output of fdisk -l command here? Post the output of df -h command too.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Nov 2011
    Posts
    3
    Hi thanks ,

    The problem is i can extend the LVM , but the issue is i need to create a device for that , as i mention i have utilised all partions (3 primary and 1 extended ). the only way is to extend the extended partion .Could you please suggest me some tool to extend the partions .


    With regards

    Mohamed

  7. #7
    Linux User
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    262
    I made the assumption that you had a "logical volume" that was "/data". In that case another disk can be added to the LVM and then "/data" can be increased (and if using a smaller set of filesystems decreased) in size from the "lvm" space. Creating new "logical volumes" in LVM does not need a partition table entry. Can you post the output of the following commands:
    Code:
    fdisk -l 
    pvscan
    vgscan
    lvscan
    pvdisplay
    vgdisplay
    lvdisplay
    mount

Posting Permissions

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