mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-09 18:07:50 +08:00
docs: Disk pass-through by UUID
This commit is contained in:
parent
7c17134625
commit
068303e272
@ -114,12 +114,9 @@ docker run -it --rm --name dsm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMI
|
|||||||
It is possible to pass-through disk devices directly by adding them to your compose file in this way:
|
It is possible to pass-through disk devices directly by adding them to your compose file in this way:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
environment:
|
|
||||||
DEVICE2: "/dev/sda"
|
|
||||||
DEVICE3: "/dev/sdb"
|
|
||||||
devices:
|
devices:
|
||||||
- /dev/sda
|
- /dev/disk/by-uuid/12345-12345-12345-12345-12345:/dev/disk2
|
||||||
- /dev/sdb
|
- /dev/disk/by-uuid/45678-45678-45678-45678-45678:/dev/disk3
|
||||||
```
|
```
|
||||||
|
|
||||||
Please note that the device needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume.
|
Please note that the device needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user