Go to main content

Oracle® ZFS Storage Appliance 安装指南

退出打印视图

更新时间: 2018 年 11 月
 
 

执行初始配置 (CLI)

使用此过程(一个分步式实用程序)通过命令行界面 (command line interface, CLI) 完成设备上网络接口、域名服务 (Domain Name Service, DNS)、时间设置、名称服务、目录服务、存储和远程支持的初始配置。


注 -  如果安装的是群集控制器,强烈建议使用 BUI 执行初始配置,如执行初始配置 (BUI)中所述。

每个步骤开始时都会输出其帮助(通过键入 help 可以再次输出帮助)。使用 done 命令可完成每个步骤。在示例中,通过键入 done 检查并接受了从 DHCP 服务器获取的现有设置。要对其进行定制,请进入每个上下文(datalinksdevicesinterfaces),并键入 help 来查看该上下文中可执行的操作。

开始之前

  • 确保您已经按照配置系统中所述配置了系统。

  • 此过程假定您刚刚完成了网络接口的配置并且正在使用同一管理客户机访问 CLI。

  1. 使用您在系统配置期间创建的管理密码登录。
    hostname console login: root
    Password: 
    To setup your system, you will be taken through a series of steps; as the setup
    process advances to each step, the help message for that step will be
    displayed.
              
    Press any key to begin initial configuration ...
  2. 配置设备网络接口。

    有关详细信息,请参见以下主题:


    注 -  您可以立即创建管理接口,也可以使用Oracle ZFS Storage Appliance 管理指南,发行版 OS8.8.0 中的 配置管理接口中的任务在其他时间创建。
    aksh: starting configuration with "net" ... 
              
    Configure Networking. Configure the appliance network interfaces. The first
    network interface has been configured for you, using the settings you provided
    at the serial console. 
              
    Subcommands that are valid in this context:
    
       datalinks            => Manage datalinks
              
       devices              => Manage devices
              
       interfaces           => Manage interfaces
              
       help [topic]         => Get context-sensitive help. If [topic] is specified,
                               it must be one of "builtins", "commands", "general",
                               "help" or "script".
    
       show                 => Show information pertinent to the current context
    
       abort                => Abort this task (potentially resulting in a
                               misconfigured system)
    
       done                 => Finish operating on "net"
    
    hostname:maintenance system setup net> devices show
    Devices:
    
         DEVICE UP       MAC                      SPEED          
           igb0 true     0:14:4f:8d:59:aa         1000 Mbit/s    
           igb1 false    0:14:4f:8d:59:ab         0 Mbit/s       
           igb2 false    0:14:4f:8d:59:ac         0 Mbit/s       
           igb3 false    0:14:4f:8d:59:ad         0 Mbit/s       
    
    hostname:maintenance system setup net> datalinks show
    Datalinks:
    
       DATALINK CLASS          LINKS       LABEL
           igb0 device         igb0        Untitled Datalink
    
    hostname:maintenance system setup net> interfaces show
    Interfaces:
    
    INTERFACE    STATE    CLASS    LINKS       ADDRS                  LABEL
    igb0         up       ip       igb0        192.168.2.80/22        Untitled Interface
    
    hostname:maintenance system setup net> done

    要立即创建管理接口,以下列步骤为例:

    1. 转至 maintenance system setup net,然后输入 interfaces
      hostname:maintenance system setup net> interfaces
    2. 输入 show 以查看接口。输入 cd .. 以返回下一步的上下文。
      hostname:maintenance system setup net interfaces> show
      Interfaces:
      
      INTERFACE    STATE      CLASS      LINKS      ADDRS                   LABEL
      igb0         up         ip         igb0       192.0.2.11/24           Untitled Interface
      hostname:maintenance system setup net interfaces> cd ..
    3. 为标记为 "Untitled Interface"(未命名的接口)的接口配置路由。输入 cd .. 以返回下一步的正确上下文。

      有关详细信息,请参见Oracle ZFS Storage Appliance 管理指南,发行版 OS8.8.0 中的 配置网络路由

      hostname:maintenance system setup net> routing
      hostname:maintenance system setup net routing> create
      hostname:maintenance system setup net route (uncommitted)> set destination=0.0.0.0
                              destination = 0.0.0.0 (uncommitted)
      hostname:maintenance system setup net route (uncommitted)> set mask=0
                                     mask = 0 (uncommitted)
      hostname:maintenance system setup net route (uncommitted)> set interface=igb0
                                interface = igb0 (uncommited)
      hostname:maintenance system setup net route (uncommitted)> set gateway=192.0.2.1
                                  gateway = 192.168.56.101 (uncommitted)
      hostname:maintenance system setup net route (uncommited)> set family=IPv4
                                   family = IPv4 (uncommitted)
      hostname:maintenance system setup net route (uncommitted)> commit
      hostname:maintenance system setup net routing> cd ..
    4. 输入 interfaces,选择标记为 "Untitled Interface"(未命名的接口)的接口,然后输入 show 以查看其属性。
      hostname:maintenance system setup net> interfaces
      hostname:maintenance system setup net interfaces> select igb0
      hostname:maintenance system setup net interfaces igb0> show
      Properties:
      
                                           state = up
                                        curaddrs = 192.0.2.11/24
                                           class = ip
                                           label = Untitled Interface
                                          enable = true
                                           admin = true
                                           links = igb0
                                         v4addrs = 
                                          v4dhcp = true
                                         v6addrs = 
                                          v6dhcp = false
    5. 设置 IPv4 地址,将协议从 DHCP 更改为静态,并设置一个新标签以指示它是管理接口。输入 cd ../.. 以返回下一步的正确上下文。
      hostname:maintenance system setup net interfaces igb0> set v4addrs=192.0.2.11/24
                                    v4addrs = 192.168.1.101/24 (uncommitted)
      hostname:maintenance system setup net interfaces igb0> set v4dhcp=false
                                     v4dhcp = false (uncommitted)
      hostname:maintenance system setup net interfaces igb0(uncommitted)> set label=management-controller
                                    label = management-controller (uncommitted)
      hostname:maintenance system setup net interfaces igb0 (uncommitted)> commit
      hostname:maintenance system setup net interfaces igb0> cd ../..
  3. 配置域名服务 (Domain Name Service, DNS)。

    有关详细信息,请参见Oracle ZFS Storage Appliance 管理指南,发行版 OS8.8.0 中的 DNS 配置

    Configure DNS. Configure the Domain Name Service.
    
    Subcommands that are valid in this context:
    
       help [topic]         => Get context-sensitive help. If [topic] is specified,
                               it must be one of "builtins", "commands", "general",
                               "help", "script" or "properties".
    
       show                 => Show information pertinent to the current context
    
       commit               => Commit current state, including any changes
    
       abort                => Abort this task (potentially resulting in a
                               misconfigured system)
    
       done                 => Finish operating on "dns"
    
       get [prop]           => Get value for property [prop]. ("help properties"
                               for valid properties.) If [prop] is not specified,
                               returns values for all properties.
    
       set [prop]           => Set property [prop] to [value]. ("help properties"
                               for valid properties.) For properties taking list
                               values, [value] should be a comma-separated list of
                               values.
    
    hostname:maintenance system setup dns> show
    Properties:
                          <status> = online
                            domain = sun.com
                           servers = 198.51.100.1
    
    hostname:maintenance system setup dns> set domain=sf.fishworks.com
                            domain = sf.fishworks.com (uncommitted)
    hostname:maintenance system setup dns> set servers=198.51.100.2
                           servers = 198.51.100.2 (uncommitted)
    hostname:maintenance system setup dns> commit
    hostname:maintenance system setup dns> done
    aksh: done with "dns", advancing configuration to "ntp" ...
  4. 配置网络时间协议 (Network Time Protocol, NTP) 以同步设备时钟。

    注 -  如果您使用 SMB 和 Active Directory 共享文件系统,必须将客户机时钟与设备时钟同步(相差在五分钟之内),以免发生用户验证错误。确保时钟同步的一种方法是将设备和 SMB 客户机配置为使用相同的 NTP 服务器。

    有关详细信息,请参见Oracle ZFS Storage Appliance 管理指南,发行版 OS8.8.0 中的 NTP 配置

    Configure Time. Configure the Network Time Protocol.
    
    Subcommands that are valid in this context:
    
       help [topic]         => Get context-sensitive help. If [topic] is specified,
                               it must be one of "builtins", "commands", "general",
                               "help", "script" or "properties".
    
       show                 => Show information pertinent to the current context
    
       commit               => Commit current state, including any changes
    
       abort                => Abort this task (potentially resulting in a
                               misconfigured system)
    
       done                 => Finish operating on "ntp"
    
       enable               => Enable the ntp service
    
       disable              => Disable the ntp service
    
       get [prop]           => Get value for property [prop]. ("help properties"
                               for valid properties.) If [prop] is not specified,
                                returns values for all properties.
    
       set [prop]           => Set property [prop] to [value]. ("help properties"
                               for valid properties.) For properties taking list
                               values, [value] should be a comma-separated list of
                               values.
    
    hostname:maintenance system setup ntp> set servers=0.pool.ntp.org
                           servers = 0.pool.ntp.org (uncommitted)
    hostname:maintenance system setup ntp> commit
    hostname:maintenance system setup ntp> done
    aksh: done with "ntp", advancing configuration to "directory" ...
  5. 配置名称服务。

    有关详细信息,请参见Oracle ZFS Storage Appliance 管理指南,发行版 OS8.8.0 中的 配置服务


    注 -  Active Directory 有两种模式:域模式和工作组模式,它们指示 SMB 用户的验证方式。在域模式下,SMB 客户机通过 Active Directory 域控制器进行验证,您必须确保设备和域控制器上的时间匹配(相差在五分钟之内)。

    NIS 是一个较旧的目录协议,并不是非常安全,在很大程度上已由 LDAP 取代。建议不要同时运行 NIS 和 LDAP,因为它们使用相同的域名设置。


    Configure Name Services. Configure directory services for users and groups. You
    can configure and enable each directory service independently, and you can
    configure more than one directory service.
    
    Subcommands that are valid in this context:
    
       nis                  => Configure NIS
    
       ldap                 => Configure LDAP
    
       ad                   => Configure Active Directory
    
       help [topic]         => Get context-sensitive help. If [topic] is specified,
                               it must be one of "builtins", "commands", "general",
                               "help" or "script".
    
       show                 => Show information pertinent to the current context
    
       abort                => Abort this task (potentially resulting in a
                               misconfigured system)
    
       done                 => Finish operating on "directory"
    
    hostname:maintenance system setup directory> nis
    hostname:maintenance system setup directory nis> show
    Properties:
                          <status> = online
                            domain = sun.com
                         broadcast = true
                         ypservers = 
    
    hostname:maintenance system setup directory nis> set domain=fishworks
                            domain = fishworks (uncommitted)
    hostname:maintenance system setup directory nis> commit
    hostname:maintenance system setup directory nis> done
    hostname:maintenance system setup directory> done
    aksh: done with "directory", advancing configuration to "support" ...
  6. 配置存储池。

    有关详细信息,请参见Oracle ZFS Storage Appliance 管理指南,发行版 OS8.8.0 中的 配置存储

    Configure Storage.
    
    Subcommands that are valid in this context:
    
        help [topic]         => Get context-sensitive help. If [topic] is specified,
                              it must be one of "builtins", "commands", "general",
                              "help", "script" or "properties".
    
        show                 => Show information pertinent to the current context
    
        commit               => Commit current state, including any changes
    
        done                 => Finish operating on "storage"
    
        config <pool>        => Configure the storage pool
    
        unconfig             => Unconfigure the storage pool
    
        add                  => Add additional storage to the storage pool
    
        import               => Search for existing or destroyed pools to import
    
        scrub <start|stop>   => Start or stop a scrub
    
        get [prop]           => Get value for property [prop]. ("help properties"
                              for valid properties.) If [prop] is not specified,
                              returns values for all properties.
    
        set pool=[pool]      => Change current pool
    
    hostname:maintenance system setup storage> show
    Properties:
                              pool = pool-0
                            status = online
                           profile = mirror
                       log_profile = -
                     cache_profile = -
    hostname:maintenance system setup storage> done
    aksh: done with "storage", advancing configuration to "support" ...
  7. 配置远程支持。

    注 -  您可以立即配置远程支持,也可以在其他时间配置。如果您没有 Oracle 支持帐户,请在未配置远程支持的情况下输入 done,稍后再完成。有关稍后配置远程支持或获取 Oracle 支持帐户的更多信息,请参见Oracle ZFS Storage Appliance 管理指南,发行版 OS8.8.0 中的 回拨配置
    Remote Support. Register your appliance and configure remote monitoring.
    
    Subcommands that are valid in this context:
    
       tags                 => Configure service tags
    
       scrk                 => Configure phone home
    
       help [topic]         => Get context-sensitive help. If [topic] is specified,
                               it must be one of "builtins", "commands", "general",
                               "help" or "script".
    
       show                 => Show information pertinent to the current context
    
       abort                => Abort this task (potentially resulting in a
                               misconfigured system)
    
       done                 => Finish operating on "support"
    
     hostname:maintenance system setup support> done
     aksh: initial configuration complete!

后续步骤

相关主题