Top
PRIMECLUSTER Enterprise Edition4.6A10 Installation Guide
FUJITSU Software

4.2 Uninstallation from Cluster nodes (cloud environment)

This section explains cluster node uninstallation using the CLI installer in the cloud environment.

Note

If the following settings were set erroneously it might not be possible to access the system. Before doing the following settings, take a snapshot of the system storage.

  1. Login to the system as the root user.

    $ sudo su - <Return>
    Password: password <Return>
  2. If RMS is running, stop RMS.

    # hvshut -a <Return>
  3. If you are using GDS, cancel the GDS settings. For details see the "PRIMECLUSTER Global Disk Services Configuration and Administration Guide".

  4. If you are using GLS, reset the IP address etc. set in the GLS virtual interface to the standard NIC of the OS.

    If GLS is set as follows, set sha0 to eth0. If there are multiple virtual GLS interfaces, redo the setting for all of them.

    # /opt/FJSVhanet/usr/sbin/hanetconfig print <Return>
    [IPv4,Patrol / Virtual NIC] Name Hostname Mode Physical ipaddr Interface List +-----------+---------------+----+-----------------+---------------------------+ sha0 v eth0 [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+----+---------------------------+

    [Red Hat Enterprise Linux 7]

    # cat /etc/sysconfig/network-scripts/ifcfg-eth0 <Return>
    DEVICE=eth0
    #TYPE=Ethernet
    BOOTPROTO=static
    DEFROUTE=no
    UUID=<Fixed value of the environment (not necessary to change)>
    HOTPLUG=no
    ONBOOT=yes
    DEVICETYPE=hanet
    PEERDNS=no
    # cat /etc/sysconfig/network-scripts/ifcfg-sha0 <Return>
    DEVICE=sha0
    #IPADDR=
    #NETMASK=
    BOOTPROTO=dhcp
    DEFROUTE=yes
    ONBOOT=yes
    DEVICETYPE=sha
    HOTPLUG=no
    PEERDNS=yes
    DNS1=<IP address of primary DNS server>
    DNS2=<IP address of secondary DNS server>

    Edit the ifcfg-eth0 file and the ifcfg-sha0 as follows.

    • In the /etc/sysconfig/network-scripts/ifcfg-eth0 file, comment out DEVICETYPE and PEERDNS. Set BOOTPROTO=dhcp and DEFROUTE=yes.

      DEVICE=eth0
      #TYPE=Ethernet
      BOOTPROTO=dhcp
      DEFROUTE=yes UUID=<Fixed value of the environment (not necessary to change)> HOTPLUG=no ONBOOT=yes #DEVICETYPE=hanet #PEERDNS=no
    • Set the ONBOOT of /etc/sysconfig/network-scripts/ifcfg-sha0 to no.

      DEVICE=sha0
      #IPADDR=
      #NETMASK=
      BOOTPROTO=dhcp
      DEFROUTE=yes
      ONBOOT=no
      DEVICETYPE=sha
      HOTPLUG=no
      PEERDNS=yes
      DNS1=<IP address of primary DNS server>
      DNS2=<IP address of secondary DNS server>

    [Red Hat Enterprise Linux 8]

    # cat /etc/sysconfig/network-scripts/ifcfg-eth0 <Return>
    DEVICE=eth0
    TYPE=Ethernet
    BOOTPROTO=static
    DEFROUTE=no
    UUID=<Fixed value of the environment (not necessary to change)>
    HOTPLUG=no
    ONBOOT=yes
    PEERDNS=no
    # cat /etc/sysconfig/network-scripts/ifcfg-sha0 <Return>
    DEVICE=sha0
    #IPADDR=
    #PREFIX=
    BOOTPROTO=dhcp
    DEFROUTE=yes
    ONBOOT=yes
    TYPE=Ethernet
    PEERDNS=yes
    DNS1=<IP address of primary DNS server>
    DNS2=<IP address of secondary DNS server>

    Edit the ifcfg-eth0 file and the ifcfg-sha0 as follows.

    • In the /etc/sysconfig/network-scripts/ifcfg-eth0 file, comment out PEERDNS. Set BOOTPROTO=dhcp and DEFROUTE=yes.

      DEVICE=eth0
      TYPE=Ethernet
      BOOTPROTO=dhcp
      DEFROUTE=yes UUID=<Fixed value of the environment (not necessary to change)> HOTPLUG=no ONBOOT=yes #PEERDNS=no
    • Set the ONBOOT of /etc/sysconfig/network-scripts/ifcfg-sha0 to no.

      DEVICE=sha0
      #IPADDR=
      #PREFIX=
      BOOTPROTO=dhcp
      DEFROUTE=yes
      ONBOOT=no
      TYPE=Ethernet
      PEERDNS=yes
      DNS1=<IP address of primary DNS server>
      DNS2=<IP address of secondary DNS server>
  5. Execute the following command to stop automatic start of the PRIMECLUSTER services.

    # /opt/FJSVpclinst/bin/pclservice off <Return>
  6. Restart the system.

    # /sbin/shutdown -r now <Return>
  7. If you are using GDS, check the file in the /dev/sfdsk directory. If there are other files than _adm, _diag, _sysadm, and _sysdiag, delete them.

  8. If you are using GLS, delete the GLS settings.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc print <Return>
    ifname     takeover-ipv4     takeover-ipv6     vlan-id/logical ip address list
    +----------+----------------+----------------+--------------------------------+
     sha0:65    172.16.0.100     -                -
    # /opt/FJSVhanet/usr/sbin/hanetconfig print <Return>
    [IPv4,Patrol / Virtual NIC] Name Hostname Mode Physical ipaddr Interface List +-----------+---------------+----+-----------------+---------------------------+ sha0 v eth0
    [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+-----+---------------------------+
    # /opt/FJSVhanet/usr/sbin/hanethvrsc delete -n sha0:65 <Return>
    hanet: 00000: information: normal end. 
    # /opt/FJSVhanet/usr/sbin/hanetconfig delete -n sha0 <Return>
    hanet: 00000: information: normal end. 
    # /opt/FJSVhanet/usr/sbin/hanetconfig print <Return>
    [IPv4,Patrol / Virtual NIC] Name Hostname Mode Physical ipaddr Interface List +-----------+---------------+----+-----------------+---------------------------+ [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+-----+---------------------------+ #
  9. Check PEERDNS, DNS1, DNS2 of /etc/sysconfig/network-scripts/ifcfg-ethX (X is 0, 1) and /etc/sysconfig/network of GATEWAYDEV and change the DNS client settings as necessary.

  10. If an UpdateSite format PRIMECLUSTER correction is applied, delete this correction.

    For details, see help in UpdateAdvisor (middleware) and refer to the correction information file.

    Note

    However, if you remove the patch with uam remove, you do not need to execute pclservice on or reboot the operating system.

  11. Copy the data from the DVD and deploy it in the environment where the installation is done.

    Prepare separate environments where the DVD can be set and mounted and mount the DVD.

    Copy source system # mount -t iso9660 -r /dev/<Device file name> <DVD-ROM mountpoint> <Return>

    Copy the entire directory under <DVD-ROM mountpoint> to all the target systems copied to. Set the directory copied to as <Directory copied to>.

    Note

    When you copy to the target system, use the tar command to archive and make sure that the symbolic link is not made into an actual file.

  12. Execute the CLI uninstaller.

    # cd <Directory copied to>/Tool <Return>
    # ./cluster_uninstall <Return>
    Are you sure to remove PRIMECLUSTER from your system (y or n) ? y
    .
    .
    The uninstallation finished successfully.
  13. Restart the system.

    # /sbin/shutdown -r now <Return>

Note

If you use GLS, the script file in the /etc/opt/FJSVhanet/script directory used by the user command execution function might not be deleted and may remain after this software has been uninstalled. This directory and file remaining will not affect the operations of the system, but if you want to delete them, use the following commands and delete them.

For the script file, remove the directory after removing or deleting the file.

# cd /etc/opt <Return>
# rm -rf FJSVhanet <Return>