Use extra harddisk

MgM

New Member
May 27, 2009
1
0
1
Deventer
www.avt-it.nl
Good morning!

First of all, the product looks great! I've been working with VMware, but this is great too.

But.. I've a question. I've installed a HP ML115 G5 for testing purposes at home (study, testing for customers etc). This system has 3 sATA 250 GB harddisks. The system has a raid controller onboard, but Proxmox sees only the separate disks. So I've disabled the controller, only using the separate disks.

So far, so good - Proxmox runs fine (1x Windows 7 for testing, 2x windows 2008).

The problem is: how can I use the other 2 harddisks for virtual machines? While creating a new virtual machine I cannot point to a drive to place it.

I'm new to Linux (yes.. I'm a Windows guy. :rolleyes: ) so... any help would be appriciated!

Regards,

Arie
 
Good morning!

First of all, the product looks great! I've been working with VMware, but this is great too.

But.. I've a question. I've installed a HP ML115 G5 for testing purposes at home (study, testing for customers etc). This system has 3 sATA 250 GB harddisks. The system has a raid controller onboard, but Proxmox sees only the separate disks. So I've disabled the controller, only using the separate disks.

So far, so good - Proxmox runs fine (1x Windows 7 for testing, 2x windows 2008).

The problem is: how can I use the other 2 harddisks for virtual machines? While creating a new virtual machine I cannot point to a drive to place it.

I'm new to Linux (yes.. I'm a Windows guy. :rolleyes: ) so... any help would be appriciated!

Regards,

Arie

You have at least three options:

- edit config files in /etc/qemu-server/<VMID>.conf manually, point the disk to a new location, for example:

scsi0: /mnt/new_disk/some_virtual_disk...
virtio0: /mnt/new_disk/other_virtual_disk...

Currently, there is no way to editthis values from the web interface


- mount /var/lib/vz/images/ on a new disk - this means all images will be stored on a new disk (probably a good idea to move the contents of this directory to a new disk)


- use mount -o bind, and either mount /var/lib/vz/images/ or individual virtual machines on a new disk
 
Good morning!

First of all, the product looks great! I've been working with VMware, but this is great too.

But.. I've a question. I've installed a HP ML115 G5 for testing purposes at home (study, testing for customers etc). This system has 3 sATA 250 GB harddisks. The system has a raid controller onboard, but Proxmox sees only the separate disks. So I've disabled the controller, only using the separate disks.

So far, so good - Proxmox runs fine (1x Windows 7 for testing, 2x windows 2008).

The problem is: how can I use the other 2 harddisks for virtual machines? While creating a new virtual machine I cannot point to a drive to place it.

I'm new to Linux (yes.. I'm a Windows guy. :rolleyes: ) so... any help would be appriciated!

Regards,

Arie

not supported yet on the web interface but quite easy via command line.

just take a look on a VM config file (VMID is to replaced with your virtual machine number).

Code:
cat /etc/qemu-server/VMID.conf

name: deb501-netinstall-amd64
ide2: debian-501-amd64-netinst.iso,media=cdrom
smp: 1
vlan0: rtl8139=9E:18:24:4D:C8:BF
bootdisk: ide0
ide0: vm-114-disk.qcow2
ostype: l26
memory: 512
currently we use disk image files in qcow2 format as default, see "ide0: vm-114-disk.qcow2"

now, if you want to use a phyical disk partition, just change this line to something like:

Code:
ide0: /dev/sdb1
but take care, you should partition your hard drive first with 'fdisk /dev/sdb'. On Linux systems with sata drives, the first hard drive is normally /dev/sda, the next /dev/sdb, ... And the partitions on these drives are /dev/sda1, /dev/sda2,...

so I assume your Proxmox VE is installed on /dev/sda1 (this is the boot partition) and /dev/sda2 (this is the LVM partition with all the rest).

The upcoming Proxmox VE 2.x will make the use of extra storage (local and remote) easier, see roadmap.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!