<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>更新存储后端 on Huawei</title><link>https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/</link><description>Recent content in 更新存储后端 on Huawei</description><generator>Hugo</generator><language>zh-cn</language><copyright>版权所有 © 华为技术有限公司 2025。保留一切权利。</copyright><atom:link href="https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/index.xml" rel="self" type="application/rss+xml"/><item><title>更新存储后端密码</title><link>https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/updating-the-password-of-a-storage-backend-using-oceanctl/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/updating-the-password-of-a-storage-backend-using-oceanctl/</guid><description>&lt;h2 id="section17783193220443">获取更新后端帮助信息&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>执行以下命令获取更新存储后端帮助。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>oceanctl update backend -h
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>Update a backend &lt;span style="color:#8839ef">for&lt;/span> Ocean Storage &lt;span style="color:#04a5e5;font-weight:bold">in&lt;/span> Kubernetes
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> oceanctl update backend &lt;span style="color:#04a5e5;font-weight:bold">&amp;lt;&lt;/span>name&lt;span style="color:#04a5e5;font-weight:bold">&amp;gt;&lt;/span> [flags]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Examples:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#9ca0b0;font-style:italic"># Update backend account information in default(huawei-csi) namespace&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> oceanctl update backend &lt;span style="color:#04a5e5;font-weight:bold">&amp;lt;&lt;/span>name&lt;span style="color:#04a5e5;font-weight:bold">&amp;gt;&lt;/span> &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>password
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#9ca0b0;font-style:italic"># Update backend account information in specified namespace&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> oceanctl update backend &lt;span style="color:#04a5e5;font-weight:bold">&amp;lt;&lt;/span>name&lt;span style="color:#04a5e5;font-weight:bold">&amp;gt;&lt;/span> &lt;span style="color:#04a5e5;font-weight:bold">-&lt;/span>n namespace &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>password
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#9ca0b0;font-style:italic"># Update backend account information with ldap authentication mode in default(huawei-csi) namespace&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> oceanctl update backend &lt;span style="color:#04a5e5;font-weight:bold">&amp;lt;&lt;/span>name&lt;span style="color:#04a5e5;font-weight:bold">&amp;gt;&lt;/span> &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>password &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>authenticationMode&lt;span style="color:#04a5e5;font-weight:bold">=&lt;/span>ldap
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#9ca0b0;font-style:italic"># Update backend account information with local authentication mode in default(huawei-csi) namespace&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> oceanctl update backend &lt;span style="color:#04a5e5;font-weight:bold">&amp;lt;&lt;/span>name&lt;span style="color:#04a5e5;font-weight:bold">&amp;gt;&lt;/span> &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>password &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>authenticationMode&lt;span style="color:#04a5e5;font-weight:bold">=&lt;/span>local
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#9ca0b0;font-style:italic"># Update backend account information with ldap authentication mode in specified namespace&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> oceanctl update backend &lt;span style="color:#04a5e5;font-weight:bold">&amp;lt;&lt;/span>name&lt;span style="color:#04a5e5;font-weight:bold">&amp;gt;&lt;/span> &lt;span style="color:#04a5e5;font-weight:bold">-&lt;/span>n namespace &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>password &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>authenticationMode&lt;span style="color:#04a5e5;font-weight:bold">=&lt;/span>ldap
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>authenticationMode string Specify authentication mode
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#04a5e5;font-weight:bold">-&lt;/span>h, &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>help help &lt;span style="color:#8839ef">for&lt;/span> backend
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#04a5e5;font-weight:bold">-&lt;/span>n, &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>namespace string namespace of resources
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>password Update account password
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Global Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#04a5e5;font-weight:bold">--&lt;/span>&lt;span style="color:#04a5e5">log&lt;/span>&lt;span style="color:#04a5e5;font-weight:bold">-&lt;/span>dir string Specify the directory &lt;span style="color:#8839ef">for&lt;/span> printing &lt;span style="color:#04a5e5">log&lt;/span> files&lt;span style="color:#04a5e5;font-weight:bold">.&lt;/span> (default &lt;span style="color:#40a02b">&amp;#34;/var/log/huawei&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section1968753944018">更新后端密码示例&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>执行以下命令更新存储后端信息，其中backend-name为待更新后端名称。&lt;/p></description></item><item><title>更新存储后端登陆认证模式</title><link>https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/updating-the-login-authentication-mode-of-a-storage-backend/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/updating-the-login-authentication-mode-of-a-storage-backend/</guid><description>&lt;h2 id="section29338116524">更新后端登录认证类型为LDAP示例&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>执行以下命令更新存储后端信息，其中backend-name为待更新后端名称。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>oceanctl update backend backend-name --password --authenticationMode=ldap
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>根据提示输入用户名和新密码：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>Please enter this backend user name:admin
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Please enter this backend password:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>backend/backend-name updated
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol></description></item><item><title>更新存储后端信息</title><link>https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/updating-a-storage-backend-75/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/basic-services/storage-backend-management/managing-storage-backends/updating-a-storage-backend/updating-a-storage-backend-75/</guid><description>&lt;blockquote>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/public_sys-resources/zh-cn/icon-note.gif">&lt;/p>
&lt;ul>
&lt;li>PVC发放需要基于已配置的存储后端，因此当存储后端已经发放PVC时，请勿随便修改存储后端。&lt;/li>
&lt;li>名称是存储后端的唯一标识，已发放PVC的存储后端不允许修改名称。&lt;/li>
&lt;li>存储后端修改后，新增配置仅作用于新发放的卷。&lt;/li>
&lt;li>存储后端修改期间，请勿执行卷管理操作。&lt;/li>
&lt;/ul>
&lt;/blockquote>
&lt;h2 id="section1223254955011">操作步骤&lt;/h2>
&lt;ol>
&lt;li>参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/basic-services/storage-backend-management/managing-storage-backends/deleting-a-storage-backend/">删除存储后端&lt;/a>
章节，删除待修改存储后端。&lt;/li>
&lt;li>参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/basic-services/storage-backend-management/configuring-the-storage-backend/">配置存储后端&lt;/a>
章节，创建同名存储后端，存储后端名称不可变更。&lt;/li>
&lt;/ol></description></item></channel></rss>