How Do You: add a new Hard drive in a Linux VM from existing space using Add HDD

JofleyUK

New Member
Nov 4, 2009
8
0
1
OK, I see many threads on adding drives to machines. Cant seem to find the one i was looking for.

Here's what I want to do.

1) Add a Hard Disk to a KVM, in Proxmox I have added a raw (IDE) drive to the VM and rebooted it.

How do i make it visible to the VM, partition it and format it.

I am working on a test VM for this, altho i need to extend one of my Centos 5.5 RAW VM's by doing the same and creating a 500GB Hard drive from Proxmox and then making it host the "/home2" directory to extend the cPanel storage space on that VM.

I dont want to screw this up so a nice easy step - by - step would be nice, if someone is feeling generous btw.

When i meant step by step, i mean baby steps btw :P
 
Hi,
reboot is not enough - you must stop and start the VM again. The bios (of the VM) must see the new disk. After that you will see the disk also inside the VM (fdisk -l).

Creation of partition table, file systems and so on is normal linux doing. There a lots of discription in the web (or buy an good book).

Udo