歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

solaris-zone的建立過程中遇到的一些問題及解決方法


在步署的過程還是遇到了不少問題了.
1.在進入到zone當中沒辦法在/home目錄下面進行建立文件操作
bash-3.00# mkdir sdf
mkdir: Failed to make directory "sdf"; Operation not applicable
報會這種錯,經ADA解釋是automount的問題,在zone中/etc/auto_master當中把/home前面注釋一下,把zone重啟一下就OK了
2.在zone中修改完網卡IP配置文件後,重啟zone不生效.還是原來的IP.
下面是具體的操作過程,中間也順便解決了,在zone配置過程中刪除配置選項的使用
宿主做的操作
# zoneadm -z pud2 halt
[root@p-ud-bak /]
# zonecfg -z pud2
zonecfg:pud2> info
zonename: pud2
zonepath: /home/pud2
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 192.168.191.132
physical: bcme2
net:
address: 192.168.1.131
physical: bcme3
zonecfg:pud2> remove net
Are you sure you want to remove ALL 'net' resources (y/[n])? y
zonecfg:pud2> info
zonename: pud2
zonepath: /home/pud2
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
zonecfg:pud2> add net
zonecfg:pud2:net> set address=192.168.191.132/24
zonecfg:pud2:net> set physical=bcme2
zonecfg:pud2:net> end
zonecfg:pud2> add net
zonecfg:pud2:net> set address=192.168.1.12/24
zonecfg:pud2:net> set physical=bcme3
zonecfg:pud2:net> end
zonecfg:pud2> info
zonename: pud2
zonepath: /home/pud2
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 192.168.191.132/24
physical: bcme2
net:
address: 192.168.1.12/24
physical: bcme3
zonecfg:pud2> verify
zonecfg:pud2> commit
zonecfg:pud2> exit
[root@p-ud-bak /]
# zoneadm list -vi
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- pud2 installed /home/pud2 native shared
[root@p-ud-bak /]
# zoneadm -z pud2 boot
[root@p-ud-bak /]
再查看zone的IP就已經改過來了
選總結這些,以後遇到問題再繼續總結
Copyright © Linux教程網 All Rights Reserved