Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So, currently on a server I have a Fedora VM for an end user who remotes in. Unannounced to me, it was overfilled with data, and now has no more disk space. At this point, it crashed about a minute after booting up. I went into the VM and allocated more space, but it hasn't recognized this yet.

So my question is: Is there a way to have the new volume partitioned and added on to the existing root space without the machine crashing before this is accomplished?

share|improve this question
    
What is the specific level of the OS? What type of disk structure (show the fdisk) and filesystem type? –  mdpc Dec 11 '12 at 20:42
add comment

2 Answers

up vote 3 down vote accepted

Easiest way to do this is use gparted

Download the .iso, boot from the iso and extend the disk.

share|improve this answer
    
Perfect. This is exactly what I needed. –  Adam Hart Dec 11 '12 at 20:50
    
@AdamHart - if this answer has given you what you need, we typically ask that you give it the checkmark so that Cole can be dutifully rewarded with small reputation bonus. –  Mark Henderson Dec 11 '12 at 21:10
add comment

As I understand you have a single root partition on the VM and you have added another virtual disk drive to the VM, right? If this is the case, you can do the following:

  1. boot your VM from a live cd
  2. partition the newly added drive with cfdisk, fdisk or gparted as proposed in the above answer
  3. identify which of root subfolders take most of the space:

    du -sh /*

  4. if these are one of /home/, /var/ or /tmp/, you can pretty safely move some of them to partitions created on the newly added drive. If you plan to move more than one such subfolder, you'll have to provide a separate partition for each one.
  5. add a corresponding entry to /etc/fstab so that the partition is linked to the directory structure on boot.

Alternatively, depending on the type of virtualization software you are running, you may be able to simple extend the current drive.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.