Print this page
3818 zpool status -x should report pools with removed l2arc devices
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Reviewed by: George Wilson <gwilson@zfsmail.com>

@@ -20,10 +20,11 @@
  */
 
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2012 by Delphix. All rights reserved.
+ * Copyright (c) 2013 Steven Hartland. All rights reserved.
  */
 
 /*
  * This file contains the functions which analyze the status of a pool.  This
  * include both the status of an active pool, as well as the status exported

@@ -148,10 +149,20 @@
                     vs->vs_write_errors +
                     vs->vs_checksum_errors))
                         return (B_TRUE);
         }
 
+        /*
+         * Check any L2 cache devs
+         */
+        if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_L2CACHE, &child,
+            &children) == 0) {
+                for (c = 0; c < children; c++)
+                        if (find_vdev_problem(child[c], func))
+                                return (B_TRUE);
+        }
+
         return (B_FALSE);
 }
 
 /*
  * Active pool health status.