1.Check the current environment properties:
root@sun1:~# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/nodename astring sun1
config/loopback astring sun1
2. Change to new name
root@sun1:~# svccfg -s system/identity:node setprop config/nodename="sun01"
root@sun1:~# svccfg -s system/identity:node setprop config/loopback="sun01"
3. Refresh the properties:
root@sun1:~# svccfg -s system/identity:node refresh
4. Restart the service:
root@sun1:~# svcadm restart system/identity:node
5. Verify changes:
root@sun1:~# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/nodename astring sun01
config/loopback astring sun01
6. Reboot to refresh all cached old host name.
No comments:
Post a Comment