Extend disk for CentOS in XenServer

Posted on 2014-08-27
Last Modified: 2014-10-08
I'm not sure how to handle this, as I don't really deal much with Linux, however we have a CentOS server built on XenServer and I need to add another 60 GB disk space to it - extend the volume.
Once I add the disk to the VM, how do I add this to the actual CentOS server itself? Are there tools within the OS itself to extend the volume?
Many thanks in advance for your help.
Question by:Biertan
    LVL 34

    Expert Comment

    by:Seth Simmons
    Are there tools within the OS itself to extend the volume?

    yes you can extend natively
    are you using  LVM?  not sure?  what is the output of df -h ?
    LVL 27

    Expert Comment

    If you aren't using LVM, you'll need to run a gparted Live Disc to repartition the expanded disk.  If you have LVM, then it's relatively quick and easy with LVM tools.
    LVL 34

    Accepted Solution

    not necessarily
    if the added space is right after the partition to be extended then it can be done with tune2fs
    LVL 27

    Expert Comment

    Yes, I see a lot of volumes with swap set after / (root), so I have to run gparted.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now