There is a single-disk ZFS pool. Now I want to add another ssd to the pool and create a mirror. zpool
pool: datapool state: ONLINE scan: scrub repaired 0B in 00:00:03 with 0 errors on Sun Feb 13 00:24:04 2022 config:NAME STATE READ WRITE CKSUM datapool ONLINE 0 0 0 usb-WDC_WDS_100T2B0A-00SM50_98765432100C-0:0 ONLINE 0 0 0</pre>
When I look at the disks by-id
ls -l /dev/disk/by-id total 0 .... lrwxrwxrwx 1 root root 9 Mar 7 19:07 usb-WDC_WDS_100T2B0A-00SM50_98765432100C-0:0 -> ../../sdc lrwxrwxrwx 1 root root 10 Feb 27 07:37 usb-WDC_WDS_100T2B0A-00SM50_98765432100C-0:0-part1 -> ../../sdd1 lrwxrwxrwx 1 root root 10 Feb 27 07:37 usb-WDC_WDS_100T2B0A-00SM50_98765432100C-0:0-part9 -> ../../sdd9 ....Note that /dev/sdc by id = /dev/sdd by id. I can't add a device to the pool this way
zpool attach datapool /dev/disk/by-id/old-drive-id /dev/disk/by-id/your-new-drive-idzpool attach datapool /dev/disk/by-id/usb-WDC_WDS_100T2B0A-00SM50_98765432100C-0:0 /dev/disk/by-id/usb-WDC_WDS_100T2B0A-00SM50_98765432100C-0:0The sdc disk is not visible in uuid, partuuid. I only see him in by-path
lrwxrwxrwx 1 root root 9 Mar 7 21:46 pci-0000:00:15.0-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sdc lrwxrwxrwx 1 root root 9 Feb 27 07:37 pci-0000:00:15.0-usb-0:2:1.0-scsi-0:0:0:0 -> ../../sdd lrwxrwxrwx 1 root root 10 Feb 27 07:37 pci-0000:00:15.0-usb-0:2:1.0-scsi-0:0:0:0-part1 -> ../../sdd1 lrwxrwxrwx 1 root root 10 Feb 27 07:37 pci-0000:00:15.0-usb-0:2:1.0-scsi-0:0:0:0-part9 -> ../../sdd9Can I then add a device to the pool this way?
zpool attach datapool /dev/disk/by-path/pci-0000:00:15.0-usb-0:2:1.0-scsi-0:0:0:0 /dev/disk/by-path/pci-0000:00:15.0-usb-0:1:1.0-scsi-0:0:0:0
smartctl -a /dev/sdX
say about the drives, if anything? (eg. serial number and such) – CR. Mar 08 '22 at 02:30smartctl -a /dev/sdc
andsmartctl -a /dev/sdd
The serial number is of course different. How to connect this SSD to the pool? – gusto Mar 08 '22 at 06:50