[zfs-discuss] zpool import with disk id

Alex 'CAVE' Cernat cave at cernat.ro
Thu Jan 21 14:19:37 EST 2016

anyway, AFAIK zfs relies on data written on the hard disks / partitions,
not on the device name
so even you play 'scramble' with your hard disks, zfs will know how to
import the pool

I created a pool using hard disk serial numbers (/dev/disk/by-id/ =
symlinks to /dev/sdX, but now in zpool status are listed as sdX)

On 21/1/2016 9:06 PM, Roger Bell_West via zfs-discuss wrote:
> On Thu, Jan 21, 2016 at 06:59:43PM +0000, Ben King via zfs-discuss wrote:
>> zpool import -d ata-TOSHIBA_DT01ACA200_55380LSAS -d
>> ata-TOSHIBA_DT01ACA200_5537GAGGS -d ata-TOSHIBA_DT01ACA200_55380L5AS -d
>> ata-Samsung_SSD_850_EVO_120GB_S21WNXAG702175J nas1_2
> See the man page:
>            -d dir          Searches for devices or files in dir. The -d option
>                            can be specified multiple times.
> So you need to specify the directory in which the discs live, not the
> devices.
> zpool import -d /dev/disk/by-path/ nas1_2
> will look in /dev/disk/by-path/ for discs that belong in nas1_2.
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss

More information about the zfs-discuss mailing list