solaris
showrev 查看系統(tǒng)版本
1.準(zhǔn)備
1.關(guān)閉筆記本的無線
2.重新拔兩塊盤摹恨,原來的盤已經(jīng)壞了
a.登錄
#打開服務(wù)器電源后流炕,連接串口線蓖捶,在終端設(shè)備上以root身份登錄到SP麸俘。
login: root
Password: changeme
. . . -> 經(jīng)過短暫延遲之后架馋,將顯示 Oracle ILOM 提示符 (->)
b.進(jìn)OK模式
#從ILOM中复哆,將OpenBoot auto-boot? 參數(shù)設(shè)置為false班利,以阻止服務(wù)器從預(yù)先安裝的OS引導(dǎo)窗看。
#bootmode表示更改將僅應(yīng)用于單次引導(dǎo)
-> set /HOST/bootmode script="setenv auto-boot? false"
-> reset /SYS #重新加電
-> start /SP/console #重定向主機輸出,使其顯示在串行終端設(shè)備上
c.banner查看板載網(wǎng)卡第一個口的mac地址
#進(jìn)入OK后荒给,筆記本連接服務(wù)器板載網(wǎng)卡第一個網(wǎng)口【1.要連接網(wǎng)線丈挟?】
{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.服務(wù)器端配置
1.創(chuàng)建網(wǎng)絡(luò)共享目錄并上傳鏡像
# mkdir /export/home/solaris10u11
Xshell點擊"新建文件傳輸"圖標(biāo)
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.創(chuàng)建安裝服務(wù)
# cd /mnt/iso/Solaris_10/Tools/
# ./setup_install_server /export/home/solaris_install/
4.使引導(dǎo)服務(wù)器可以訪問安裝服務(wù)器
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.共享安裝服務(wù)器
# shareall #使用ssh連接,會顯示couldn't set locale correctly
# share
- /export/home/solaris_install ro,anon=0 "install server directory"
6.在服務(wù)器配置客戶機信息
a.hosts文件配置本機及目標(biāo)主機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..目標(biāo)主機IP地址及主機名】
b.客戶機mac和主機名
# vi /etc/ethers
0:21:28:f9:ae:50 radius-4 【5.目標(biāo)主機第一個板載網(wǎng)口地址和主機名】
7.啟動tftp服務(wù)
# 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服務(wù)中志电,并啟動服務(wù)
# 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.客戶端啟動參數(shù)配置
#cd /export/home/solaris_install/Solaris_10/Tools/
#./add_install_client -e 0:21:28:f9:ae:50 radius-4 sun4v【6.】
#不能用ssh輸入曙咽,目標(biāo)主機mac地址 主機名 類型(在目標(biāo)主機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目標(biāo)主機ip地址 -e 目標(biāo)主機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會進(jìn)入到一個界面,format執(zhí)行l(wèi)abel磁盤
劃好盤后重新開始安裝即可
注意:僅限配置有raid卡的主機劃volume
{0} ok probe-scsi-all #查看系統(tǒng)硬盤路徑
{0} ok select /pci@400/pci@1/pci@0/pci@4/scsi@0 #進(jìn)入系統(tǒng)硬盤路徑
{0} ok show-volumes #查看系統(tǒng)硬盤是否已有raid
{0} ok show-children #查看系統(tǒng)硬盤id及其它信息
{0} ok b c create-raid1-volume #選擇b挑辆、c磁盤創(chuàng)建raid1邏輯卷
{0} ok show-volumes #查看創(chuàng)建的卷
{0} ok unselect-dev #退出設(shè)備目錄
{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 #退出設(shè)備目錄
4.啟動網(wǎng)絡(luò)安裝
1.ok模式下按F2進(jìn)入一個新界面例朱,format執(zhí)行l(wèi)abel磁盤
開始啟動網(wǎng)絡(luò)安裝
{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,進(jìn)入
網(wǎng)絡(luò)安裝:
現(xiàn)在宕機了是181
方法二:使用虛擬機中的xp系統(tǒng)鱼蝉,設(shè)置和192.168.70.121為同一網(wǎng)段洒嗤。
a.設(shè)置電腦VMnet8的ipv4:由192.168.0.1改為192.168.70.1(網(wǎng)關(guān)由0.254改為70.254)
b.設(shè)置虛擬網(wǎng)絡(luò)編輯器:子網(wǎng)ip由192.168.0.0改為192.168.70.0(網(wǎng)關(guān)由0.254改為70.254)
c.xp的ip由0.51改為70.51(網(wǎng)關(guān)由0.254改為70.254)
10.23.241.100 xingyi
10.23.241.181 radius-4