XCP-ng FreeNAS multiple disks as ada0

fortillian

Cadet
Joined
Jan 22, 2024
Messages
1
Dell Vostro desktop with an Intel 10th gen i5 running XCP-ng.

I installed TrueNAS core on a 20GB virtual disk with 4cores and 8GB ram and it went smoothly. After the install completed, I setup PCI passthrough of the SATA controller. TrueNAS sees the controller and the attached 16TB Seagate HDD, but it labeled it as ada0 which is also the label for the 20GB VM virtual boot drive. I tried using a different SATA port 1-4 for the HDD, which didnt help. I am kind of stuck with this one, anyone have an idea or can point me in a direction?

Thanks,



root@truenas[/]# lspci -v
00:05.0 SATA controller: Intel Corporation 400 Series Chipset Family SATA AHCI Controller (prog-if 01 [AHCI 1.0])
Subsystem: Dell Device 09b4
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 36
Memory at f3000000 (32-bit, non-prefetchable)
Memory at f3003900 (32-bit, non-prefetchable)
I/O ports at c250
I/O ports at c258
I/O ports at c220
Memory at f3003000 (32-bit, non-prefetchable)


root@truenas[/]# geom disk list
Geom name: ada0
Providers:
1. Name: ada0
Mediasize: 21474836480 (20G)
Sectorsize: 512
Mode: r1w1e2
descr: (null)
ident: (null)
rotationrate: unknown
fwsectors: 0
fwheads: 0

Geom name: ada0
Providers:
1. Name: ada0
Mediasize: 16000900661248 (15T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
descr: ST16000NT001-3LV101
lunid: 5000c500e71be6eb
ident: ZR70W553
rotationrate: 7200
fwsectors: 63
fwheads: 16


root@truenas[/dev]# gpart show ada0
=> 40 41942960 ada0 GPT (20G)
40 1024 1 freebsd-boot (512K)
1064 41910272 2 freebsd-zfs (20G)
41911336 31664 - free - (15M)


root@truenas[/dev]# camcontrol devlist
<QEMU QEMU DVD-ROM 0.10> at scbus1 target 1 lun 0 (cd0,pass0)
<ST16000NT001-3LV101 EN01> at scbus4 target 0 lun 0 (ada0,pass1)
<AHCI SGPIO Enclosure 2.00 0001> at scbus5 target 0 lun 0 (ses0,pass2)


root@truenas[/dev]# ls
acpi cpuctl3 kbd1 random ttyv7
ada0 crypto kbdmux0 reroot ttyv8
ada0p1 ctty klog ses0 ttyv9
ada0p2 cuau0 kmem snp ttyva
apm cuau0.init led stderr ttyvb
apmctl cuau0.lock mdctl stdin ufssuspend
atkbd0 devctl mem stdout ugen0.1
audit devctl2 mlx5ctl sysmouse ugen0.2
auditpipe devstat netdump tcp_log uinput
bpf dtrace null ttyu0 ums0
bpf0 enc@n3061686369656d30 pass0 ttyu0.init urandom
bpsm0 fd pass1 ttyu0.lock usb
cam fido pass2 ttyv0 usbctl
cd0 full pci ttyv1 xen
console geom.ctl pf ttyv2 xpt0
consolectl gptid pfil ttyv3 zero
cpuctl0 input psm0 ttyv4 zfs
cpuctl1 io ptmx ttyv5
cpuctl2 kbd0 pts ttyv6
 
Top