From 332a2878456ec0b25a50bd39dcb69b05f5a8fd97 Mon Sep 17 00:00:00 2001 From: Cliff White Date: Mon, 12 Mar 2012 10:10:26 -0700 Subject: [PATCH] LU-1203 Replace 'mds' with 'mdt' in root_squash section Fix parameter documentation for root_squash Addressed Richards correction Signed-off-by: cliffw@whamcloud.com Change-Id: I99d1c2df310406848eb6096af84fb8fdf840a0fb --- ManagingSecurity.xml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ManagingSecurity.xml b/ManagingSecurity.xml index aa76198..a0899fb 100644 --- a/ManagingSecurity.xml +++ b/ManagingSecurity.xml @@ -100,15 +100,15 @@ other::--- The default value for nosquash_nids is NULL, which means that root squashing applies to all clients. Setting the root squash UID and GID to 0 turns root squash off. Root squash parameters can be set when the MDT is created (mkfs.lustre --mdt). For example: mkfs.lustre --reformat --fsname=Lustre --mdt --mgs \ - --param "mds.root_squash=500:501" \ - --param "mds.nosquash_nids='0@elan1 192.168.1.[10,11]'" /dev/sda1 + --param "mdt.root_squash=500:501" \ + --param "mdt.nosquash_nids='0@elan1 192.168.1.[10,11]'" /dev/sda1 Root squash parameters can also be changed on an unmounted device with tunefs.lustre. For example: - tunefs.lustre --param "mds.root_squash=65534:65534" \ ---param "mds.nosquash_nids=192.168.0.13@tcp0" /dev/sda1 + tunefs.lustre --param "mdt.root_squash=65534:65534" \ +--param "mdt.nosquash_nids=192.168.0.13@tcp0" /dev/sda1 Root squash parameters can also be changed with the lctl conf_param command. For example: - lctl conf_param Lustre.mds.root_squash="1000:100" -lctl conf_param Lustre.mds.nosquash_nids="*@tcp" + lctl conf_param Lustre.mdt.root_squash="1000:101" +lctl conf_param Lustre.mdt.nosquash_nids="*@tcp" When using the lctl conf_param command, keep in mind: @@ -124,18 +124,18 @@ lctl conf_param Lustre.mds.nosquash_nids="*@tcp" The nosquash_nids list can be cleared with: - lctl conf_param Lustre.mds.nosquash_nids="NONE" + lctl conf_param Lustre.mdt.nosquash_nids="NONE" - OR - - lctl conf_param Lustre.mds.nosquash_nids="clear" + lctl conf_param Lustre.mdt.nosquash_nids="clear" If the nosquash_nids value consists of several NID ranges (e.g. 0@elan, 1@elan1), the list of NID ranges must be quoted with single (') or double ('') quotation marks. List elements must be separated with a space. For example: - mkfs.lustre ... --param "mds.nosquash_nids='0@elan1 1@elan2'" /dev/sda1 -lctl conf_param Lustre.mds.nosquash_nids="24@elan 15@elan1" + mkfs.lustre ... --param "mdt.nosquash_nids='0@elan1 1@elan2'" /dev/sda1 +lctl conf_param Lustre.mdt.nosquash_nids="24@elan 15@elan1" These are examples of incorrect syntax: - mkfs.lustre ... --param "mds.nosquash_nids=0@elan1 1@elan2" /dev/sda1 -lctl conf_param Lustre.mds.nosquash_nids=24@elan 15@elan1 + mkfs.lustre ... --param "mdt.nosquash_nids=0@elan1 1@elan2" /dev/sda1 +lctl conf_param Lustre.mdt.nosquash_nids=24@elan 15@elan1 To check root squash parameters, use the lctl get_param command: - lctl get_param mds.Lustre-MDT0000.root_squash -lctl get_param mds.Lustre-MDT000*.nosquash_nids + lctl get_param mdt.Lustre-MDT0000.root_squash +lctl get_param mdt.*.nosquash_nids An empty nosquash_nids list is reported as NONE. -- 1.8.3.1