Michael Schuster - Sun Microsystems
2006-Aug-17 09:49 UTC
[zfs-discuss] zpool status inconsistent after user error?
Hi, IHAC who is simulating disk failure and came across behaviour which seems wrong: 1. zpool status -v pool: data state: ONLINE scrub: resilver completed with 0 errors on Thu Aug 10 16:55:22 2006 config: NAME STATE READ WRITE CKSUM data ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 ONLINE 0 0 0 2. zpool offline data c1t3d0 zpool status -v: NAME STATE READ WRITE CKSUM data DEGRADED 0 0 0 mirror DEGRADED 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 OFFLINE 0 0 0 !! this because the following cfgadm -c unconfigure would refuse to work !! otherwise. Cust will retest with cfgadm -f .. 3. cfgadm -c unconfigure c1::dsk/c1t3d0 4. zpool online data c1t3d0 zpool status -v: NAME STATE READ WRITE CKSUM data DEGRADED 0 0 0 mirror DEGRADED 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 UNAVAIL 0 0 0 cannot open 5. cfgadm -c configure c1::dsk/c1t3d0 6. zpool status -v pool: data state: ONLINE scrub: resilver completed with 0 errors on Thu Aug 10 17:04:42 2006 config: NAME STATE READ WRITE CKSUM data ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 ONLINE 0 0 0 errors: No known data errors !! note: c1t3d0 is shown online; also note the resilver timestamp - it has !! changed from the first "status -v" output. !! but when cust now tries to offline the other mirror half, he !! gets an error: 7. zpool offline data c1t2d0 cannot offline c1t2d0: no valid replicas !! cust is aware that the order of commands may not be "orthodox", but !! still is worried that although zpool status says ''everything online'', !! he cannot offline the other mirror half. Comments? Suggestions? RTFMs? TIA Michael -- Michael Schuster (+49 89) 46008-2974 / x62974 visit the online support center: http://www.sun.com/osc/ Recursion, n.: see ''Recursion''