Користувальницькькі налаштування

Налаштування сайту


freebsd:zfs_monitoring

ZFS. Мониторинг состояния.

http://forums.freenas.org/showthread.php?2520-ZFS-Mirror-Disk-Degraded-How-to-Rebuilding

http://www.sysadmin-cookbook.net/zfs/

http://jsosic.wordpress.com/2013/01/01/expanding-zfs-zpool-raid/

# zpool status
  pool: zroot
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
	the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: none requested
config:

	NAME                     STATE     READ WRITE CKSUM
	zroot                    DEGRADED     0     0     0
	  mirror-0               DEGRADED     0     0     0
	    9461134400946846493  UNAVAIL      0     0     0  was /dev/gpt/disk11
	    gpt/disk01           ONLINE       0     0     0

errors: No known data errors

После ребута

zpool status
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
	attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
	using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: resilvered 1011M in 0h0m with 0 errors on Sun May 12 00:34:24 2013
config:

	NAME            STATE     READ WRITE CKSUM
	zroot           ONLINE       0     0     0
	  mirror-0      ONLINE       0     0     0
	    gpt/disk11  ONLINE       0     0     7
	    gpt/disk01  ONLINE       0     0     0

errors: No known data errors
zpool scrub zroot
root@vw2:/usr/home/olexande # zpool status -x
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: scrub in progress since Sun May 12 00:35:06 2013
        555M scanned out of 55.6G at 37.0M/s, 0h25m to go
        0 repaired, 0.97% done
config:

        NAME            STATE     READ WRITE CKSUM
        zroot           ONLINE       0     0     0
          mirror-0      ONLINE       0     0     0
            gpt/disk11  ONLINE       0     0     7
            gpt/disk01  ONLINE       0     0     0

errors: No known data errors

Загруженность

zpool iostat
               capacity     operations    bandwidth
pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zroot       55.6G   172G  1.20K     49  19.4M   116K

Позже

zpool status -x
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: scrub in progress since Sun May 12 00:35:06 2013
        6.53G scanned out of 55.6G at 42.9M/s, 0h19m to go
        0 repaired, 11.74% done
config: 

        NAME            STATE     READ WRITE CKSUM
        zroot           ONLINE       0     0     0
          mirror-0      ONLINE       0     0     0
            gpt/disk11  ONLINE       0     0     7
            gpt/disk01  ONLINE       0     0     0

errors: No known data errors
zpool status -x
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: scrub in progress since Sun May 12 00:35:06 2013
        37.6G scanned out of 55.6G at 64.2M/s, 0h4m to go
        0 repaired, 67.63% done
config:

        NAME            STATE     READ WRITE CKSUM
        zroot           ONLINE       0     0     0
          mirror-0      ONLINE       0     0     0
            gpt/disk11  ONLINE       0     0     7
            gpt/disk01  ONLINE       0     0     0

errors: No known data errors
zpool status -x
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: scrub repaired 0 in 0h15m with 0 errors on Sun May 12 00:50:21 2013
config:

        NAME            STATE     READ WRITE CKSUM
        zroot           ONLINE       0     0     0
          mirror-0      ONLINE       0     0     0
            gpt/disk11  ONLINE       0     0     7
            gpt/disk01  ONLINE       0     0     0

errors: No known data errors
zpool status -x
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: scrub repaired 0 in 0h15m with 0 errors on Sun May 12 00:50:21 2013
config:

        NAME            STATE     READ WRITE CKSUM
        zroot           ONLINE       0     0     0
          mirror-0      ONLINE       0     0     0
            gpt/disk11  ONLINE       0     0     7
            gpt/disk01  ONLINE       0     0     0

errors: No known data errors
root@vw2:/usr/home/olexande # zpool clear zroot
root@vw2:/usr/home/olexande # zpool status -x
all pools are healthy
root@vw2:/usr/home/olexande # zpool clear 
missing pool name
usage:
        clear [-nF] <pool> [device]
root@vw2:/usr/home/olexande # zpool status -x
all pools are healthy

root@vw2:/usr/home/olexande # zpool status 
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h15m with 0 errors on Sun May 12 00:50:21 2013
config:

        NAME            STATE     READ WRITE CKSUM
        zroot           ONLINE       0     0     0
          mirror-0      ONLINE       0     0     0
            gpt/disk11  ONLINE       0     0     0
            gpt/disk01  ONLINE       0     0     0

errors: No known data errors

freebsd/zfs_monitoring.txt · Востаннє змінено: 2013/05/10 16:36 (зовнішнє редагування)

Якщо не вказано інше, вміст цієї Вікі підпадає під дію такої ліцензії: CC Attribution 4.0 International
CC Attribution 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki