My new FreeBSD 10.2 server consists of one SSD for the base system, several HDDs for data storage and a hot swap bay which I use for backups. All drives are encrypted with geli and I use ZFS on all internal disks. I have written a small script to automatically attach encrypted disk, import ZFS pools etc.. The problem is that as soon as I start my server with a disk in the hot swap bay the device numbering changes (e.g. /dev/ada5 becomes /dev/ada6 and the HDD in the bay gets /dev/ada5).
I have already figured out, that all my storage disks also appear as /dev/diskid/DISK-<disk serial> and I can use them as a unique identifier to import the ZFS pool. But... Does someone has an idea why I only see my storage disks and not my SSD in /dev/diskid/*?
I have a script to unmount all storage disks and put these drives in standy-by mode to save energy (
I have already figured out, that all my storage disks also appear as /dev/diskid/DISK-<disk serial> and I can use them as a unique identifier to import the ZFS pool. But... Does someone has an idea why I only see my storage disks and not my SSD in /dev/diskid/*?
I have a script to unmount all storage disks and put these drives in standy-by mode to save energy (
camcontrol standby /dev/adaX
). The problem is that it doesn't work with "diskid"-identifiers. camcontrol standby /dev/diskid/DISK-...
gives me the error message camcontrol: cam_get_device: unable to find device unit number. Is there a unique disk identifier which I can use with camcontrol
?