启用和还原 LIF 到主端口(为更新准备 ONTAP 软件)

在重新启动期间,某些 LIF 可能已迁移到为其分配的故障转移端口。在升级、还原或降级集群前后,您必须启用和还原不在主端口上的任何 LIF。

关于本任务

The network interface revert command reverts a LIF that is not currently on its home port back to its home port, provided that the home port is operational.A LIF's home port is specified when the LIF is created; you can determine the home port for a LIF by using the network interface show command.

步骤

  1. Display the status of all LIFs: network interface show
    示例
    This example displays the status of all LIFs for a Storage Virtual Machine (SVM).
    cluster1::> network interface show -vserver vs0
                Logical    Status     Network            Current       Current Is
    Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
    ----------- ---------- ---------- ------------------ ------------- ------- ----
    vs0
                data001    down/down  192.0.2.120/24     node0         e0e     true
                data002    down/down  192.0.2.121/24     node0         e0f     true
                data003    down/down  192.0.2.122/24     node0         e2a     true
                data004    down/down  192.0.2.123/24     node0         e2b     true
                data005    down/down  192.0.2.124/24     node0         e0e     false
                data006    down/down  192.0.2.125/24     node0         e0f     false
                data007    down/down  192.0.2.126/24     node0         e2a     false
                data008    down/down  192.0.2.127/24     node0         e2b     false
    8 entries were displayed.
    
    If any LIFs appear with a Status Admin status of down or with an Is home status of false, continue with the next step.
  2. Enable the data LIFs: network interface modify {-role data} -status-admin up
    示例
    cluster1::> network interface modify {-role data} -status-admin up 
    8 entries were modified.
    
  3. Revert LIFs to their home ports: network interface revert *
    示例
    This command reverts all LIFs back to their home ports and changes all LIF home statuses to true.
    cluster1::> network interface revert *      
    8 entries were acted on.
    
  4. Verify that all LIFs are in their home ports: network interface show
    示例
    This example shows that all LIFs for SVM vs0 are on their home ports.
    cluster1::> network interface show -vserver vs0
                Logical    Status     Network            Current       Current Is
    Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
    ----------- ---------- ---------- ------------------ ------------- ------- ----
    vs0
                data001      up/up    192.0.2.120/24     node0         e0e     true
                data002      up/up    192.0.2.121/24     node0         e0f     true
                data003      up/up    192.0.2.122/24     node0         e2a     true
                data004      up/up    192.0.2.123/24     node0         e2b     true
                data005      up/up    192.0.2.124/24     node1         e0e     true
                data006      up/up    192.0.2.125/24     node1         e0f     true
                data007      up/up    192.0.2.126/24     node1         e2a     true
                data008      up/up    192.0.2.127/24     node1         e2b     true
    8 entries were displayed.