Re: [zfs-discuss] device name changing

2007-04-26 Thread Ming Zhang
On Fri, 2007-04-27 at 07:53 +1000, James C. McPherson wrote: > Ming Zhang wrote: > > On Fri, 2007-04-27 at 09:25 +1200, Ian Collins wrote: > >> Claus Guttesen wrote: > >> > >>> Hi. > >>> > >>> If I create a zpool with the following command: > >>> > >>> zpool create tank raidz2 da0 da1 da2 da3 da4 d

Re: [zfs-discuss] device name changing

2007-04-26 Thread Ming Zhang
On Thu, 2007-04-26 at 14:50 -0700, Eric Schrock wrote: > On Thu, Apr 26, 2007 at 05:46:36PM -0400, Ming Zhang wrote: > > > > one thing i would guess is that the device id will keep the same and be > > used as final proof while path name is only used as a clue. > > > > The devid is the preferred

Re: [zfs-discuss] device name changing

2007-04-26 Thread James C. McPherson
Ming Zhang wrote: On Fri, 2007-04-27 at 09:25 +1200, Ian Collins wrote: Claus Guttesen wrote: Hi. If I create a zpool with the following command: zpool create tank raidz2 da0 da1 da2 da3 da4 da5 da6 da7 and after a reboot the device names for some reason are changed so da2 and da5 are swapp

Re: [zfs-discuss] device name changing

2007-04-26 Thread Darren Dunham
> zpool create tank raidz2 da0 da1 da2 da3 da4 da5 da6 da7 > > and after a reboot the device names for some reason are changed so da2 > and da5 are swapped, either by altering the LUN setting on the storage > or by switching cables/swapping disks etc.? > > How will zfs handle that? Will it simply

Re: [zfs-discuss] device name changing

2007-04-26 Thread Eric Schrock
On Thu, Apr 26, 2007 at 05:46:36PM -0400, Ming Zhang wrote: > > one thing i would guess is that the device id will keep the same and be > used as final proof while path name is only used as a clue. > The devid is the preferred method of finding devices. The path is used as a secondary measure.

Re: [zfs-discuss] device name changing

2007-04-26 Thread Ming Zhang
On Fri, 2007-04-27 at 09:25 +1200, Ian Collins wrote: > Claus Guttesen wrote: > > > Hi. > > > > If I create a zpool with the following command: > > > > zpool create tank raidz2 da0 da1 da2 da3 da4 da5 da6 da7 > > > > and after a reboot the device names for some reason are changed so da2 > > and da

Re: [zfs-discuss] device name changing

2007-04-26 Thread Ian Collins
Claus Guttesen wrote: > Hi. > > If I create a zpool with the following command: > > zpool create tank raidz2 da0 da1 da2 da3 da4 da5 da6 da7 > > and after a reboot the device names for some reason are changed so da2 > and da5 are swapped, either by altering the LUN setting on the storage > or by s