美文网首页
2023-03-18

2023-03-18

作者: wxy_7fa5 | 来源:发表于2023-03-19 10:08 被阅读0次
    solaris
    showrev  查看系统版本
    
    
    

    1.准备

    1.关闭笔记本的无线
    2.重新拔两块盘,原来的盘已经坏了
    
    a.登录
      #打开服务器电源后,连接串口线,在终端设备上以root身份登录到SP。
      login: root
      Password: changeme
      . . . -> 经过短暂延迟之后,将显示 Oracle ILOM 提示符 (->)
    b.进OK模式
      #从ILOM中,将OpenBoot auto-boot? 参数设置为false,以阻止服务器从预先安装的OS引导。
      #bootmode表示更改将仅应用于单次引导
      -> set /HOST/bootmode script="setenv auto-boot? false"  
      -> reset /SYS              #重新加电
      -> start /SP/console       #重定向主机输出,使其显示在串行终端设备上
    c.banner查看板载网卡第一个口的mac地址
      #进入OK后,笔记本连接服务器板载网卡第一个网口【1.要连接网线?】
      {0} ok banner
      SPARC T4-1, No Keyboard
      Copyright (c) 1998, 2011, Oracle and/or its affiliates. All  rights reserved.
      OpenBoot 4.33.4, 65024 MB memory available, Serial  #100249168.
      Ethernet address 0:21:28:f9:ae:50, Host ID: 85f9ae50.【2.mac】
    

    2.服务器端配置

    1.创建网络共享目录并上传镜像
     # mkdir /export/home/solaris10u11
     Xshell点击"新建文件传输"图标
       sftp:/> lcd D:\ISO\solaris-10-x86
       sftp:/> put -r    #将本地iso文件上传到该目录
     # cd /
     # cp sol-10-u11-ga-sparc-dvd.iso /export/home/solaris10u11
    2.挂载镜像至/mnt/iso
     # mkdir iso
     # lofiadm -a /export/home/solaris10u11/sol-10-u11-ga-sparc-dvd.iso  /dev/lofi/1    挂载镜像至/mnt/iso
     # mount -F hsfs -o ro /dev/lofi/1 /mnt/iso 
    3.创建安装服务
     # cd /mnt/iso/Solaris_10/Tools/    
     # ./setup_install_server /export/home/solaris_install/ 
    4.使引导服务器可以访问安装服务器
    bash-3.2# vi /etc/dfs/dfstab 
    #       Place share(1M) commands here for automatic execution
    #       on entering init state 3.
    #
    #       Issue the command 'svcadm enable network/nfs/server' to
    #       run the NFS daemon processes and the share commands, after adding
    #       the very first entry to this file.
    #
    #       share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
    #       .e.g,
    #       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
    share  -F  nfs  -o   ro,anon=0 -d "install server directory" /export/home/solaris_install
    5.共享安装服务器
      # shareall    #使用ssh连接,会显示couldn't set locale correctly
      # share
    -               /export/home/solaris_install   ro,anon=0   "install server directory"
    
    6.在服务器配置客户机信息
     a.hosts文件配置本机及目标主机IP及主机名
      # vi /etc/hosts
       "/etc/hosts" [Read only] 6 lines, 90 characters
       #
       # Internet host table
       #
       ::1     localhost
       127.0.0.1       localhost
       192.168.0.54    xingyi  loghost    【3.本机地址及主机名】
       192.168.0.210   radius-4           【4..目标主机IP地址及主机名】
     b.客户机mac和主机名
      # vi /etc/ethers 
       0:21:28:f9:ae:50  radius-4   【5.目标主机第一个板载网口地址和主机名】
    
    7.启动tftp服务
     # vi /etc/inet/inetd.conf
      # CacheFS daemon.  Provided only as a basis for conversion by inetconv(1M).
      #
      100235/1 tli rpc/ticotsord wait root     /usr/lib/fs/cachefs/cachefsd cachefsd
      # TFTPD - tftp server (primarily used for booting)
    tftp    dgram   udp6    wait    root    /usr/sbin/in.tftpd      in.tftpd -s /tftpboot
    
    8.将tftp加入svcs服务中,并启动服务
      # inetconv -i /etc/inet/inetd.conf 1>/dev/null 2>&1
      # svcadm enable svc:/network/tftp/udp6:default
      # netstat -a|grep tftp
          *.tftp                              Idle
          *.tftp                                                        Idle   
    9.客户端启动参数配置
     #cd /export/home/solaris_install/Solaris_10/Tools/
     #./add_install_client -e 0:21:28:f9:ae:50 radius-4 sun4v【6.】
        #不能用ssh输入,目标主机mac地址 主机名 类型(在目标主机uname -m获取)
     # ./add_install_client  -i 192.168.0.210 -e 0:21:28:f9:ae:50 -s 192.168.0.54:/export/home/solaris_install/ radius-4 sun4v
        #-i目标主机ip地址 -e 目标主机mac地址 -s 本机共享的安装目录  主机名  主机类型【7.】
    
    10.检测生成的启动文件/etc/bootparams与/tftpboot/信息
     # cat /etc/bootparams
    radius-4      root=test:/export/home/solaris_install/Solaris_10/Tools/Boot install=192.168.0.10:/export/home/solaris_install/ boottype=:in rootopts=:rsize=8192 
     # ls /tftpboot/
    C0A800D2                     C0A800D2.SUN4V               inetboot.SUN4V.Solaris_10-1  rm.192.168.0.210             tftpboot
    

    3.ok模式下做硬raid

    F2会进入到一个界面,format执行label磁盘
    划好盘后重新开始安装即可
    
    
    注意:仅限配置有raid卡的主机划volume
    {0} ok probe-scsi-all                           #查看系统硬盘路径
    {0} ok select /pci@400/pci@1/pci@0/pci@4/scsi@0 #进入系统硬盘路径
    {0} ok show-volumes                       #查看系统硬盘是否已有raid
    {0} ok show-children                      #查看系统硬盘id及其它信息
    
    {0} ok b c create-raid1-volume         #选择b、c磁盘创建raid1逻辑卷
    {0} ok show-volumes                    #查看创建的卷
    {0} ok unselect-dev                    #退出设备目录
    {0} ok probe-scsi-all
    
    {0} ok select /pci@400/pci@1/pci@0/pci@4/scsi@0
    {0} ok select /pci@400/pci@2/pci@0/pci@4/scsi@0
    {0} ok show-volumes                    
    {0} ok 0 activate-volume               #激活卷组0
    {0} ok unselect-dev                     #退出设备目录
    
    

    4.启动网络安装

    1.ok模式下按F2进入一个新界面,format执行label磁盘
    开始启动网络安装
     {0} ok boot net
      [BEGIN] 2021/8/3 17:34:49
      SunOS Release 5.10 Version Generic_147147-26 64-bit
      Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
      Configuring devices.
      WARNING: /pci@400/pci@1/pci@0/pci@4/scsi@0 (mpt_sas0):
            Volume 897 is missing
    WARNING: /pci@400/pci@1/pci@0/pci@4/scsi@0/iport@v0/disk@w31b59822245248fc,0 (sd6):
            Corrupt label; wrong magic number
    
    Using RPC Bootparams for network configuration information.
    Attempting to configure interface igb15...
    Skipped interface igb15
    ……
    Attempting to configure interface igb0...
    Skipped interface igb0
    svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a failed: one or more file systems failed to mount
    Setting up Java. Please wait...
    Serial console, reverting to text install
    Beginning system identification...
    Searching for configuration file(s)...
    Search complete.
    Discovering additional network configuration...
    
    16.选择语言
    Select a Language
       0. English
       1. Brazilian Portuguese
       2. French
       3. German
       4. Italian
       5. Japanese
       6. Korean
       7. Simplified Chinese
       8. Spanish
       9. Swedish
      10. Traditional Chinese
    
    

    https://max.book118.com/html/2021/1017/7101014060004023.shtm

    https://www.linuxdiyf.com/linux/6825.html

    https://blog.csdn.net/duanzongbin/article/details/7259883

    https://www.cnblogs.com/emanlee/archive/2012/07/09/2583764.html

    https://max.book118.com/html/2018/0921/5231102211001314.shtm

    https://wenku.baidu.com/view/995c2c74f46527d3240ce0b7.html?

    输入bash,进入
    
    网络安装:
     现在宕机了是181
     
       方法二:使用虚拟机中的xp系统,设置和192.168.70.121为同一网段。
                    a.设置电脑VMnet8的ipv4:由192.168.0.1改为192.168.70.1(网关由0.254改为70.254)
                    b.设置虚拟网络编辑器:子网ip由192.168.0.0改为192.168.70.0(网关由0.254改为70.254)
                    c.xp的ip由0.51改为70.51(网关由0.254改为70.254) 
                    
    10.23.241.100 xingyi      
    10.23.241.181 radius-4
    

    相关文章

      网友评论

          本文标题:2023-03-18

          本文链接:https://www.haomeiwen.com/subject/kujjrdtx.html