Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2397315
  • 博文数量: 328
  • 博客积分: 4302
  • 博客等级: 上校
  • 技术积分: 5486
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-01 11:14
个人简介

悲剧,绝对的悲剧,悲剧中的悲剧。

文章分类

全部博文(328)

文章存档

2017年(6)

2016年(18)

2015年(28)

2014年(73)

2013年(62)

2012年(58)

2011年(55)

2010年(28)

分类: 系统运维

2012-03-28 11:05:25


用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
阅读(10838) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~