Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ZFS vs. wedges



Disclaimer:  I'm actually using 9.0_STABLE as of today (26 July), not -current, but I've been told most ZFS stuff should be pulled up.


I have a couple disks on a new system, both labeled with GPT - and I'm trying to use one for ZFS.  I created a fbsd-zfs partition on ld1, and did 'zpool create tank /dev/dk4' - all was fine and dandy until I rebooted.  On reboot, dk4 became dk0, and I wound up with a corrupt zpool because the underlying device was wrong.


So, I destroyed the pool, did a 'zpool import -f tank' and all was well.  Then I rebooted AGAIN, and dk0 became dk4 again - and no zpool.  Here's what it looks like:

  pool: tank
 state: UNAVAIL
status: One or more devices could not be used because the label is missing
        or invalid.  There are insufficient replicas for the pool to continue
        functioning.
action: Destroy and re-create the pool from
        a backup source.
   see: http://illumos.org/msg/ZFS-8000-5E
  scan: none requested
config:

        NAME                 STATE     READ WRITE CKSUM
        tank                 UNAVAIL      0     0     0
          69849662390552237  UNAVAIL      0     0     0  was /dev/dk0


... if I 'zpool destroy tank' and 'zpool import -f tank', it should find it OK again, but this kinda sucks.  :)

Should I have created the pool differently?




Home | Main Index | Thread Index | Old Index