[HowTo]: Mount Additional Storage in OMV LXC on Proxmox #175
Replies: 4 comments 4 replies
-
Question - would this work with the scenario of just adding an existing hdd to an LXC? Such as adding an existing HDD to a jellyfin server LXC? |
Beta Was this translation helpful? Give feedback.
-
I do wonder if the above might be created as a script similar to the tailscale one - as in you run the script, select lxc, select the hdd option you want to use from a generated list, and then done. Is that an option? |
Beta Was this translation helpful? Give feedback.
-
I'm a little confused by a couple of things in the original post:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
Could we have script for OpenMediaVault in VM? |
Beta Was this translation helpful? Give feedback.
-
Mounting Additional Storage in OMV LXC on Proxmox
This guide explains how to mount additional storage in an OpenMediaVault (OMV) container running on Proxmox Virtual Environment (PVE).
Prerequisites
Steps
1. Create OMV LXC Container
Create an OMV LXC container on your Proxmox host using the corresponding script. Ensure the container is set to "Privileged" during creation.
2. Add Storage Mount Point
/data
.3. Find Block Device IDs
lvdisplay
in the Proxmox shell./dev/pve/vm-<CT_ID>-disk-X
.4. Create Mount Hook Script
253 9
with the block device numbers you found in the previous step.5. Add Hook to LXC Config
Edit the LXC config file:
6. Start the OMV Container
Start the OMV container.
7. Mount the Storage
/dev/sda1
.At this point, the additional storage should be available in the OMV interface. You can then create shares, set permissions, and use the storage as needed.
Please note that some users reported issues with this method, particularly around the block device numbers changing after a reboot. In such cases, you may need to modify the mount hook script to use the LVM volume UUID instead of the block device numbers.
Original-Thread: tteck/Proxmox#1075
Beta Was this translation helpful? Give feedback.
All reactions