Closed neesonqk closed 5 months ago
Very strange problem..
From the logfile it is clear that DSM sees both the disks:
[ 7.639277] sd 9:0:0:0: [sdc] 5860531087 512-byte logical blocks: (3.00 TB/2.73 TiB)
[ 9.201519] sd 10:0:0:0: [sdd] 117231408 512-byte logical blocks: (60.0 GB/55.9 GiB)
It has a /dev/sdc
of 3TB and a /dev/sdd
device of 60GB. So I have no clue why it refuses to mount volume 2 after volume 3 is added.
One reason could be if both disks were clones (with same unique ID) and it that case the Linux kernel inside DSM might reject one of the two. But in your case that is not likely to be the case, because they have different sizes.
So I have no real explanation. And I never experimented with the multiple disk feature myself, but I believe from what other reported that when using disk images (/storage2
etc) it supported multiple additional disks just fine. So why it doesnt do the same with physical disks is a mystery for me.
Can you try two things? First add DEBUG: "Y"
to the compose file and post the QEMU arguments here so we can look if they are correct. And secondly, try to do the same as you did, but now with disk images (/storage2
and /storage3
) and confirm it works okay in that case.
Seems DEBUG:"Y"
gives no difference,
❯ Starting Virtual DSM for Docker v7.12...
❯ For support visit https://github.com/vdsm/virtual-dsm
❯ CPU: Intel Core TM i3 10110U CPU | RAM: 4/16 GB | DISK: 138 GB (ext4) | HOST: 6.1.0-11-amd64...
❯ Host: 2dfba29a695e IP: 172.24.0.2 Gateway: 172.24.0.1 Interface: eth0 MAC: 02:11:32:47:8B:4F
nameserver 127.0.0.11
++ /usr/sbin/dnsmasq --dhcp-range=20.20.20.21,20.20.20.21 --dhcp-host=02:11:32:47:8B:4F,,20.20.20.21,VirtualDSM,infinite --dhcp-option=option:netmask,255.255.255.0 --dhcp-option=option:dns-server,20.20.20.1 --dhcp-option=option:router,20.20.20.1 --address=/host.lan/20.20.20.1
❯ Booting Virtual DSM...
Arguments: -nodefaults -boot strict=on -cpu host,kvm=on,l3-cache=on,migratable=no -smp 1,sockets=1,dies=1,cores=1,threads=1 -m 1G -machine type=q35,usb=off,vmport=off,dump-guest-core=off,hpet=off,accel=kvm -enable-kvm -global kvm-pit.lost_tick_policy=discard -display none -vga none -pidfile /run/shm/qemu.pid -name virtual-dsm,process=virtual-dsm,debug-threads=on -monitor telnet:localhost:7100,server,nowait,nodelay -daemonize -D /run/shm/qemu.log -serial pty -device virtio-serial-pci,id=virtio-serial0,bus=pcie.0,addr=0x3 -chardev socket,id=charchannel0,host=127.0.0.1,port=12345,reconnect=10 -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=vchannel -netdev tap,ifname=dsm,script=no,downscript=no,id=hostnet0 -device virtio-net-pci,romfile=,netdev=hostnet0,mac=02:11:32:47:8B:4F,id=net0 -object iothread,id=io2 -device virtio-scsi-pci,id=hw-synoboot,iothread=io2,bus=pcie.0,addr=0xa -drive file=/storage/DSM_VirtualDSM_69057.boot.img,if=none,id=drive-synoboot,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on -device scsi-hd,bus=hw-synoboot.0,channel=0,scsi-id=0,lun=0,drive=drive-synoboot,id=synoboot0,rotation_rate=1,bootindex=1 -device virtio-scsi-pci,id=hw-synosys,iothread=io2,bus=pcie.0,addr=0xb -drive file=/storage/DSM_VirtualDSM_69057.system.img,if=none,id=drive-synosys,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on -device scsi-hd,bus=hw-synosys.0,channel=0,scsi-id=0,lun=0,drive=drive-synosys,id=synosys0,rotation_rate=1,bootindex=2 -drive file=/storage/data.img,if=none,id=drive-userdata3,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on -device virtio-scsi-pci,id=hw-userdata3,iothread=io2,bus=pcie.0,addr=0xc -device scsi-hd,bus=hw-userdata3.0,channel=0,scsi-id=0,lun=0,drive=drive-userdata3,id=userdata3,rotation_rate=1,bootindex=3 -drive file=/disk2,if=none,id=drive-userdata4,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on -device virtio-scsi-pci,id=hw-userdata4,iothread=io2,bus=pcie.0,addr=0xd -device scsi-hd,bus=hw-userdata4.0,channel=0,scsi-id=0,lun=0,drive=drive-userdata4,id=userdata4,rotation_rate=1,bootindex=4 -drive file=/disk3,if=none,id=drive-userdata5,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on -device virtio-scsi-pci,id=hw-userdata5,iothread=io2,bus=pcie.0,addr=0xe -device scsi-hd,bus=hw-userdata5.0,channel=0,scsi-id=0,lun=0,drive=drive-userdata5,id=userdata5,rotation_rate=1,bootindex=5 -device virtio-balloon-pci,id=balloon0,bus=pcie.0,addr=0x4 -object rng-random,id=objrng0,filename=/dev/urandom -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pcie.0,addr=0x1c
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.302+ (root@build6) (gcc version 12.2.0 (GCC) ) #69057 SMP Sat Sep 23 21:44:59 CST 2023
[ 0.000000] Command line: root=/dev/sda1 ihd_num=0 netif_num=0 syno_hw_version=VirtualDSM vender_format_version=2 macs=0091498d9a41,0091498d9a42,0091498d9a43,0091498d9a44
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 960, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 1024, xstate_sizes[4]: 64
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x08: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x10: 'MPX CSR'
[ 0.000000] x86/fpu: Enabled xstate features 0x1f, context size is 1088 bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffd0fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003ffd1000-0x000000003fffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000b0000000-0x00000000bfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] extended physical RAM map:
[ 0.000000] reserve setup_data: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] reserve setup_data: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] reserve setup_data: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] reserve setup_data: [mem 0x0000000000100000-0x0000000001df29c7] usable
[ 0.000000] reserve setup_data: [mem 0x0000000001df29c8-0x0000000001df29d7] usable
[ 0.000000] reserve setup_data: [mem 0x0000000001df29d8-0x000000003ffd0fff] usable
[ 0.000000] reserve setup_data: [mem 0x000000003ffd1000-0x000000003fffffff] reserved
[ 0.000000] reserve setup_data: [mem 0x00000000b0000000-0x00000000bfffffff] reserved
[ 0.000000] reserve setup_data: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
[ 0.000000] reserve setup_data: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] reserve setup_data: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] SMBIOS 3.0.0 present.
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] Kernel/User page tables isolation: disabled
[ 0.000000] e820: last_pfn = 0x3ffd1 max_arch_pfn = 0x400000000
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
[ 0.000000] found SMP MP-table at [mem 0x000f5440-0x000f544f] mapped at [ffff8800000f5440]
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] RAMDISK: [mem 0x3fa5a000-0x3ffc0fff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F5280 000014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 0x000000003FFE225E 000034 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 0x000000003FFE208E 0000F4 (v03 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 0x000000003FFE0040 00204E (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACS 0x000000003FFE0000 000040
[ 0.000000] ACPI: APIC 0x000000003FFE2182 000078 (v03 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: MCFG 0x000000003FFE21FA 00003C (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: WAET 0x000000003FFE2236 000028 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:3ffcf001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 3603911264 cycles
[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003ffd0fff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000003ffd0fff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003ffd0fff]
[ 0.000000] ACPI: PM-Timer IO Port: 0x608
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x01df2000-0x01df2fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x01df2000-0x01df2fff]
[ 0.000000] e820: [mem 0x40000000-0xafffffff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 37 pages/cpu @ffff88003f800000 s111896 r8192 d31464 u2097152
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 3f814180
[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 257881
[ 0.000000] Kernel command line: root=/dev/sda1 ihd_num=0 netif_num=0 syno_hw_version=VirtualDSM vender_format_version=2 macs=0091498d9a41,0091498d9a42,0091498d9a43,0091498d9a44
[ 0.000000] Internal HD num: 0
[ 0.000000] Internal netif num: 0
[ 0.000000] Synology Hardware Version: VirtualDSM
[ 0.000000] Vender format version: 2
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Memory: 1012524K/1047996K available (5435K kernel code, 870K rwdata, 1712K rodata, 1008K init, 1556K bss, 35472K reserved, 0K cma-reserved)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
[ 0.000000] NR_IRQS:8448 nr_irqs:256 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] tsc: Detected 2592.000 MHz processor
[ 0.116479] Calibrating delay loop (skipped) preset value.. 5184.00 BogoMIPS (lpj=2592000)
[ 0.117688] pid_max: default: 32768 minimum: 301
[ 0.118364] ACPI: Core revision 20150930
[ 0.119347] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.120301] Security Framework initialized
[ 0.120909] AppArmor: AppArmor initialized
[ 0.121542] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.122469] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.123653] Initializing cgroup subsys io
[ 0.124234] Initializing cgroup subsys memory
[ 0.124885] Initializing cgroup subsys devices
[ 0.125542] Initializing cgroup subsys freezer
[ 0.126218] CPU: Physical Processor ID: 0
[ 0.139985] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.140825] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.141703] Speculative Store Bypass: Vulnerable
[ 0.142348] SRBDS: Mitigation: TSX disabled
[ 0.157144] Freeing SMP alternatives memory: 24K
[ 0.162917] x2apic enabled
[ 0.163507] Switched APIC routing to physical x2apic.
[ 0.165020] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.165929] smpboot: CPU0: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz (family: 0x6, model: 0x8e, stepping: 0xc)
[ 0.167416] Performance Events: generic architected perfmon, full-width counters, Intel PMU driver.
[ 0.168746] ... version: 2
[ 0.169326] ... bit width: 48
[ 0.169898] ... generic registers: 4
[ 0.170467] ... value mask: 0000ffffffffffff
[ 0.171206] ... max period: 00007fffffffffff
[ 0.171946] ... fixed-purpose events: 3
[ 0.172504] ... event mask: 000000070000000f
[ 0.173272] KVM setup paravirtual spinlock
[ 0.174146] x86: Booted up 1 node, 1 CPUs
[ 0.174716] smpboot: Total of 1 processors activated (5184.00 BogoMIPS)
[ 0.175942] devtmpfs: initialized
[ 0.176575] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.177959] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.179133] NET: Registered protocol family 16
[ 0.179864] cpuidle: using governor ladder
[ 0.180463] cpuidle: using governor menu
[ 0.181045] ACPI: bus type PCI registered
[ 0.181616] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.182620] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xb0000000-0xbfffffff] (base 0xb0000000)
[ 0.183882] PCI: MMCONFIG at [mem 0xb0000000-0xbfffffff] reserved in E820
[ 0.184844] PCI: Using configuration type 1 for base access
[ 0.187311] ACPI: Added _OSI(Module Device)
[ 0.187942] ACPI: Added _OSI(Processor Device)
[ 0.188549] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.189211] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.191691] ACPI: Interpreter enabled
[ 0.192222] ACPI: (supports S0 S4 S5)
[ 0.192755] ACPI: Using IOAPIC for interrupt routing
[ 0.193476] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.195933] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.196797] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[ 0.198030] acpi PNP0A08:00: _OSC: platform does not support [PCIeHotplug]
[ 0.199008] acpi PNP0A08:00: _OSC: OS now controls [PME AER PCIeCapability]
[ 0.200139] PCI host bridge to bus 0000:00
[ 0.200723] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.201679] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.202600] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.203652] pci_bus 0000:00: root bus resource [mem 0x40000000-0xafffffff window]
[ 0.204693] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]
[ 0.205742] pci_bus 0000:00: root bus resource [mem 0x100000000-0x8ffffffff window]
[ 0.206811] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.265145] pci 0000:00:1f.0: quirk: [io 0x0600-0x067f] claimed by ICH6 ACPI/GPIO/TCO
[ 0.273603] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 0.274511] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 0.275385] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 0.276276] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 0.277182] ACPI: PCI Interrupt Link [LNKE] (IRQs 5 *10 11)
[ 0.278093] ACPI: PCI Interrupt Link [LNKF] (IRQs 5 *10 11)
[ 0.278997] ACPI: PCI Interrupt Link [LNKG] (IRQs 5 10 *11)
[ 0.279908] ACPI: PCI Interrupt Link [LNKH] (IRQs 5 10 *11)
[ 0.280757] ACPI: PCI Interrupt Link [GSIA] (IRQs *16)
[ 0.281529] ACPI: PCI Interrupt Link [GSIB] (IRQs *17)
[ 0.282291] ACPI: PCI Interrupt Link [GSIC] (IRQs *18)
[ 0.283046] ACPI: PCI Interrupt Link [GSID] (IRQs *19)
[ 0.283926] ACPI: PCI Interrupt Link [GSIE] (IRQs *20)
[ 0.284757] ACPI: PCI Interrupt Link [GSIF] (IRQs *21)
[ 0.285618] ACPI: PCI Interrupt Link [GSIG] (IRQs *22)
[ 0.286445] ACPI: PCI Interrupt Link [GSIH] (IRQs *23)
[ 0.287326] ACPI: Enabled 2 GPEs in block 00 to 3F
[ 0.288773] vgaarb: loaded
[ 0.289298] SCSI subsystem initialized
[ 0.289899] pps_core: LinuxPPS API ver. 1 registered
[ 0.290600] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
I have changed to by using volumes
instead of passing through entire disks as following,
services:
dsm:
container_name: dsm
image: vdsm/virtual-dsm
environment:
DISK_SIZE: "32G"
DEBUG: "Y"
#GPU: "Y"
devices:
- /dev/kvm
#- /dev/disk/by-uuid/e060fd5e-9617-498c-81b3-a18045b78410:/disk2
#- /dev/disk/by-uuid/138c4eb2-7228-4aa2-b5ca-2578fc649109:/disk3
cap_add:
- NET_ADMIN
ports:
- 7777:5000
volumes:
- /var/dsm:/storage
- /home/one/Disks/Disk-D-2700G:/storage2
- /home/one/Disks/Disk60G:/storage3
stop_grace_period: 2m
However, it complains,
❯ Starting Virtual DSM for Docker v7.12...
❯ For support visit https://github.com/vdsm/virtual-dsm
❯ CPU: Intel Core TM i3 10110U CPU | RAM: 4/16 GB | DISK: 138 GB (ext4) | HOST: 6.1.0-11-amd64...
rm: cannot remove '/storage2/data2.img': Structure needs cleaning
❯ ERROR: Not enough free space to create a disk2 of 16G in /storage2, it has only 0 GB available...
❯ ERROR: Please specify a smaller DISK2_SIZE or disable preallocation by setting ALLOCATE=N.
Disk-D-2700G is /dev/disk/by-uuid/e060fd5e-9617-498c-81b3-a18045b78410
Disk60G is /dev/disk/by-uuid/138c4eb2-7228-4aa2-b5ca-2578fc649109
Those two disks are no longer be accessible from the host since been passed to dsm due to the file system type change I guess, When do ls -al
, both show: total 0
Is /home/one/Disks/Disk60G
a directory (just like /var/dsm
)?? Because it doesnt look like it from the output. You can only mount an empty folder as /storage2
, not a file or a device.
I put a softlink to disk as /home/one/Disks/Disk60G
, so I cannot use ...Disk60G directly? I have to create a folder inside and use that folder?
Yes... devices
is for devices and volumes
is for folders
That disk ever passed to DSM directly, it asks to clear the partition before able to create directory...
Ok, I overall understand how it works, just wondering why adding new disks gone away the existing one, it seems like passing entire disk is bit risky.
The purpose of binding devices to /dev/disk1
was never to passthrough real (physical) disks, but to passthrough virtual disks when running the container inside Proxmox or Vmware for example (so that you can manage those image files from the host). For physical disks I cannot think of any good reason to use this passthrough, it doesnt offer any benefits compared to a .img
file.
In any case, I did not want to you to clear the disk or anything, what I thought is that you created two new directories (/var/dsm2
and /var/dsm3
for example) without touching the original disks. Just to see if it made any differences if you used directories or devices.
Ok, I will try to use directories then, and see if it behaves normally and update here once done, thank you.
After changed to directories work, it works very well by far, assume it is the recommended way.
Is there no existing issue for this?
Machine specifications
NUC 11 Generation
Operating system
Debian 12
Docker version
Docker version 24.0.5, build ced0996
Description
Steps:
- /dev/disk/by-uuid/e060fd5e-9617-498c-81b3-a18045b78410:/disk2
, everything worked like a charm./disk2
- /dev/disk/by-uuid/138c4eb2-7228-4aa2-b5ca-2578fc649109:/disk3
/disk2
is gone.Docker compose
Docker log
❯ For support visit https://github.com/vdsm/virtual-dsm ❯ CPU: Intel Core TM i3 10110U CPU | RAM: 4/16 GB | DISK: 138 GB (ext4) | HOST: 6.1.0-11-amd64...
❯ Booting Virtual DSM... ...... [ 7.632727] scsi 9:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 7.639277] sd 9:0:0:0: [sdc] 5860531087 512-byte logical blocks: (3.00 TB/2.73 TiB) [ 7.643171] sd 9:0:0:0: [sdc] Write Protect is off [ 7.647310] sd 9:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 7.662491] sd 9:0:0:0: [sdc] Attached SCSI disk [ 9.154734] scsi host10: Virtio SCSI HBA [ 9.194892] scsi 10:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 9.201519] sd 10:0:0:0: [sdd] 117231408 512-byte logical blocks: (60.0 GB/55.9 GiB) [ 9.210181] sd 10:0:0:0: [sdd] Write Protect is off [ 9.218216] sd 10:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 9.245846] sdd: sdd1 .... ❯ ----------------------------------------------------------- ❯ You can now login to DSM at port 5000 ❯ -----------------------------------------------------------
[ 33.479870] findhostd uses obsolete (PF_INET,SOCK_PACKET) [ 33.597164] fuse init (API version 7.23) [ 46.286233] Synotify use 16384 event queue size [ 47.536728] Synotify use 16384 event queue size
Screenshots (optional)