From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 00:01:32 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 661B0106567A for ; Thu, 27 Nov 2008 00:01:32 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 24FD38FC14 for ; Thu, 27 Nov 2008 00:01:32 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com ([IPv6:2001:4d48:ad51:32:21b:21ff:fe1c:3ce]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id mAR01U7F052901 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Nov 2008 00:01:31 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: hackers@freebsd.org Date: Thu, 27 Nov 2008 00:01:29 +0000 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; amd64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811270001.29378.ken@mthelicon.com> Cc: Subject: Removing zpool log device - 8.0-Current X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2008 00:01:32 -0000 Hello Hackers, I was wondering if anyone knows a work around for this. I have added a log device to one of my zfs pools (it is a unused ATA drive slice that has no activity on it after boot up as most other directories live in there own zfs filing systems). I have added a SSD to the machine and have successfully moved the cache to this device, but wanted to also move the ZIL to another slice on the SSD unit. When I type 'zpool remove PegaBase ar0s1e' I receive the following error: feathers# zpool remove PegaBase ar0s1e cannot remove ar0s1e: only inactive hot spares or cache devices can be removed I know this is a known bug: http://bugs.opensolaris.org/view_bug.do?bug_id=6574286 However, someone mentioned that if you were to flush the ZIL by closing all transactions, you can then remove the device. Does anyone know how this can be done? I have tried the usual fsync, but that dosent seem to flush the zil back to the pool. There seems to be a static amount of information held in the zil and never seems to flush back. Atleast that is how it seems. I would be grateful for any ideas.. Ta Peg