S
S
Sergey2017-01-30 16:13:50
RAID
Sergey, 2017-01-30 16:13:50

How to forward HDD to Proxmox LXC container?

On the Proxmox server, I launched an LXC container with OpenMediaVault. Now I'm thinking how best to give her access to physical disks.
There will be 2 disks assembled in Raid 1. In the future, there are plans to expand the number of disks and organize Raid 5 or 6.
Tell me, what is the best way to do this? I don't think partition mounting would be the best solution. Is there any way to completely transfer disk management to a container, similar to disk forwarding in a VM?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Melkij, 2017-01-30
@melkij

The device itself is not. The kernel must talk to the disk. The container does not have its own kernel.
Mount the disks to the host system, bind to the container: https://wiki.debian.org/LXC#Bind_mounts_inside_the...

P
Puma Thailand, 2017-01-31
@opium

Either mount the disks in lxc through the config, or forward the bind in lxc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question