Add new harddrive to linux based vm while running

Scan for new disks, change hostX to active controller

echo "- - -" > /sys/class/scsi_host/hostX/scan

Check if system catched new disk.

fdisk -l

Add partition to new disk. change sdX with new disk identifier.

fdisk /dev/sdX
n (new partition)
p (primary partition)
1 (first partition)
[enter] (start at fist byte)
[enter] (end at last byte)
w (write changes)
Partition the new patition with a filesystem
mkfs.ext3 /dev/sdX#

Add automount of the new partition, edit and add to /etc/fstab.

/dev/sdX# /home2 ext3 defaults 1 0