免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: dhm007
打印 上一主题 下一主题

[新手入门] 如何更改hdisk的号码 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-04-15 10:12 |只看该作者
怎么将pdisk加到指定的hdisk?

论坛徽章:
0
12 [报告]
发表于 2008-04-15 10:25 |只看该作者
两边都删除,重新自动认,终于一致了

论坛徽章:
0
13 [报告]
发表于 2008-04-15 13:44 |只看该作者
再教你一个办法:

有的时候由于个种原因导致rootvg安装在了hdisk2上,往往会引起操作时的混淆。以前以为rootvg就没法改回来了,以前只能加块盘,mirror之后,使剩下hdisk0,系统导过去。现在可以用这个试下,IBM上看到的,注意先备份系统,以防万一。


重启系统后硬盘的名字顺序会根据设备配置过程中的顺序来决定,例如,在地址00-00-0S-00的硬盘编号将会在地址是00-00-0S-20 和 00-05-00-00的硬盘
之后。

lsdev -Cc disk | awk '{ print $1 }' | while read HDname; do
odmdelete -q "name = $HDname" -o CuAt
odmdelete -q "value = $HDname" -o CuAt
odmdelete -q "name = $HDname" -o CuDv
odmdelete -q "value3 = $HDname" -o CuDvDr
odmdelete -q "name = $HDname" -o CuVPD
done
rm -f /dev/hdisk*
rm -f /dev/rhdisk*
savebase

执行完后,用以下命令重启机器,之后硬盘顺序将变为有序状态:

论坛徽章:
0
14 [报告]
发表于 2008-04-15 13:45 |只看该作者
貌似与楼主需求不符~

呵呵,参考下思路即可。

论坛徽章:
0
15 [报告]
发表于 2008-08-22 12:46 |只看该作者
7133 service guide上写的很清楚啊。

1. Find the pdisk or hdisk number that you want to change, and select a new (unused)
name.
2. Give the command:
lsdev -Cl [disknumber] -Fconnwhere
where [disknumber] is the pdisk or hdisk number (for example, pdisk0) that you
want to change.
The command returns a ConnectionLocation number (for example,
004AC5119E000D).
3. Make a note of this number; you will need it later in this procedure.
4. Give the command:
lsdev -Cl [disknumber] -Ftype
where [disknumber] is the pdisk or hdisk number (for example, pdisk0) that you
want to change.
The command returns the device Type for the disk.
5. Make a note of this device type; you will need it later in this procedure.
6. Remove the existing pdisk or hdisk number from the configuration. Give the
command:
rmdev -l [disknumber] -d
where [disknumber] is the pdisk or hdisk number (for example, pdisk0) that you
want to remove.
7. Give the command:
mkdev -pssar -t [Type] -c [Class] -s ssar -w [ConnectionLocation] -l [NewDiskName]
where:
[Type] is the disk type that you noted in step 5.
[Class] is pdisk for a pdisk, or disk for an hdisk.
[ConnectionLocation] is the number that you noted in step 3.
[NewDiskName] is the pdisk or hdisk number (for example, pdisk0) that you want
for the disk.
For example:
mkdev -p ssar -t scsd -c pdisk -s ssar -w 004AC5119E000D -l pdisk50

论坛徽章:
0
16 [报告]
发表于 2008-08-24 17:27 |只看该作者

论坛徽章:
0
17 [报告]
发表于 2008-08-27 11:12 |只看该作者
:wink:

[ 本帖最后由 sky.xuxm 于 2008-8-27 11:16 编辑 ]

论坛徽章:
0
18 [报告]
发表于 2008-08-27 11:14 |只看该作者
:wink:

[ 本帖最后由 sky.xuxm 于 2008-8-27 11:16 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP