set a hdd to work with a particular vm

dz.

New Member
Hi

I've add a ssd drive to my proxmox server to be use with a particular vm. Although the vm doesn't need to be installed on it but should use it for particular file storage.

What's the best way to do that ?

I made a lvm group, should i mount it manualy to a /var/lib/vz/private/***/mnt/sdd/ folder
or is it a better way ?

I'm using openvz.

Thanks for help.
 
all right it worked with some tweak

first i needed to create the dir /var/lib/vz/private/*VMID*/mnt/*MOUNTPOINT*
and mount the disk on the host (for clarity i used the same mount point on the host and the vm).

and changed the script as :

#!/bin/bash
. /etc/vz/vz.conf
. /etc/vz/conf/*VMID*.conf
SRC=/mnt/*MOUNTPOINT*
DST=/mnt/*MOUNTPOINT*
mount -n -t simfs ${SRC} ${VE_ROOT}/*VMID*/${DST} -o ${SRC}