From: Sebastien Buisson Date: Tue, 25 Mar 2025 15:44:04 +0000 (+0100) Subject: LUDOC-550 sec: doc fix for nodemap mapping offset X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;p=doc%2Fmanual.git LUDOC-550 sec: doc fix for nodemap mapping offset Fix the explanation about how to delete an offset from a nodemap. Fixes: 1e70e236df ("LUDOC-550 sec: doc update for nodemap mapping offset") Change-Id: I7ff2aeb5f32b2783ae27a54a7ff3f1ed4b4f9336 Signed-off-by: Sebastien Buisson Reviewed-on: https://review.whamcloud.com/c/doc/manual/+/58524 Tested-by: jenkins Reviewed-by: Marc Vef Reviewed-by: Andreas Dilger --- diff --git a/LustreNodemap.xml b/LustreNodemap.xml index 14090ea..bf1857f 100644 --- a/LustreNodemap.xml +++ b/LustreNodemap.xml @@ -295,13 +295,12 @@ drwxr-xr-x 3 root root 4096 Jul 23 09:02 .. and extending through FSID_COUNT-1. An offset range cannot overlap with another offset range. A nodemap can only have one offset defined. To modify the offset already - defined, just assign a new value, or set to 0 to deactivate. Any existing - files will not automatically be remapped to the new - OFFSET range. IDs must be manually changed on all files - for that nodemap with chown(1) and - lfs-project(1) on a trusted client that has access to - the unmapped, canonical file system IDs. Therefore modifying a nodemap - offset should be avoided if possible. + defined, just assign a new value. Any existing files will not + automatically be remapped to the new OFFSET range. IDs + must be manually changed on all files for that nodemap with + chown(1) and lfs-project(1) on a + trusted client that has access to the unmapped, canonical file system IDs. + Therefore modifying a nodemap offset should be avoided if possible. For example, to map the client UID, GID, and PROJID values from the range 0-199999 to the filesystem UID, GID, and PROJID values to the range 100000-299999: @@ -314,7 +313,7 @@ drwxr-xr-x 3 root root 4096 Jul 23 09:02 .. squash_projid values should not be set to a value greater than FSID_COUNT-1. Otherwise this would produce file system ids outside of the offset range. - + If not zero, the mapping offset is always applied as the last stage of the mapping process. gives a @@ -332,6 +331,15 @@ drwxr-xr-x 3 root root 4096 Jul 23 09:02 .. + To deactivate id mapping offset, use the + nodemap_del_offset command. + lctl nodemap del_offset --name NAME + As when changing the ID offset value, deleting the ID offset + will not remap files created with the offset IDs. + It is up to the storage administrator to delete or reset UID/GID/PROJID + for files that were created with the mapped IDs. Generally, an ID offset + should remain unchanged for the entire nodemap lifetime and not be deleted + without a clear understanding of the operational impact.