2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-02 17:47:37 +00:00

modify punctuation mark

This commit is contained in:
huweihua
2015-12-13 21:23:53 -05:00
parent f7ca136547
commit 3fe527cbb1

View File

@@ -4,56 +4,56 @@ Remove xCAT
Backup xCAT User Data
---------------------
Before removing xCAT, recommend to backup xCAT database. It's convenient to restore xCAT management environment in the future if needed ::
Before removing xCAT, recommend to backup xCAT database. It's convenient to restore xCAT management environment in the future if needed. ::
dumpxCATdb -p <path_to_save_the_database>
For more information of ``dumpxCATdb``, please refer to :doc:`command dumpxCATdb </guides/admin-guides/references/man/dumpxCATdb.1>`. For how to restore xcat DB, please refer to `Restore xCAT User Data`_
For more information of ``dumpxCATdb``, please refer to :doc:`command dumpxCATdb </guides/admin-guides/references/man/dumpxCATdb.1>`. For how to restore xcat DB, please refer to `Restore xCAT User Data`_.
Clean Up xCAT Related Configuration
-----------------------------------
1. To clean up the node information from dhcp ::
1. To clean up the node information from dhcp. ::
makedhcp -d -a
2. To clean up the node information in tftpboot ::
2. To clean up the node information in tftpboot. ::
nodeset all offline
3. To clean up the node information from ``/etc/hosts`` (optional)
3. To clean up the node information from ``/etc/hosts`` (optional).
Keep xCAT nodes information in ``/etc/hosts`` is harmless, But if really need to remove them from ``/etc/hosts``, you can edit ``/etc/hosts`` by 'vi' directly, or using xCAT command ``makehosts`` ::
Keep xCAT nodes information in ``/etc/hosts`` is harmless. But if really need to remove them from ``/etc/hosts``, you can edit ``/etc/hosts`` by 'vi' directly, or using xCAT command ``makehosts``. ::
makehosts -d all
4. To clean up the node information from DNS (optional)
4. To clean up the node information from DNS (optional).
After removing all the nodes from ``/etc/hosts``, run below command to clean up the node information from DNS ::
After removing all the nodes from ``/etc/hosts``, run below command to clean up the node information from DNS. ::
makedns -n
Stop xCAT Service
-----------------
1. Stop xCAT service ::
1. Stop xCAT service. ::
service xcatd stop
2. Stop xCAT related services(Optional)
2. Stop xCAT related services(Optional).
xCAT uses various network services on the management node and service nodes, the network services setup by xCAT may need to be cleaned up on the management node and service nodes before uninstalling xCAT.
XCAT uses various network services on the management node and service nodes, the network services setup by xCAT may need to be cleaned up on the management node and service nodes before uninstalling xCAT.
* **NFS** : stop nfs service, unexport all the file systems exported by xCAT, and remove the xCAT file systems from ``/etc/exports``.
* **HTTP**: stop http service, remove the xcat.conf in the http configuration directory.
* **TFTP**: stop tftp service, remove the tftp files created by xCAT in tftp directory.
* **DHCP**: stop dhcp service, remove the configuration made by xCAT in dhcp configuration files.
* **DNS** : stop the named service, remove the named entries created by xCAT from the named database.
* **NFS** : Stop nfs service, unexport all the file systems exported by xCAT, and remove the xCAT file systems from ``/etc/exports``.
* **HTTP**: Stop http service, remove the xcat.conf in the http configuration directory.
* **TFTP**: Stop tftp service, remove the tftp files created by xCAT in tftp directory.
* **DHCP**: Stop dhcp service, remove the configuration made by xCAT in dhcp configuration files.
* **DNS** : Stop the named service, remove the named entries created by xCAT from the named database.
Remove xCAT files
Remove xCAT Files
-----------------
1. Remove the xCAT RPMs
1. Remove the xCAT RPMs.
There is no easy way to distinct all the packages depending by xCAT. For packages shipped by xCAT, you can remove them by the commands below.
@@ -177,7 +177,7 @@ Remove xCAT files
Along with xCAT development, above list maybe change, you can get the latest list through below links:
* xCAT Core Packages list (xcat-core)
* XCAT Core Packages List (xcat-core)
[RHEL and SLES] ::
@@ -187,29 +187,28 @@ Remove xCAT files
http://xcat.org/files/xcat/repos/apt/<version>/xcat-core/
* xCAT Dependency Packages (xcat-dep)
* XCAT Dependency Packages (xcat-dep)
`RPM Packages List (RHEL and SLES) <http://xcat.org/files/xcat/repos/yum/xcat-dep/>`_
`Debian Packages List (Ubuntu) <http://xcat.org/files/xcat/repos/apt/xcat-dep/>`_
Generally, we use ``yum install xCAT`` to install xCAT. so these are some RPMs shipped by operating system are installed during xCAT installation. We don't have an easy way to find out all of them, but keep these RPMs are harmless.
Generally, we use ``yum install xCAT`` to install xCAT, so these are some RPMs shipped by operating system are installed during xCAT installation. We don't have an easy way to find out all of them, but keep these RPMs are harmless.
2. Remove xCAT certificate file ::
2. Remove xCAT certificate file. ::
rm -rf /root/.xcat
3. Remove xCAT data file
3. Remove xCAT data file.
By default, xCAT use SQLite, remove SQLite data file under ``/etc/xcat/`` ::
By default, xCAT use SQLite, remove SQLite data file under ``/etc/xcat/``. ::
rm -rf /etc/xcat
4. Remove xCAT related file(Optional)
4. Remove xCAT related file(Optional).
xCAT has ever operated below directory when it was running. Do judgment by yourself before removing these directory, to avoid removing some directories used for other purpose in your environment ::
XCAT has ever operated below directory when it was running. Do judgment by yourself before removing these directory, to avoid removing some directories used for other purpose in your environment. ::
/install
/tftpboot
@@ -225,14 +224,14 @@ Remove xCAT files
Remove Databases
----------------
* For PostgreSQL: See :doc:`Removing xCAT DB from PostgreSQL </guides/admin-guides/large_clusters/databases/postgres_remove>`
* For MySQL/MariaDB: See :doc:`Removing xCAT DB from MySQL/MariaDB </guides/admin-guides/large_clusters/databases/mysql_remove>`
* For PostgreSQL: See :doc:`Removing xCAT DB from PostgreSQL </guides/admin-guides/large_clusters/databases/postgres_remove>`.
* For MySQL/MariaDB: See :doc:`Removing xCAT DB from MySQL/MariaDB </guides/admin-guides/large_clusters/databases/mysql_remove>`.
Restore xCAT User Data
----------------------
If need to restore xCAT environment, after :doc:`xCAT software installation </guides/install-guides/index>`, you can restore xCAT DB by data files dumped in the past ::
If need to restore xCAT environment, after :doc:`xCAT software installation </guides/install-guides/index>`, you can restore xCAT DB by data files dumped in the past. ::
restorexCATdb -p <path_to_backup_saved_for_restore>
For more information of ``restorexCATdb``, please refer to :doc:`command restorexCATdb </guides/admin-guides/references/man/restorexCATdb.1>`
For more information of ``restorexCATdb``, please refer to :doc:`command restorexCATdb </guides/admin-guides/references/man/restorexCATdb.1>`.