ZFS type of hard disks names support by freebsd

I have written zfs install script for custom partitions. but we have a challenge in the current script it will detect hard disks type(as primary disk) like ada*(iso) and vtbd*(cloud server like digital ocean) since we came across these type of disks only. but when we install OS with custom zfsinstall script in physical machines we are getting diff type of hard disks. can you please tell me how many types of hard disks will support by freebsd
 
There is a classification of GEOM devices in bsdconfig(8) source code :

src/usr.sbin/bsdconfig/share/device.subr
Code:
# CDROM, Disk, Floppy, and USB devices/names
f_cdrom  "cd%d"   "SCSI CDROM drive"
f_cdrom  "mcd%d"  "Mitsumi (old model) CDROM drive"
f_cdrom  "scd%d"  "Sony CDROM drive - CDU31/33A type"
f_disk   "aacd%d" "Adaptec FSA RAID array"
f_disk   "ada%d"  "ATA/SATA disk device"
f_disk   "amrd%d" "AMI MegaRAID drive"
f_disk   "da%d"   "SCSI disk device"
f_disk   "idad%d" "Compaq RAID array"
f_disk   "ipsd%d" "IBM ServeRAID RAID array"
f_disk   "md%d"   "md(4) disk device"
f_disk   "mfid%d" "LSI MegaRAID SAS array"
f_disk   "mlxd%d" "Mylex RAID disk"
f_disk   "twed%d" "3ware ATA RAID array"
f_disk   "vtbd%d" "VirtIO Block Device"
f_floppy "fd%d"   "Floppy Drive unit A"
f_usb    "da%da"  "USB Mass Storage Device"
 
  • Like
Reactions: mtu
Code:
    % man nvme
    ...
    The nvme driver creates controller device nodes in the format /dev/nvmeX
     and namespace device nodes in the format /dev/nvmeXnsY.  Note that the
     NVM Express specification starts numbering namespaces at 1, not 0, and
     this driver follows that convention.
     ...
Now I have to find out what this 'namespace device node' concept is all about.
 
Last edited by a moderator:
for boot partition as primary disk which hard disks names i can refer
like i know ada0, da0 and vtbd0
from those what type of hard disks names i can use as primary partition
 
Back
Top