Hello, I recently rebooted my workstation and the disk names changed causing my ZFS pool to be unavailable. I did not make any hardware changes? My first question is the obvious? Did I loose my data? Can I recover it? What would cause the names to change? Delay in the order that the HBA brought them up? How can I correct this problem going forward? Thanks - - - JesseJ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20120801/a1686d29/attachment.html>
On Aug 1, 2012, at 11:06, Jesse Jamez <jesse.jamezz at gmail.com> wrote:> Hello, > > I recently rebooted my workstation and the disk names changed causing my ZFS pool to be unavailable. > > I did not make any hardware changes? My first question is the obvious? Did I loose my data? Can I recover it? > > What would cause the names to change? Delay in the order that the HBA brought them up? > > How can I correct this problem going forward? > > Thanks - - - JesseJPerhaps some removable drives caused the change in drive names? Regardless, I believe ZFS stores labels on each disk and is clever enough to figure out what is what even if the operating system name has changed. If I recall correctly, a zpool export (if possible) followed by a zpool import has always corrected this for me. Barring an actual disk failure (which could have failed to enumerate therefore throwing off naming) your data should be safe. --khd (mobile)
On Aug 1, 2012, at 8:04 AM, Jesse Jamez wrote:> Hello, > > I recently rebooted my workstation and the disk names changed causing my ZFS pool to be unavailable.What OS and release?> > I did not make any hardware changes? My first question is the obvious? Did I loose my data? Can I recover it?Yes, just import the pool.> > What would cause the names to change? Delay in the order that the HBA brought them up?It depends on your OS and OBP (or BIOS).> > How can I correct this problem going forward?The currently imported pool configurations are recorded in the /etc/zfs/zpool.cache file for Solaris-like OSes. At boot time, the system will try to import the pools in the cache. If the cache contents no longer match reality for non-root pools, then the safest action is to not automatically import the pool. An error message is displayed and should point to a website that tells you how to correct this (NB, depending on the OS, that URL may or may not exist at Oracle (nee Sun)) -- richard -- ZFS Performance and Training Richard.Elling at RichardElling.com +1-760-896-4422 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20120801/8d7130a2/attachment.html>