New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How can a VM created in A disk make use of B disk in the same server?
yongsiklee
Member, Patron Provider
in Help
I have two disks in my server, one SSD, another HDD.
I created a VM with Proxmox on SSD and installed Nextcloud in it.
Since my HDD has a capacity to hold 5TB of files, I want to make use of it for the Nextcloud VM. What will be the simplest/smartest way to achieve it?
Thank you.
Comments
$15 to a sysadmin.
Probably try LVM?
Google Hard. https://www.hostfav.com/blog/index.php/2017/02/01/add-a-new-physical-hard-drive-to-proxmox-ve-4x-5x/
Add another disk ( located on Disk B ) to your VM.
I've already created partition for the new disk and mounted into a folder in SSD, (No LVM but just the traditional way). But the trouble is I cannot access it from a virtual machine which is basing itself on the SSD where the mounted folder resides.
Fair question should be, how can I access a folder, from a vm, that's located in the drive where a vm is created.
You need to export/import with something like Gluster/NFS, but then you're doing it wrong.
Add the HDD as storage in proxmox (either as a folder, or LVM.etc), that can store disk images.
Then add a second Disk to your VM (its under hardware) with that storage set, you will need to partition/format the disk within the VM and then you should be able to mount it.
WOW I didn't know Proxmox has option to add a second drive for a VM in its UI. Thank you.
It's ridiculous to deploy NFS for a local disk.
Tried, not working. You "first" need to have the drive partitioned/formatted/mounted and added as a storage in Datacenter. A VM cannot use/see the storage even if it is later added as a second harddrive in the UI of Proxmox.
I might have to go with Gluster/NFS in the end but I will try other local methods first.
Well yes the 2nd drive needs to be in a state where you can store VM images in, but yes the VM will absolutely see drives on secondary disks, they'll show up as an extra Hard disk within the VM.
I have VM's with more than one disk present, usually a small OS disk and a data drive.
Thank you again. I only restarted the VM previously and that's probably why I did not see the new drive. I powered off and started the VM and now I am with a new drive in VM. :-)