Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

Extend disk for CentOS in XenServer

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.
0
Biertan
Asked:
Biertan
  • 2
  • 2
1 Solution
 
Seth SimmonsSr. Systems AdministratorCommented:
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 ?
0
 
serialbandCommented:
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.
0
 
Seth SimmonsSr. Systems AdministratorCommented:
not necessarily
if the added space is right after the partition to be extended then it can be done with tune2fs
0
 
serialbandCommented:
Yes, I see a lot of volumes with swap set after / (root), so I have to run gparted.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now