Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16811333ybl; Wed, 1 Jan 2020 14:28:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyVqe4teynQdEiF0vTsP8eh1Pr0hBTdszVvOaZO9NGSjcXIB1S1paj6PWiSyH1yZLP3vGji X-Received: by 2002:a05:6830:1ecf:: with SMTP id c15mr46104580otj.65.1577917710434; Wed, 01 Jan 2020 14:28:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577917710; cv=none; d=google.com; s=arc-20160816; b=yIIaaOwfIwi31vrtyVmjJnCvzIdAhVv0Vj8UI8nYqSJBUU46TlunlUieYlXAqe/a3M ROwwF6kUhzbp3VqNDhxcqZRn/GmFIV8ZiODyyeHai/3j0L+AgIA72mUO+0/VTRYR+IP0 WD+JkG3tiwUzpkQ3dLIvOMUIf8wlq/CTVZO0waNs3fXIhJUw1oRYmOju3xMk+0n+UKD5 e20XWzl8/nInuKesfCvMYCPi8+geE8e3D1whjNseH0u45AyzUI+jSFle8FODt/weCCir iTFWQzhYv2xpK/mclpSfhvvTSB0/s8lBMjF+7aUJEBt1IRMOr8QOX/47L1K4hJeMI1hL d78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UKYzkJmn43x5CDYs8QtDG9L2pvD3Vr420sYEsSqBq+w=; b=JCUy5ohAXy2sV/0znp0fQHK0CnCABH5S5CRHym/wU7NK61hqCUfpeED31NJ+lO/Neb Ds5x3Uohnxyy+FP0kAIFWZzt+jF7kMlASFHepynqPG9nnuTVfhWuda+DFfP7KvEFpXTr KOEvW3UlF4cySksQ8zt2vfsH4Skz4ikwsUAo/2XjMM++5os3kw0OMgpO529H4EbBrpkP ksW8GBVSa9xVUVPCMCCffz+sazuTlhosga/SXygXkjHS+ogvQXsMB5n8/oTyIgMXlPIm QrlVv5XPuBrWFAlm8iKTPN64qxlr2fF4QtVDFPb1jdKgx3XJUtGLWHsdBexvwX2mnbzJ CEyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pp2EwJl6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si22188975otn.69.2020.01.01.14.28.19; Wed, 01 Jan 2020 14:28:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pp2EwJl6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727522AbgAAW0r (ORCPT + 99 others); Wed, 1 Jan 2020 17:26:47 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:37710 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727496AbgAAW0p (ORCPT ); Wed, 1 Jan 2020 17:26:45 -0500 Received: by mail-pj1-f65.google.com with SMTP id m13so2574327pjb.2; Wed, 01 Jan 2020 14:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UKYzkJmn43x5CDYs8QtDG9L2pvD3Vr420sYEsSqBq+w=; b=Pp2EwJl63ahhLhtXbpN+WK09YsZuRYDOAILFXVLQ5q4UvREamZBJGhnJMo/rRaJS25 /aKCJsm6MssSAtPZxxUDkpBnf0nxDGllG5LmoqZVzdWxA7lW/gUJ7hfjfEfMDk3wtEqu KDKsQyIUl+sIHLU4rHTdzqG0Y/PJh5BgVmuyAei8X6+Z1Q53E7wESA0qFGKXSoqeMbDO Xo4fJeBE+LrmlK2HWJGBQKRP4eG/foeyIJGUOqJW4YMakMmEu4TTHwNJoW4OcSEXxm8L btlRGzo12qe1lZGwl97fXle7c6SVqWtnXCeiNUWsOBMvrQeUV61rNd8jVcVSrJG7IYAu xsJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UKYzkJmn43x5CDYs8QtDG9L2pvD3Vr420sYEsSqBq+w=; b=MRwiicN1bJ0py0t5QH/HxVD59j/KyaDZAroyPnFxruJqWApNBjGSxckfwdOiOER+Gw TF8XZkHO0y5zSfpye6oq9t9GflGwlwaOSPR+s+GT3waoPq0P+Gni6+visPk7Gu8nntRx KDs6jdaikSu8OJbAR+rEE+a58Z3PGSHJBWg3zEogkgGwi8fh2i6vxUsDRrelHJoNh+do E1eOdraaBbbpQ+7H2DC4LkPp4dhroh1CO1EfyJbKfWpEuqlFXq/z8mYuEFpf390E7efb 1HY8tXO7n8RzjAhi/2LY4DlGNf3CbS9r8LO2tVNIVi4H5w5sbh46z09jBbPA/3xRMGtR 8gdQ== X-Gm-Message-State: APjAAAWBz6HANG3DsJdzzn1THxzy0VWQFMxM9VXKc327XhwHRP6GJbPF GAzPS/qQWRq7d1rKovZCW/s= X-Received: by 2002:a17:90a:d50:: with SMTP id 16mr15930090pju.117.1577917605044; Wed, 01 Jan 2020 14:26:45 -0800 (PST) Received: from localhost.localdomain ([2804:14d:72b1:8920:da15:c0bd:33c1:e2ad]) by smtp.gmail.com with ESMTPSA id o2sm8601008pjo.26.2020.01.01.14.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2020 14:26:44 -0800 (PST) From: "Daniel W. S. Almeida" X-Google-Original-From: Daniel W. S. Almeida To: mchehab+samsung@kernel.org, corbet@lwn.net Cc: "Daniel W. S. Almeida" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH v3 6/8] Documentation: nfs: convert pnfs-block-server to ReST Date: Wed, 1 Jan 2020 19:26:13 -0300 Message-Id: X-Mailer: git-send-email 2.24.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Daniel W. S. Almeida" Convert pnfs-block-server.txt to ReST and move it to admin-guide. Content remains mostly unchanged. Signed-off-by: Daniel W. S. Almeida --- Documentation/admin-guide/nfs/index.rst | 1 + .../nfs/pnfs-block-server.rst} | 25 +++++++++++-------- 2 files changed, 16 insertions(+), 10 deletions(-) rename Documentation/{filesystems/nfs/pnfs-block-server.txt => admin-guide/nfs/pnfs-block-server.rst} (80%) diff --git a/Documentation/admin-guide/nfs/index.rst b/Documentation/admin-guide/nfs/index.rst index c90fd5ebc640..f3bfd0f5a362 100644 --- a/Documentation/admin-guide/nfs/index.rst +++ b/Documentation/admin-guide/nfs/index.rst @@ -10,4 +10,5 @@ NFS nfs-rdma nfsd-admin-interfaces nfs-idmapper + pnfs-block-server diff --git a/Documentation/filesystems/nfs/pnfs-block-server.txt b/Documentation/admin-guide/nfs/pnfs-block-server.rst similarity index 80% rename from Documentation/filesystems/nfs/pnfs-block-server.txt rename to Documentation/admin-guide/nfs/pnfs-block-server.rst index 2143673cf154..b00a2e705cc4 100644 --- a/Documentation/filesystems/nfs/pnfs-block-server.txt +++ b/Documentation/admin-guide/nfs/pnfs-block-server.rst @@ -1,4 +1,6 @@ +=================================== pNFS block layout server user guide +=================================== The Linux NFS server now supports the pNFS block layout extension. In this case the NFS server acts as Metadata Server (MDS) for pNFS, which in addition @@ -22,16 +24,19 @@ If the nfsd server needs to fence a non-responding client it calls /sbin/nfsd-recall-failed with the first argument set to the IP address of the client, and the second argument set to the device node without the /dev prefix for the file system to be fenced. Below is an example file that shows -how to translate the device into a serial number from SCSI EVPD 0x80: +how to translate the device into a serial number from SCSI EVPD 0x80:: -cat > /sbin/nfsd-recall-failed << EOF -#!/bin/sh + cat > /sbin/nfsd-recall-failed << EOF -CLIENT="$1" -DEV="/dev/$2" -EVPD=`sg_inq --page=0x80 ${DEV} | \ - grep "Unit serial number:" | \ - awk -F ': ' '{print $2}'` +.. code-block:: sh -echo "fencing client ${CLIENT} serial ${EVPD}" >> /var/log/pnfsd-fence.log -EOF + #!/bin/sh + + CLIENT="$1" + DEV="/dev/$2" + EVPD=`sg_inq --page=0x80 ${DEV} | \ + grep "Unit serial number:" | \ + awk -F ': ' '{print $2}'` + + echo "fencing client ${CLIENT} serial ${EVPD}" >> /var/log/pnfsd-fence.log + EOF -- 2.24.1