forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
36 lines
9.1 KiB
HTML
36 lines
9.1 KiB
HTML
<a name="EN-US_TOPIC_0000001234042127"></a><a name="EN-US_TOPIC_0000001234042127"></a>
|
||
|
||
<h1 class="topictitle1">gds_uninstall</h1>
|
||
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_section19772182813384"><h4 class="sectiontitle">Background</h4><p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p986019352381">gds_uninstall is a script tool used to uninstall GDS in batches.</p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_section382894134510"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_ul94581233511"><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_li310412911212">Set environment variables before executing the script. For details, see "Importing Data > Using a Foreign Table to Import Data In Parallel > Installing, Configuring, and Starting GDS" in the <em id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_i9214537152719">Developer Guide</em>.</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li176115413484">The script must be executed in the Python 3 environment.</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li7612358191017">You must execute the <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b515888163815">gds_uninstall</strong> script as the <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b146636106385">root</strong> user.</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li1941421662712">The <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b13750201873819">--host</strong> and <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b973472173816">-U</strong> parameters must be contained.</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li234814816525">Currently, cross-platform uninstallation is not supported.</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li18548122915610">The passwords of all nodes specified by the <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b7777366387">--host</strong> parameter must be the same to ensure that the script can be remotely uninstalled.</li></ul>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_section189071947194518"><h4 class="sectiontitle">Syntax</h4><pre class="screen" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_screen66511138181816">gds_uninstall --host [/path/to/hostfile | ipaddr1,ipaddr2...] –U gds_user [--delete-user | --delete-user-and-group]</pre>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_section12234900460"><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_ul19603656125613"><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li1660465614560">--host<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p15439144145813"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li1660465614560"></a><a name="en-us_topic_0000001233922255_en-us_topic_0000001145650691_li1660465614560"></a>IP addresses of the nodes to be uninstalled. The value can be a file name or a string:</p>
|
||
<ul id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_ul6486175501917"><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li4899143720192">File format: Each IP address occupies a row, for example:<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p7880457141912"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li4899143720192"></a><a name="en-us_topic_0000001233922255_en-us_topic_0000001145650691_li4899143720192"></a>192.168.2.200</p>
|
||
<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p275075911911">192.168.2.201</p>
|
||
</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li18912151082020">String format: IP addresses are separated by commas (,), for example:<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p1836512112010"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li18912151082020"></a><a name="en-us_topic_0000001233922255_en-us_topic_0000001145650691_li18912151082020"></a>192.168.2.200,192.168.2.201</p>
|
||
</li></ul>
|
||
</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_li145774499389">-U<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_p32693214413"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_li145774499389"></a><a name="en-us_topic_0000001233922255_li145774499389"></a>GDS user.</p>
|
||
</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_li154306521432">--delete-user<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_p51067460454"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_li154306521432"></a><a name="en-us_topic_0000001233922255_li154306521432"></a>The user is deleted when GDS is uninstalled. The user to be deleted cannot be the <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b32951022104115">root</strong> user.</p>
|
||
</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_li1181058104313">--delete-user-and-group<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_p195517195467"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_li1181058104313"></a><a name="en-us_topic_0000001233922255_li1181058104313"></a>When GDS is uninstalled, the user and the user group to which the user belongs are deleted. You can delete a user group only when the user to be deleted is the only user of the user group. The user group cannot be the <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b1325413513422">root</strong> user group.</p>
|
||
</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li10604456155616">-V<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p28217563019"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li10604456155616"></a><a name="en-us_topic_0000001233922255_en-us_topic_0000001145650691_li10604456155616"></a>Version information.</p>
|
||
</li><li id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li960412568564">-h, --help<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p79207324118"><a name="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_li960412568564"></a><a name="en-us_topic_0000001233922255_en-us_topic_0000001145650691_li960412568564"></a>Help information.</p>
|
||
</li></ul>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_section1055631084611"><h4 class="sectiontitle">Example</h4><p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001145650691_p18778153815119">Uninstall the GDS folders and environment variables installed and deployed by the <strong id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_b12908456104219">gds_test</strong> user on nodes 192.168.1.100 and 192.168.1.101.</p>
|
||
<pre class="screen" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001098650744_screen986271415105">gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101</pre>
|
||
<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001098650744_p3855134016377">The user is deleted when GDS is uninstalled.</p>
|
||
<pre class="screen" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_en-us_topic_0000001098650744_screen494553251016">gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101 --delete-user</pre>
|
||
</div>
|
||
<p id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_p1196792331311">During the uninstallation, the user and user group are deleted at the same time.</p>
|
||
<pre class="screen" id="EN-US_TOPIC_0000001234042127__en-us_topic_0000001233922255_screen896742313135">gds_uninstall -U gds_test --host 192.168.1.100,192.168.1.101 --delete-user-and-group</pre>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_07_0100.html">Server Tool</a></div>
|
||
</div>
|
||
</div>
|
||
|