From owner-svn-src-projects@freebsd.org Fri Jun 16 23:41:24 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBE89D8B559 for ; Fri, 16 Jun 2017 23:41:24 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B481742B3; Fri, 16 Jun 2017 23:41:24 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v5GNfN35028251; Fri, 16 Jun 2017 23:41:23 GMT (envelope-from rmacklem@FreeBSD.org) Received: (from rmacklem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v5GNfNgV028250; Fri, 16 Jun 2017 23:41:23 GMT (envelope-from rmacklem@FreeBSD.org) Message-Id: <201706162341.v5GNfNgV028250@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rmacklem set sender to rmacklem@FreeBSD.org using -f From: Rick Macklem Date: Fri, 16 Jun 2017 23:41:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r320039 - projects/pnfs-planb-server-stable11/usr.bin/pnfsdsfile X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 23:41:24 -0000 Author: rmacklem Date: Fri Jun 16 23:41:23 2017 New Revision: 320039 URL: https://svnweb.freebsd.org/changeset/base/320039 Log: Document the -c option that replaces the DS host IP# in the extended attribute. Modified: projects/pnfs-planb-server-stable11/usr.bin/pnfsdsfile/pnfsdsfile.1 Modified: projects/pnfs-planb-server-stable11/usr.bin/pnfsdsfile/pnfsdsfile.1 ============================================================================== --- projects/pnfs-planb-server-stable11/usr.bin/pnfsdsfile/pnfsdsfile.1 Fri Jun 16 23:41:13 2017 (r320038) +++ projects/pnfs-planb-server-stable11/usr.bin/pnfsdsfile/pnfsdsfile.1 Fri Jun 16 23:41:23 2017 (r320039) @@ -34,6 +34,7 @@ a pNFS data storage file location and/or modify the pn .Sh SYNOPSIS .Nm .Op Fl qz +.Op Fl c Ar old-dshostname,new-dshostname .Op Fl s Ar dshostname .Ar metadata_file .Sh DESCRIPTION @@ -60,6 +61,17 @@ This forces the pNFS MDS to do a Lookup RPC against th handle to update it. Normally this will only be necessary after the DS file has been recovered from a backup, causing the file handle to change. +.It Fl c Ar old-dshostname,new-dshostname +This option allows a sysadmin to replace the host IP# for the DS in the +pnfsd.dsfile extended attribute. +The old-hostname must resolve to the IP# already in the pnfsd.dsfile extended +attribute or the replacement will not be done. +If the old-dshostname matches, then the IP# is replaced by the first AF_INET +or AF_INET6 address that +.Xr getaddrinfo 3 +returns for the new-dshostname. +Changing a DS server's host IP# should be avoided, but this option will +allow it to be changed, if the change is unavoidable. .It Fl s Ar dshostname This option can be used with .Fl z