From owner-freebsd-fs@FreeBSD.ORG Sat Dec 3 09:53:53 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BBEE106566C for ; Sat, 3 Dec 2011 09:53:53 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 314DB8FC08 for ; Sat, 3 Dec 2011 09:53:52 +0000 (UTC) Received: by eekc13 with SMTP id c13so2856646eek.13 for ; Sat, 03 Dec 2011 01:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=HbKUMzkIynlWB1OsglW1RjIfZ3Y2LS/9tA4Vysw8rVI=; b=KYNPESCYAYnxdAwT0nQV8C38xj5YWwfKnt7l7NXSEvC63lTIiH9y75V6wUrF0c8/tn jBA2j8h4yG+ILyzBg9piAjl+Y3lQcxEniV8asQYN4CKVsF9wZzwDbOzY/1pQxBxeO2B0 jeIGkMdUwZP0eENToY2sSRnLi4+QTtq7iOnsU= Received: by 10.14.30.134 with SMTP id k6mr135198eea.59.1322906032065; Sat, 03 Dec 2011 01:53:52 -0800 (PST) Received: from [192.168.1.12] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPS id 65sm11639482eeg.8.2011.12.03.01.53.51 (version=SSLv3 cipher=OTHER); Sat, 03 Dec 2011 01:53:51 -0800 (PST) Message-ID: <4ED9F1A9.2070103@gmail.com> Date: Sat, 03 Dec 2011 10:53:45 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ZFS and autoreplace. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 09:53:53 -0000 Hello all. I noticed that the autoreplace function is not working in FreeBSD. So after some search on the net i believe this has not been implemented. Should ZFS not warn users that put a a spare in the pool that this is NOT a hot spare, and human intervention is needed to put the spare in place. I think that a lot of users could get false sence of secutity. In case of the auto replace, i think the pool must not insert the spare when an administrator sets a drive offline! Only when a drive fails, and goes to UNAVAIL or REMOVED state. For me, and i think others having hot spares is almost an normal thing to have, especially with an advanced system as ZFS. Also does anyone have a script that can do this. My scripting capabilities are as close to non existing.. Secondly devd. Are the entries in /etc/devd.conf accurate? if i see enries in /var/run/devd.pipe, the all look like. !system=ZFS subsystem=ZFS type=misc.fs.zfs.config_sync. the entry's in devd.conf do not contain the subsystem entry. notify 10 { match "system" "ZFS"; match "type" "data"; action "logger -p kern.warn 'ZFS: zpool I/O failure, zpool=$pool error=$zio_err'"; }; should they not contain the following line also? match "subsystem" "ZFS" if i convert the above example to detect a state change , no entry in the log. notify 10 { match "system" "ZFS"; match "type" "resource.fs.zfs.statechange"; action "logger -p kern.warn 'ZFS: State has chaged on , zpool=$pool'"; }; if i add the line match "subsystem" "ZFS" then i get the warning in my /var/log/messages. notify 10 { match "system" "ZFS"; match "subsytem" "ZFS"; match "type" "resource.fs.zfs.statechange"; action "logger -p kern.warn 'ZFS: State has chaged on , zpool=$pool'"; }; And which match type is there for a removed or unavailable drive? Thanks for your patience regards Johan Hendriks