分类:
2008-08-21 15:04:57
在步署的过程还是遇到了不少问题了.
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就已经改过来了
选总结这些,以后遇到问题再继续总结