免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2861 | 回复: 19
打印 上一主题 下一主题

[故障求助] 一个超难的问题!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-10 05:14 |只看该作者 |倒序浏览
我有一个问题:怎样修改hdisk*名
我想修改我的磁盘名hdisk23到hdisk25.
磁盘名hdisk23在 fastt上。

#lsdev -Cl hdisk14 -F 'class subclass type connwhere' -H
class subclass type  connwhere
disk  fdar     array 13

#lsparent -Cl hdisk14 -H
name status             location description
dar0 Available          1742     (700) Disk Array Router

#mkdev -p dar0 -t array -c disk -s fdar -w 13 -l hdisk27
Method error (/etc/methods/define):
0514-022 The specified connection is not valid.

我想可能是parentname和subclass有问题。

另外,我通过修改odm,也没有成功修改设备名。
那位有过相关经验,请告知!
急等!!!

论坛徽章:
0
2 [报告]
发表于 2004-09-10 05:16 |只看该作者

一个超难的问题!!

另外,怎样用lsconn获得parentdevice?

论坛徽章:
0
3 [报告]
发表于 2004-09-11 13:11 |只看该作者

一个超难的问题!!

cp /etc/objrepos/Cu* /bak/
odmget -q name=hdisk14 CuAt >;hdisk14.odm.cuat
odmget -q name=hdisk14 CuDv >;hdisk14.odm.cudv
odmget -q name=hdisk14 CuVPD >;hdisk14.odm.cuvpd


vi hdisk14.odm.*
:%s/hdisk14/hdisksunbeat14/
n
haha

odmdelete -q name=hdisk14 CuAt
odmdelete -q name=hdisk14 CuDv
odmdelete -q name=hdisk14 CuVPD

odmadd hdisk14.odm.cuat
odmadd hdisk14.odm.cudv
odmadd hdisk14.odm.vpd

lspv
lsvg -o|lsvg -ip

but now...
topas
hehe

reboot

now
topas

OK

论坛徽章:
0
4 [报告]
发表于 2004-09-14 02:10 |只看该作者

一个超难的问题!!

i attempt to use this way to fix my problems, and the first stages seem ok, but i get the error when i creat a new vg on that hdisk14 whick  was changed with the new name, for example, hdisk17.
and when i delete the device name hdisk14 and associated odm information and creat a new disk on fastT and map the disk to my aix box, i found another problem. the old hdisk, for example, hdisk14 was still ocuppied the device name hdisk14 and the new disk has to use the hdisk15.but i alread delete the hdisk14 and odm information.
and i also get the error message with cfgmgr
could you tell me why?

论坛徽章:
0
5 [报告]
发表于 2004-09-14 19:02 |只看该作者

一个超难的问题!!

呵呵,有语法错误!

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-05-12 06:20:00
6 [报告]
发表于 2004-09-14 19:33 |只看该作者

一个超难的问题!!

这么改很容易出错吧

论坛徽章:
0
7 [报告]
发表于 2004-09-15 02:01 |只看该作者

一个超难的问题!!

the grammer has some problems, but even i fix the wrong grammer, i still get the errors

论坛徽章:
0
8 [报告]
发表于 2004-09-15 09:39 |只看该作者

一个超难的问题!!

reboot is the key problem.
otherwise,the /dev/rhdiskxx & /dev/hdiskxx will has the wrong name.
Maybe,you need to delete the /dev/*hdisk* which you want to change

论坛徽章:
0
9 [报告]
发表于 2004-09-16 00:22 |只看该作者

一个超难的问题!!

my aix box is live production, so  i cant reboot it.
do you have another tip can fix it?

you are absolutely a expert!!!
i am waiting for the response!!!

论坛徽章:
0
10 [报告]
发表于 2004-09-16 17:34 |只看该作者

一个超难的问题!!

Try use this:

Remember the major/minor number of the hdisk14:
brw-------   1 root     system    14,  7 Aug 06 21:38 /dev/hdisk14
crw-------   1 root     system    14,  7 Aug 06 21:38 /dev/rhdisk14

Remove the device link of the hdisk14
rm -f /dev/hdisk14
rm -f /dev/rhdisk14

Make a new device link for the hdisksunbeat14
cd /dev
mknod hdisksunbeat14 b 14 7
mknod rhdisksunbeat14 c 14 7
chmod 600 *hdisksunbeat14
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP