国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 操作系統(tǒng) > 正文

Jumpstart安裝實(shí)例

2024-07-26 00:29:31
字體:
供稿:網(wǎng)友
又被mmmmn“出賣”,不過也好,我也該發(fā)推薦貼了,箱子見底了:(
用途不太廣泛,對(duì)有些需要的朋友有幫助的話就沒白忙活:)
如果還有人說照著這個(gè)還裝不出來的話!
我就!!!@#$^@$%^&#$%&$%&
==================================================================

Jumpstart安裝實(shí)例(作者:bear)

一、正常用CD-ROM手工安裝一臺(tái)機(jī)器(以下稱Install_sever),準(zhǔn)備將其配置成Install Server
   <過程省略>
二、按照用戶分配的ip地址、規(guī)劃的hostname,和需要利用網(wǎng)絡(luò)安裝的主機(jī)的Ethernet Address
   修改Server的/etc/hosts和/etc/ethers
   例如:/etc/hosts中加入以下行
         129.148.94.6     Client1
 129.148.94.7     Client2
.
.
         /etc/ethers中加入以下行
 8:0:20:30:6:9a   Client1
 8:0:20:30:6:83   Client2
.
.

三、制作Solaris OS Image
   1、在Install_sever的CD-ROM中放入Solaris 8 Software 1 of 2光盤
   2、運(yùn)行以下命令:
      # cd /cdrom/cdrom0/s0/Solaris_8/Tools
      # ./setup_install_server /export/install
      (其中/export/install所在的分區(qū)必須有足夠的空間,至少800M以上,建議1G
       如果/分區(qū)空間不夠,可選用其他目錄,只要于以后使用該目錄時(shí)保持一致即可
       如可以使用/export/home/install)
   3、等待程序運(yùn)行完成以后,運(yùn)行以下命令取出Solaris 8 Software 1 of 2光盤
      并放入Solaris 8 Software 2 of 2光盤
      # cd /
      # eject
   4、運(yùn)行以下命令:
      # cd /cdrom/cdrom0/Solaris_8/Tools
      # ./add_to_install_server /export/install
   5、等待程序運(yùn)行完成以后,運(yùn)行以下命令取出Solaris 8 Software 2 of 2光盤
      并放入Solaris 8 Language 光盤
      # cd /
      # eject
   6、運(yùn)行以下命令:
      # cd /cdrom/cdrom0/Tools
      # ./add_to_install_server -s /export/install
      按照系統(tǒng)提示選擇"Simplified Chinese"(簡(jiǎn)體中文)選項(xiàng),安裝相應(yīng)軟件包
   7、等待程序運(yùn)行完成以后,運(yùn)行以下命令取出Solaris 8 Language 光盤
      # cd /
      # eject

   至此制作Solaris OS Image的工作完成
四、配置jumpstart相關(guān)信息
   1、運(yùn)行以下命令
      # mkdir /jumpstart
      # cp -r /export/install/Solaris_8/Misc/jumpstart_sample/* /jumpstart
   2、用ftp將事先制作好的以下幾個(gè)文件上傳至/jumpstart中(ftp上傳時(shí)請(qǐng)用ascii碼格式)
      (用vi看一下文件的內(nèi)容,如果文本行結(jié)尾有多余的^M,請(qǐng)將文件中的^M全部刪除,或用
       命令dos2unix轉(zhuǎn)換)
      sysidcfg
      rules
      test_PRof_18G
      test_prof_36G
   3、按照用戶設(shè)置的netmask(網(wǎng)絡(luò)掩碼)修改sysidcfg文件中network_interface的相關(guān)參數(shù)
      例如:
      原條目:network_interface=primary {netmask=255.255.255.0 protocol_ipv6=no}

      修改成:network_interface=primary {netmask=255.255.252.0 protocol_ipv6=no}
      保存文件
   4、運(yùn)行以下命令:
      # cd /jumpstart
      # ./check<---檢查rules文件語法,并生成rules.ok文件
      此時(shí)可以查看一下rules.ok文件是否生成

五、共享必要的目錄
   1、編輯/etc/dfs/dfstab文件加入以下行
      share -F nfs -o ro,anon=0 /jumpstart
   2、運(yùn)行以下命令:
      # /usr/lib/nfs/nfsd -a 16
      # /usr/lib/nfs/mountd
      # share /jumpstart
      # shareall
      (用以下命令查看/jumpstart是否share出來了,如果有以下輸出表示share正常)
      # dfshares Install_sever
       RESOURCE       SERVERaccessTRSPOT
         Install_sever:/jumpstart Install_sever--

六、授權(quán)Clients安裝
   運(yùn)行以下命令:
   # cd /export/install/Solaris_8/Tools
   # ./add_install_client -c Install_sever:/jumpstart -p Install_sever:/jumpstart Client1 sun4u
   # ./add_install_client -c Install_sever:/jumpstart -p Install_sever:/jumpstart Client2 sun4u
.
.
.
   以上命令要逐個(gè)授權(quán)在/etc/hosts中加入的每一個(gè)需要利用網(wǎng)絡(luò)安裝的主機(jī)

七、引導(dǎo)Client機(jī)器,利用網(wǎng)絡(luò)安裝操作系統(tǒng)
   1、檢查網(wǎng)絡(luò)連接是否正確
   2、Client開機(jī)后用Stop+A將機(jī)器控制在OK提示符下
   3、鍵入以下命令利用網(wǎng)絡(luò)安裝操作系統(tǒng):
      ok boot net - install


附錄1:例子文件及相關(guān)解釋:

sysidcfg 文件內(nèi)容


name_service=NONE#指定名服務(wù)為NONE
network_interface=primary {netmask=255.255.252.0 protocol_ipv6=no}#設(shè)置網(wǎng)絡(luò)相關(guān)參數(shù)
security_policy=NONE#設(shè)置安全策略為NONE
terminal=dtterm#設(shè)置終端類型為dtterm
timezone=PRC#設(shè)置時(shí)區(qū)信息為PRC
system_locale=zh#設(shè)置本地信息為zh(中文)
timeserver=localhost#設(shè)置時(shí)鐘信息為localhost(本機(jī))

rules 文件內(nèi)容
# rule keyWords and rule valuess begin script profile finish script
# ----------------------------- ------------ -------- -------------
 disksize c0t0d0 15000-20000- test_prof_18G-
 disksize c0t0d0 30000-40000- test_prof_36G-

第一行設(shè)置磁盤大小在15G-20G(18G硬盤)的用 test_prof_18G 配置文件
第一行設(shè)置磁盤大小在30G-40G(36G硬盤)的用 test_prof_36G 配置文件

test_prof_18G 文件內(nèi)容

install_type initial_install#指定安裝類型為 initial
usedisk c0t0d0#指定系統(tǒng)選擇的硬盤為 c0t0d0
boot_device c0t0d0s0 update#設(shè)置root文件系統(tǒng)及引導(dǎo)設(shè)備位置,并更新EEPROM 中的參數(shù)。
root_device c0t0d0s0#設(shè)置root文件系統(tǒng)位置為 c0t0d0s0
cluster SUNWCXall#設(shè)置系統(tǒng)軟件安裝類別為Entire Distribution Plus OEM Support
system_type standalone#設(shè)置系統(tǒng)類型為 standalone
partitioning explicit#指定硬盤分區(qū)方式(explicit 表示使用filesys 定義的結(jié)構(gòu))
filesys c0t0d0s0 2000 / -/
filesys c0t0d0s1 1500 /var - |
filesys c0t0d0s3 2500 swap |
filesys c0t0d0s5 3000 /opt - }-> 具體每一個(gè)分區(qū)的信息(大小為兆字節(jié))
filesys c0t0d0s6 2000 /usr - |
filesys c0t0d0s4 15   unnamed |
filesys c0t0d0s7 free /export/home -/
geo Asia#指定地理區(qū)域
locale zh#指定本地化語言包
isa_bits 64#計(jì)算位長(zhǎng)(64 或32)

配置注意事項(xiàng):
1、install_type 必須寫在第1行
2、標(biāo)記為容量為“free”的分區(qū)如“filesys c0t0d0s7 free /export/home -”
  必須寫在所有“filesys”定義的最后一個(gè)

test_prof_36G 文件內(nèi)容

相應(yīng)的解釋與test_prof_18G 文件相同
區(qū)別只在“filesys”的分區(qū)大小定義不同
install_type initial_install
usedisk c0t0d0
boot_device c0t0d0s0 update
root_device c0t0d0s0
cluster SUNWCXall
system_type standalone
partitioning explicit
filesys c0t0d0s0 3000 / -
filesys c0t0d0s1 3000 /var -
filesys c0t0d0s3 3000 swap
filesys c0t0d0s5 5000 /opt -
filesys c0t0d0s6 3000 /usr -
filesys c0t0d0s4 15   unnamed
filesys c0t0d0s7 free /export/home -
geo Asia
locale zh
isa_bits 64


如果有其他特殊需求請(qǐng)參照:“Solaris 8 Advanced Installation Guide”
                         (Part Number:806–0957–10)

附例:JumpStart Install Server 安裝過程:

附錄1:實(shí)例安裝記錄
   此例中:
   JumpStart Install_Server的信息如下:
      Hostame: jumptest
IP: 10.11.147.60

   2個(gè)Install Client信息如下
   Client1:
Hostame: test-1
IP: 10.11.147.38
Ethernet: 8:0:20:ce:ec:d6
c0t0d0: 18G

   Client2:
Hostame: test-2
IP: 10.11.147.39
Ethernet: 8:0:20:ce:ec:ae
c0t0d0: 18G

root@jumptest # cd /cdrom/sol_8_sparc/s0/Solaris_8/Tools
root@jumptest # ./setup_install_server /export/home/install
Verifying target directory...
Calculating the required disk space for the Solaris_8 product
Copying the CD image to disk...
Install Server setup complete
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_sparc_2/Solaris_8/Tools
root@jumptest # ./add_to_install_server /export/home/install

The following Products will be copied to /export/home/install/Solaris_8/Product:

Solaris_2_of_2

If only a subset of products is needed enter Control-C
and invoke ./add_to_install_server with the -s option.

Checking required disk space...

Copying the Early Access products...
41990 塊

Processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_lang_sparc/Tools
root@jumptest # ./add_to_install_server -s /export/install /export/home/install

Enter the number of the product(s) you want to add
to /export/home/install/Solaris_8/Product or 'all' for all products.

The following are valid products:

    1Simplified_Chinese
    2French
    3German
    4Italian
    5Japanese
    6Korean
    7Spanish
    8Swedish
    9Traditional_Chinese
   10shared

1

Checking required disk space...

Copying SimplifiedChinese packages...

Processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /jumpstart
root@jumptest # ./check
Validating rules...
Validating profile test_prof_18G...
Validating profile test_prof_36G...
The custom JumpStart configuration is ok.
root@jumptest # ls
any_machine     net924_sun4c    rules           sysidcfg        x86-begin.conf
check           test_prof_18G    rules.ok        upgrade         x86-class
host_class      test_prof_36G    set_root_pw     x86-begin
root@jumptest # /usr/lib/nfs/nfsd -a 16
root@jumptest # /usr/lib/nfs/mountd
root@jumptest # share /jumpstart
root@jumptest # shareall
root@jumptest # dfshares jumptest
RESOURCE                                  SERVER ACCESS    TRANSPORT
  jumptest:/jumpstart                    jumptest  -         -
root@jumptest # cd /export/home/install/Solaris_8/Tools
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-1 sun4u
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /export/home/install" to /etc/dfs/dfstab
updating /etc/bootparams
copying inetboot to /tftpboot
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-2 sun4u
updating /etc/bootparams
root@jumptest #

備注:例子中會(huì)有目錄不同的情況
    如不是/cdrom/cdrom0,而是/cdrom/sol_8_sparc/、/cdrom/sol_8_sparc_2
    或/cdrom/sol_8_lang_sparc,其實(shí)/cdrom/cdrom0是指向這些目錄的連接,沒有問題

(bear:2002/6/13 下午于chinaunix.net)

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 嘉黎县| 岳阳市| 营口市| 普兰店市| 湘西| 黄平县| 黄龙县| 铁岭县| 英吉沙县| 八宿县| 贵定县| 锦州市| 信阳市| 隆安县| 乐昌市| 常山县| 巴林右旗| 绥化市| 三江| 东至县| 肥东县| 芜湖市| 什邡市| 灯塔市| 临清市| 开江县| 富锦市| 枣阳市| 津市市| 卢湾区| 大余县| 霞浦县| 安义县| 商河县| 二手房| 弥勒县| 偏关县| 沾化县| 海阳市| 化州市| 公安县|