用uname命令更改的主机名会在机器重启后失效。所以改主机名,改默认路由最好在sam里面改,很简单的。用命令添加的设置在机器重启就会消失,除非你做成一个脚本,每次启动的时候都执行.
改主机名,改时间日期,时区,最好使用set_parms来,
改IP,路由在sam和配置文件/etc/rc.config.d/netconf里面都可以改的,但是安全的做法还是用sam.
附:
1、主机名解析问题:
# swlist
# Initializing...
# Contacting target "zduat"...
WARNING: An attempt to get the network host entry for "zduat" failed.
This may result in denial of access to users and agents at
this host. Check the spelling of this name, then your
"/etc/hosts" file, or your "/etc/resolv.conf" file and DNS
resolver configuration. The nslookup program may be helpful
in isolating this problem.
ERROR: Internal error. Security check failed unexpectedly. This
error occurred in function "idam_LocateLocalFile", source file
"id.c", line 4765. Please give this information to your
Hewlett-Packard support contact.
ERROR: "zduat:/": You do not have permission for this operation.
The depot owner, system administrator, or alternate root owner
may need to use the "swreg" or "swacl" command to give you
permission. Or, to manage applications designed and packaged
for nonprivileged mode, see the "run_as_superuser" option in
the "sd" man page.
这样的错误解决办法是
1)ping `hostname`
是否能解析出本机IP
2)cat /etc/resolv.conf
如果配置了 nameserver
将 nameserver 以#注释掉
3)cat /etc/nsswitch.conf
是否配置解析顺序。
正确的解析 顺序是 host: files dns (这个和 里的host.conf 有不一样)
先找hosts文件,然后再用DNS (根据个人配置)
2、逻辑卷:
pvcreate -f /dev/rdisk/disk4
pvcreate -f /dev/rdisk/disk6
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate -l 255 -s 32 -p 100 /dev/vg01 /dev/disk/disk4 /dev/disk/disk6
lvcreate -L 51200 -n lvwork /dev/vg01
newfs -F vxfs /dev/vg01/rlvwork
cd /
mkdir work
vi /etc/fstab
/dev/vg01/lvwork /work vxfs delaylog 0 2
阅读(10925) | 评论(0) | 转发(0) |