pool: fast
state: ONLINE
scan: resilvered 1.79M in 00:00:00 with 0 errors on Sun May 11 22:41:04 2025
config:
NAME STATE READ WRITE CKSUM
fast ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
1edb3237-5414-4b26-9332-5a74b9d2d13c ONLINE 0 0 0
8e8826fa-44a5-4814-956a-ee01401226f6 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
a48011cc-aca2-401f-8294-37bc8e9e9d6f ONLINE 0 0 0
2678bfb0-e91b-4510-9bc9-a703fedd48c6 ONLINE 0 0 0
errors: No known data errors
pool: rust
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
rust ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
1b3cd88f-4a12-4ae6-8b04-05318c8519cf ONLINE 0 0 0
8f4ce5b1-4ca5-4eab-b3b5-9b800cf782ab ONLINE 0 0 0
eba7bd0f-4b75-4d42-84fb-eb75eee16a88 ONLINE 0 0 0
fc870b89-2592-4066-96c6-5e4897f1a168 ONLINE 0 0 0
12404dd4-4d87-4038-838c-c60796116136 ONLINE 0 0 0
931437b1-01d1-4ea6-aea0-9993b465fa36 ONLINE 0 0 0
cache
d4cb4922-db0e-4298-8f87-5a5e0eef9d45 ONLINE 0 0 0
i would prefer them to refelct the drives (to make it easier when i have an issue and will be running around with my hair on fire).
yes i know can export the pool and import by-id the issue with that is there are multiple symlinks per drive in /dev/disk/by-id and it sometimes picks silly non-useful ones
i went down the path of /dev/disk/by-vdev with a /etc/zfs/vdev_id.conf route
but it seems that truenas doesn’t ship with the required tools or create the require symlinks
is there a good reason why truenas doesn’t support this?
is there a good alternative workaround?
well i did that before i posted, its no better, as these names are dynamic and can change each boot on linux this is why a hard mapping (using the file) between uuid/guid and a friendly name is prefered and recommened by upstream zfs folks.
i will see if there is or add a feature request
state: ONLINE
scan: resilvered 1.79M in 00:00:00 with 0 errors on Sun May 11 22:41:04 2025
config:
NAME STATE READ WRITE CKSUM
fast ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
/dev/sdh1 ONLINE 0 0 0
/dev/sdi1 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
/dev/nvme10n1p1 ONLINE 0 0 0
/dev/nvme8n1p1 ONLINE 0 0 0
errors: No known data errors
pool: rust
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
rust ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
/dev/sdb1 ONLINE 0 0 0
/dev/sdc1 ONLINE 0 0 0
/dev/sdd1 ONLINE 0 0 0
/dev/sde1 ONLINE 0 0 0
/dev/sdf1 ONLINE 0 0 0
/dev/sdj1 ONLINE 0 0 0
cache
/dev/nvme2n1p1 ONLINE 0 0 0
Instead of trying to change the default behaviour of the system why not use something like this to make better sense of the system when its disk identification time.
because i would have no idea how to write an awk statement, or do any coding… and no idea the enclosure path existed
but you made a nice suggestions and with some chatgpt assisted coding later and i now have a script that outputs this (blank zfs details means disk not yet used in ZFS) - so many thanks!