Chinaunix

标题: 如何chdev硬盘 [打印本页]

作者: huoren_123    时间: 2009-05-08 12:55
标题: 如何chdev硬盘
有一台7779-BCS外带四个刀片7998-60X,60X都有系统。60X都是一样的配置,各带2块硬盘。重新给四台60X装系统(系统装在了hdisk0上),选的是完全覆盖安装。装完系统后,查看硬盘显示如下:
#lspv
hdisk0           000264aa8bdb094e          rootvg          active
hdisk1           000264aa33dda78b          rootvg          active

#chdev -l hdisk1 -a pv=clear
Method error(/usr/lib/methods/chgdisk):
             0514-062 Cannot porform the requestde function because the specified device is busy.

#rmdev -dl hdisk1 -R
Method error(/usr/lib/methods/ucfgdevice):
             0514-062 Cannot porform the requestde function because the specified device is busy.



请问如何能把那块hdisk1硬盘的系统给chdev掉???????

[ 本帖最后由 huoren_123 于 2009-5-8 12:58 编辑 ]
作者: ziggler    时间: 2009-05-08 13:16
标题: 回复 #1 huoren_123 的帖子
0514-062 Cannot perform the requested function because the specified device is busy
Possible Causes
You specified a device that is being used by one or more processes.

Procedures for Recovery
Check to make sure you selected the correct device.

If that is not the problem:

Remove the process that is allocating your device.
Run the ps -ef command to list which process is using the device you specified.
Remove the process by using the kill command.
If that does not resolve the problem:

Reboot your system and reenter your command if your system is still busy.
Use the sync command to update your i-node table.
Run the shutdown -Fr command. Wait for the login prompt.
After you log in, reenter your command.
If your device is still busy:

http://post.doit.wisc.edu/librar ... sgdnref/err0514.htm

[ 本帖最后由 ziggler 于 2009-5-8 13:19 编辑 ]
作者: yddll    时间: 2009-05-08 13:22
你把操作系统装hdisk1上了,disk1已经是rootvg的一部分了,你还想chdev -l hdisk1 -a pv=clear??
先migratepv hdisk1 hdisk0
再reducevg rootvg hdisk1
然后再chdev -l吧
作者: bent    时间: 2009-05-08 21:26
标题: 回复 #3 yddll 的帖子
3楼的判断正确,关键是LZ出于何种目的需要对hdisk1做chdev的动作?
看lz描述是安装的时候选择安装盘为hdisk0,但是最终却安装到2块硬盘上。
根据我以前一个经验,因为原来有系统,所以lz选择覆盖安装的时候,
在选择安装硬盘时没有取消hdisk1(因为原系统在hdisk1上,重装就会默认选上)。
所以目前只能按3楼的建议做。
作者: mike79    时间: 2009-05-08 23:10
rootvg装载两块盘上不是很好吗?做mirrorvg。
作者: AIX深入敌后    时间: 2009-05-10 13:59
lsvg -l rootvg?
作者: skyline_reuters    时间: 2009-05-10 23:40
依旧白菜的菜,小鸟的鸟,听课。

菜鸟的建议:
我有个办法能让LZ更深刻, 重装系统,New and Complete.....
选盘的时候选HDISK0,记住Hdisk1别选。
猜你应该是这样的:<<hdisk0
                            <<hdisk1
这样就好了:
           <<Hdisk0
                     Hdisk1
装完系统后:
lspv
如果还是:
#lspv
hdisk0           000264aa8bdb094e          rootvg          active
hdisk1           000264aa33dda78b          rootvg          active
那得拜拜神仙了,呵呵。
作者: AIX深入敌后    时间: 2009-05-11 15:07
标题: 回复 #7 skyline_reuters 的帖子
没必要重装系统
作者: skyline_reuters    时间: 2009-05-12 10:25
3楼的回答正确。LZ你的赏金呢,不会是又一个烂尾贴吧。
作者: AIX深入敌后    时间: 2009-05-13 18:45
如果你非要重做系统
那么migratepv hdisk1 hdisk0将hdisk1上的系统迁移到hdisk0上
用reducevg rootvg hdisk1去掉hdisk1
再chdev —l hdisk1 -a pv=clear后
再重做
作者: chris045    时间: 2009-05-27 17:28
3楼 顶!
作者: tone_yang    时间: 2009-07-13 13:02
:wink: :wink: :wink: :wink:




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2