Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A60A4B5DBDE for ; Fri, 17 Jun 2011 23:54:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 55630-07 for ; Sat, 18 Jun 2011 02:54:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mail.postgresql.org (Postfix) with ESMTP id CB26FB5DBDD for ; Fri, 17 Jun 2011 23:54:10 -0300 (ADT) Received: from [192.168.1.7] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0Lib0L-1PvhAV1XTB-00cue9; Sat, 18 Jun 2011 04:54:10 +0200 Message-ID: <4DFC1351.2000002@2ndQuadrant.com> Date: Fri, 17 Jun 2011 22:54:09 -0400 From: Greg Smith User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110505 Icedove/3.0.11 MIME-Version: 1.0 To: pgsql-docs@postgresql.org Subject: Re: Small correction in http://www.postgresql.org/docs/9.0/interactive/wal-reliability.html References: <201106171455.45391.achill@matrix.gatewaynet.com> In-Reply-To: <201106171455.45391.achill@matrix.gatewaynet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:jk4M6csE/8Qw5pHO5GGEVAsV/TmvLc4A+Ie8cU1eAXr uLUWbxROrfRCJmxI6lFugKzMcYHhUiDKNJVG64fyoP7rxwr8hW 25iYx06M33dKWzJDUbNI7DG/tE/bR0ir8WK/jsgcFgAMGtFPjr EyXP4pAIWnFjz7/91T1gGOCkJ4oejPouRACrMtT+L0Xfm8uyk1 kUqGu06/WKiIUiCI2A3wA617Pi0ILVU8KiPVk35PDE= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201106/83 X-Sequence-Number: 6857 On 06/17/2011 07:55 AM, Achilleas Mantzios wrote: > It reads : > 'On FreeBSD, IDE drives can be queried using atacontrol, and SCSI drives using sdparm.' > but it should be: > 'On FreeBSD, IDE drives can be queried using atacontrol, and SCSI drives using camcontrol.' > FreeBSD's Common Access Method (CAM) looks to be the preferred driver layer to interrogate. sdparm is available on Linux and FreeBSD, but it's a second-class citizen talking to CAM on the latter. To quote from one of the docs on it, FreeBSD sdparm "SCSI commands are routed through the CAM pass-through interface". Talking directly to it with camcontrol does seem to be the preferred route for some things. However, the UI to sdparm is a bit easier to use when it is available. Actually changing the write cache state with camcontrol requires black magic--you have to construct the right SCSI packet by hand. I can't find any example. Bruce just touched this section of the docs recently, so this part actually reads just: SCSI drives use sdparm. Now. Perhaps the following makes sense: SCSI drives can be queried using camcontrol identify, and the write cache both queried and changed using sdparm when available. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us