[zfs-discuss] zpool import with disk id

Ben King ben.king32 at gmail.com
Thu Jan 21 15:20:34 EST 2016


Ah ok, thanks for the help i may do some testing on this to see if i can
play scramble with them, if thats the way zfs does it that would be very
nice.

Thanks, Ben

On Thu, 21 Jan 2016 at 19:19 Alex 'CAVE' Cernat via zfs-discuss <
zfs-discuss at list.zfsonlinux.org> wrote:

> 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
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20160121/b9125bb9/attachment.html>


More information about the zfs-discuss mailing list