Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1276194ybl; Fri, 10 Jan 2020 15:26:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyqfIPwglhC0Oh2D2lZIhNKV3d56c0ZvG/likFbAu6WGhKWYjYVFBFKGIUnRvn7qFjb/vvz X-Received: by 2002:a9d:3f61:: with SMTP id m88mr4440839otc.56.1578698785371; Fri, 10 Jan 2020 15:26:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578698785; cv=none; d=google.com; s=arc-20160816; b=sVDqWVS+f/75W3VaeQzJNU2Va4ZZN0JmiD69/jcUXjEv4gPoxjZUOrtAhPJa7s+L6q alCrNiFtWO4U2L6OqXnvNIlZzkUxHLKeCa1iFL8BojsdY5x9D/3vZhJOi6MNWpYeskdZ ZjbfNEMdM4bzSU0z+sZgsAM+CR13NV01BJPCTza0d7nzmQBtuIP+/YUTgis5xo/m+lQ6 U9xF7hzlQWxGdq/KmVoARTchwEf+/+6LH3uA56cfV8aZ2cp4HwxFY5UEgHmOZFN3fA3T Rb9T/TUoAO2D0zH8nLSmO+GUVzoJNuVTP0v6Ta4Ta17Fz7ll5n0aQ3LZHkAKA35+suXw A0sQ== 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=Xk8upTGYpLiwWJz4OqX3lOVzD+11JcT9lOysezL8+cQ=; b=CU4naXKjKqJV75WRAQIrUUBS6wUF2GSV+0hB16ETtLJk33OCyiwe/us3lnQz71+qpN QXV2kHsz0gnc3Q+e27Qls9C2rHGMAX0Rsy1Iehi2euggSE0npQzYKujiZCYSrrl6fo0U ItVZuVn82ouEB5DDv//p/3gr+gkgLoL9lyV3u3Pzs5m8y1fYUVKuuc0FMGrQnyPfrTWr L87PwIayeCrlELdGu3UcJDJa2KYBhlzxCH9uSuUtdanLnzlc3shcDy3cjndgqflVJt7X JJP8RHyGL3cORyDTAl1GgJ3CH+iTKYs95ZvS9CaXWV4eOyoKX99ec3UgzHdPmuWTM4Zn ex1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K1Z059DA; 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 l17si2258909otk.218.2020.01.10.15.26.14; Fri, 10 Jan 2020 15:26:25 -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=K1Z059DA; 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 S1727783AbgAJXZL (ORCPT + 99 others); Fri, 10 Jan 2020 18:25:11 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38414 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727744AbgAJXZH (ORCPT ); Fri, 10 Jan 2020 18:25:07 -0500 Received: by mail-qt1-f194.google.com with SMTP id n15so3545190qtp.5; Fri, 10 Jan 2020 15:25:07 -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=Xk8upTGYpLiwWJz4OqX3lOVzD+11JcT9lOysezL8+cQ=; b=K1Z059DAsEtF0G8X2GilAXpTrtpfymy3K2xd89WFLmI8MhCCbvRX01MVt5p59J8Nm5 AEa8rNWj7NB6ktyH/gdpkpPNq9QfRMgHKpikuMQ6HRca7c8zN63TSdia5eE7+K5zTw0u VoeE5FvpnAEjbER2upOqoPf7AlbgXCT86K92OlhoMYfspl0XZ+RKH86DJM3Od34vUKmR pEgIR0AJCfumcrqIg1s+13RQ84aK+8SIHhpABIMn7MkMIpE/5HgaH7GYlOhoa+GEt48I J9hIcvk58U06zGyR1gPDtn4c1GPiKf2vdmM+luR6Eql6CZZ62ThNKBr5/1lseeSiQekI pNNQ== 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=Xk8upTGYpLiwWJz4OqX3lOVzD+11JcT9lOysezL8+cQ=; b=Q+FTFvhGrvUzhp2/FtfDCg7bSiKzsVZtqZpK1JIL1M7ZPMTMI9IXzqGlYioiZ2BXQq LYhj+Jwsv5WdFOJt3IaxamOpk4Vq9Si6l4JTDOsk8FB3iK+tAuKcajr2lbG4jvd4431C +Yef6ypFJlfGtdgcL7Q5bfTAiTMrg3dwH/zN5Z2CgseeWfEVhlJUGqgOQ2I2xRzYr8Pd J6SG3RHEUk+6RfiYgCI8yJEcr3ou3ozDFA+T4Zs8g2ur2szPW1Cw1NuZQax2m1wQKNGx j3heQV5BFWji3+zA8isqWKihALiwo31azIyOMh4P17KJvw5HroWZh1bGBa0p4Y9HSiko jaCA== X-Gm-Message-State: APjAAAWoVtgIZrvopOm346zOpKGoViVP+x7wlVWfbYv5emibFWt44Czq VkbPLz/bF/IYvY7auZMLm+s= X-Received: by 2002:aed:3f32:: with SMTP id p47mr4786924qtf.374.1578698706848; Fri, 10 Jan 2020 15:25:06 -0800 (PST) Received: from localhost.localdomain ([2804:14d:72b1:8920:a2ce:f815:f14d:bfac]) by smtp.gmail.com with ESMTPSA id i2sm1774752qte.87.2020.01.10.15.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 15:25:06 -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 v4 7/9] Documentation: nfs: convert pnfs-block-server to ReST Date: Fri, 10 Jan 2020 20:24:29 -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 8376d5225fc2..365f42a611a4 100644 --- a/Documentation/admin-guide/nfs/index.rst +++ b/Documentation/admin-guide/nfs/index.rst @@ -10,3 +10,4 @@ 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