Top
PRIMECLUSTER GLS for Windows User's Guide 4.3

B.3.3 Changing the Configuration

This section describes how to change the configuration of a virtual network.

B.3.3.1 Adding a Virtual Network

This section describes how to add a virtual network under the following conditions.

Figure B.3 Adding a Virtual Network

  1. Stop guest OSes.

  2. When [Enable virtual LAN identification] is checked in the setting of guest OSes, uncheck the check box, and click the [Apply] button.

  3. Remove the GLS virtual adapter from the Hyper-V virtual network.

    From the [Hyper-V Manager] window, select [Virtual Network Manager], change the [Connection type] from [External] to [Internal only] for the virtual network with the GLS virtual adapter connected, and then click the [Apply] button.

  4. Deactivate all virtual adapters by executing the stphanet command.

    > stphanet
    FJSVhanet: INFO: 00005: The ping monitoring stopped.
    FJSVhanet: INFO: 00000: The command ended normally.
  5. Create a new virtual adapter.

    Specify the virtual adapter sha1 to bundle the physical adapters (Local Area Connections 3 and 4) and execute the create subcommand of the hanetconfig command.

    > hanetconfig create -n sha1 -t "Local Area Connection 3","Local Area Connection 4" -v hv
    FJSVhanet: INFO: 00000: The command ended normally.
  6. Check the settings.
    Execute the print subcommand of the hanetconfig command.

    > hanetconfig print
     Name     VID  Adapters
    +--------+----+----------------------------------------------------------+
     sha0     hv   Local Area Connection 1,Local Area Connection 2
     sha1     hv   Local Area Connection 3,Local Area Connection 4
  7. Activate all virtual adapters by executing the strhanet command.

    > strhanet
    FJSVhanet: INFO: 00007: Start the ping monitoring using the hanetpoll command if needed.
    FJSVhanet: INFO: 00000: The command ended normally.
  8. Connect the virtual adapter sha0 to the Hyper-V virtual network.

    From the [Hyper-V Manager] window, select [Virtual Network Manager].
    Specify the virtual adapter sha0 for the virtual network with which you have changed [Connection type] to [Internal only] in step 3, and then click the [Apply] button.

  9. If you uncheck [Enable virtual LAN identification] for guest OS settings in step 2, select the check box, set the VLAN ID, and then click the [Apply] button.

  10. Connect the virtual adapter sha1 to the Hyper-V virtual network.

    For details, see "B.3.1.4 Creating a Virtual Network."

  11. Create a network adapter on a guest OS by using the virtual network created in step 10.

    For details, see "B.3.1.5 Creating a Network Adapter on a Guest OS."

  12. Set the execution of user scripts for Hyper-V.

    For details, see "B.3.1.6 Setting Execution of User Scripts for Hyper-V."

See

To ensure that GLS is set and functions correctly, perform the ping monitoring setting after adding virtual networks.

For details, see "5.3.2 Setting Ping Monitoring."

B.3.3.2 Deleting a Virtual Network

This section describes how to delete a virtual network under the following conditions.

Figure B.4 Deleting a Virtual Network

  1. Stop guest OSes connected to the Hyper-V virtual network with which the GLS virtual adapter is registered.

  2. Open the setting window for guest OSes from [Hyper-V Manager] and set the configuration to [Not connected] for the network adapter connected to the virtual network which is the target to be deleted. Delete the network adapter if you do not use it after deleting the virtual network.

  3. If [Enable virtual LAN identification] is checked for the settings of guest OSes connected to the virtual network which is not the target to be deleted, uncheck the check box and click the [Apply] button.

  4. Change the settings of the virtual network with which the GLS virtual adapter is registered.

    From the [Hyper-V Manager] window, select [Virtual Network Manager].
    Select the virtual network you want to delete and click the [Remove] button.
    Moreover, select the virtual adapter you do not delete, change [Connection type] to [Internal only] from [External], and then click the [Apply] button.

  5. Delete user scripts for Hyper-V.

    > del "<GLS Installation Directory>\usr\script\adapter\sha1.bat"
  6. Deactivate all virtual adapters by executing the stphanet command.

    > stphanet
    FJSVhanet: INFO: 00005: The ping monitoring stopped.
    FJSVhanet: INFO: 00000: The command ended normally.
  7. Check whether the ping monitoring is set.

    > hanetpoll print

    If ping monitoring is not set, step 8 is not applicable.

  8. If you have set the ping monitoring, delete the corresponding settings.

    Execute the delete subcommand of the hanetpoll command for the physical adapters bundled in virtual adapter sha1, which is to be deleted.

    > hanetpoll delete -t "Local Area Connection 3"
    FJSVhanet: INFO: 00000: The command ended normally.
    > hanetpoll delete -t "Local Area Connection 4"
    FJSVhanet: INFO: 00000: The command ended normally.
  9. Delete the information defining the virtual adapter.

    Delete the virtual adapter sha1 by executing the delete subcommand of the hanetconfig command.

    > hanetconfig delete -n sha1
    FJSVhanet: INFO: 00000: The command ended normally.
  10. Activate the virtual adapter by executing the strhanet command.

    > strhanet
    FJSVhanet: INFO: 00007: Start the ping monitoring using the hanetpoll command if needed.
    FJSVhanet: INFO: 00000: The command ended normally.
  11. Connect the virtual adapter sha0 to the Hyper-V virtual network.

    From the [Hyper-V Manager] window, select [Virtual Network Manager].
    Specify the virtual adapter sha0 for the virtual network with which you have changed [Connection type] to [Internal only] in step 4, and then click the [Apply] button.

  12. If you uncheck [Enable virtual LAN identification] for guest OS settings in step 3, select the check box, set the VLAN ID, and then click the [Apply] button.

  13. Restart the host OS.

Information

[Microsoft Virtual Network Switch Protocol] will be checked for physical adapters bundled in the virtual adapter. To connect these physical adapters to the virtual network, uncheck the check box.

B.3.3.3 Changing Physical Adapters

This section describes how to change the physical adapters bundled into a virtual adapter. In the procedure below, the name of the virtual adapter is sha0. This virtual adapter contains two physical adapters: Local Area Connection 1 and Local Area Connection 2. In the procedure below, Local Area Connection 2 is replaced with Local Area Connection 3.

Figure B.5 Changing Physical Adapters

For details on how to change, see "For Windows Server 2008 or later operating systems" in "5.2.3 Changing Physical Adapters."