Adding a Disk for the Pool
The preferred way to present storage to a DataCore virtual machine (VM) would be raw device mapping.
Identifying the Disk
- Identify the disks/devices that are available to the Promox (PVE) host and which of them are to be connected to DataCore VM.
- Display the existing devices using the following CLI command:
- Use the SCSI string with the corresponding serial number of the disk for the mapping.
find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12
Output:
Adding a Physical Device as a New Virtual SCSI Disk
Establish the new connection using the following command:
qm set <VM-ID> -scsi<No> /dev/disk/by-id/scsi-<serial-no>
For Example: qm set 400 -scsi1 /dev/disk/by-id/scsi-3600605b000b040f02c67295fc0c3313c
Output:
Verifying the Configuration File
Use the following command to check the configuration file:
grep fc0c3313c /etc/pve/qemu-server/400.conf
Output:
scsi1: /dev/disk/by-id/scsi-3600605b000b040f02c67295fc0c3313c,size=5719182M