Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13789334ybl; Sun, 29 Dec 2019 20:57:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwHLw64eamBtIygF8vbPaVQf3qxqGsriWQTsJjTjhq7ZRol8tydo+gyt4G73C0amRGyXupN X-Received: by 2002:a05:6830:1248:: with SMTP id s8mr71549979otp.202.1577681873174; Sun, 29 Dec 2019 20:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577681873; cv=none; d=google.com; s=arc-20160816; b=E2bS3UQepFDUdcCKwnZuWVVtPRSpOlLHscPnqJ28wLp8lM75BbN91KHWisphSZKEfN 3QKwhIJmaslAJ/q992UqOO0GUzDwnQFMhr2j3T3JksYVyv3nWbzKUslkLvQTM0bY+hC3 SkClEEnp5X0H6H7n6ZkIwuDNIsLbMftdhR/hVuKjh8waHsd0olrXG9HiTxzv/HQHYntQ Vqqe/XAVUWzPKQYNs1YGT8dvWuJJEcqnNyn3PMsmwIvaXe8tweijnk21h1DzSB+m7+4X jfF0HvHFcMrmhPluHRrRTa8C1G7xSUreF76xIoasfstw8jACK6EbYImDrrYlLi56k7gF PSfQ== 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=TUZbZHn+6eLZ4P1V447WWadn41SRZ9NMsqi68X6PZQtw1VWMuAgFILHVAoM72FI3+r QrbdbQ8JIWs4c9OVN2AHBmSidKcLQnHB40N8/AmlczA+A3oKV1Xg717/hPj6uFDqYpl0 qpcI/GpcVIbwFUjjfYGruTib3TLGFS41bZy4RRIxO7zOfJXEFGt8VoCoLjKdtdNtYCUH GbKKDH8YO6pL9rRb6oRG4FmkNtl5x0rUVCi7VN382hGx7O5ESUG2IZT58U7jr2rmmoYK /0BmYFISWiKRC6wAWumt+GaXDTNSV1kD6WkELK/z0CrdnY/7UNQWoYEPdVosC1M570vH vljg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KqyeeOAS; 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 j18si22966275otq.275.2019.12.29.20.57.42; Sun, 29 Dec 2019 20:57:53 -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=KqyeeOAS; 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 S1727230AbfL3E4j (ORCPT + 99 others); Sun, 29 Dec 2019 23:56:39 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44822 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727079AbfL3E4i (ORCPT ); Sun, 29 Dec 2019 23:56:38 -0500 Received: by mail-pl1-f194.google.com with SMTP id az3so14162618plb.11; Sun, 29 Dec 2019 20:56:37 -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=KqyeeOASvfyy32tYw5yo/OLxFTEbzNzO8X26K9EbBduFJRUFgGKc+EzI5NstL17vj7 EQ3BSdovcPcfWkdl2AmUaYw3xld9d2b3Db7BZMddlP1dpkCZE9nK9rRt4LlVsTUHRvmO 1wvHTbA8y4SrXZ2OhsSV1pOWlLnoMKMC3UJBE6lXHn4fGDqjjYrdyUog+rClsphZ+vZ3 tu5/ugCa805B+1XlVBAHoCysAvi/dvN5sfc3+2ou5ph/rEC2So79uQwJHVc5YeJO6QY8 piza+H/DHRqgzHZsHi1xpTYvSgtOD1NaRCSCy8LdOHikOC4UZMe+OXnGMEYpfxosyORv 0DSw== 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=I/YMKC65jHESOPPtRxfYcMbeGcx1iTf7EkGZZ/D+2r4T7D8MzUAYV+y+fJj23ijKWe OU8aota/cckfOaReO9GdMUWKRfiPURHhFq0dx+23YoRbsybIXtGMQr3CMSG9QaJOYTif wFVjpTWS5RCqeARBv47YDn1xl4baMAIcty0/RMyzlE2TctsNUNxAWQN1wI2h56u/M13V 0vp6XSk4eCaBxEeZkT1wl47J1SLgkeKtlY+WfXvzl6jqe3aqMS7bl3WyH6rgZt3nkXQu xgTvVyKkoOnMkgwKuJU+yETHa7iC7ulKw0wUxRRvzsxe7MScYaV/EuifQ4/veS3LtNGj IezA== X-Gm-Message-State: APjAAAXwo2CBkSncM1lYjxXfE+4eVdZAETV71GQk/TUNTmjgfHrXL6BO NY+ZZFf/cEzog+VSzsTI6BA= X-Received: by 2002:a17:90a:2486:: with SMTP id i6mr45605013pje.9.1577681796767; Sun, 29 Dec 2019 20:56:36 -0800 (PST) Received: from localhost.localdomain ([2804:14d:72b1:8920:da15:c0bd:33c1:e2ad]) by smtp.gmail.com with ESMTPSA id b1sm22373189pjw.4.2019.12.29.20.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 20:56:36 -0800 (PST) From: "Daniel W. S. Almeida" X-Google-Original-From: Daniel W. S. Almeida To: corbet@lwn.net, mchehab+samsung@kernel.org 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 v2 6/8] Documentation: nfs: convert pnfs-block-server to ReST Date: Mon, 30 Dec 2019 01:56:00 -0300 Message-Id: <549bf486ec209a1e119b6e00b05f7034bf98b8fd.1577681164.git.dwlsalmeida@gmail.com> 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