2023-03-18

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
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 224,176评论 6 522
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 95,928评论 3 402
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 171,252评论 0 366
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 60,700评论 1 300
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 69,717评论 6 399
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 53,231评论 1 314
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 41,608评论 3 428
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 40,572评论 0 279
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 47,117评论 1 324
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 39,137评论 3 344
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 41,280评论 1 354
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 36,908评论 5 350
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 42,597评论 3 336
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 33,067评论 0 25
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 34,202评论 1 275
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 49,784评论 3 380
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 46,308评论 2 365

推荐阅读更多精彩内容