title: ZFS Zpool import changed disk identifier
body: <p>I created a new ZPool on my disk with the <code>zpool create</code> command.</p>
  
  <p>Shortly after that, I read that you should specify the pool-disks by <code>/dev/disk/by-id/</code> and not by the identificator <code>/dev/sda</code> for example.
  I didn't do this on my pool, and now I have a problem:</p>
  
  <p>Because of a new disk, all identifiers changed for the existing disks.</p>
  
  <p>The pool was on <code>/dev/sdb</code>, now is this disk localized on <code>/dev/sdc</code>.</p>
  
  <p>Zfs doesn't realizes this, and it tries to access the existing pool at <code>/dev/sdb</code>, but it isn't there.</p>
  
  <p>through searching the web, I found a possibility to import unmounted zpools: <code>zpool import</code>.</p>
  
  <p>But if I want to import the existing, unavailable pool with <code>zpool import dte</code> ("dte" was the name of the pool), I get the following error:</p>
  
  <pre><code>ms@linuxServer:/# sudo zpool import dte
  cannot import 'dte': pool may be in use from other system
  use '-f' to import anyway
  </code></pre>
  
  <p>If I try with the <code>-f</code> option, I get the following error:</p>
  
  <pre><code>ms@linuxServer:/# sudo zpool import dte -f
  cannot import 'dte': one or more devices is currently unavailable
  </code></pre>
  
  <p>So it really tries to mount <code>/dev/sdb</code>, but this is used.</p>
  
  <p>If I just use <code>zpool import</code> it shows me the following:</p>
  
  <pre><code>ms@linuxServer:/# sudo zpool import
     pool: dte
       id: 12561099924127384920
    state: FAULTED
   status: One or more devices contains corrupted data.
   action: The pool cannot be imported due to damaged devices or data.
          The pool may be active on another system, but can be imported using
          the '-f' flag.
     see: http://zfsonlinux.org/msg/ZFS-8000-5E
   config:
  
          dte                     FAULTED  corrupted data
            ata-TOSHIBA_DT01ACA300_X3N87RPGS  UNAVAIL  corrupted data
  </code></pre>
  
  <p>Does anyone know, how I can tell the zpool-command, that the pool "dte" is located at /dev/sdc and not at /dev/sdb?</p>
  
  <p>I haven't found any possible, usable solution yet.
  Just this one, which didn't really help:</p>
  
  <p><a href="https://groups.google.com/forum/#!topic/zfs-fuse/f4IobTSk_fo" rel="nofollow">Google Groups</a></p>
  
  <p><a href="http://forums.whirlpool.net.au/archive/1588076" rel="nofollow">whirlpool.net</a></p>