Linux Scroll

Just another WordPress.com site

ioscan NO_HW

NO_HW 可能来自一个有问题的设备,或者一个已经移动/删除的设备。
如何删除或更正 NO_HW?

$ rmsf -H HW_PATH

$ rmsf -H 0/0/4/1/0/4/0.1.14.0.0.0.6

如果在HP Unix系统中做ioscan发现有类似如下情况:

Class     I  H/W Path       Driver   S/W State   H/W Type     Description

==========================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 11 0/4/1/1.1.0.0.0.0.1 sdisk NO_HW DEVICE HP MSA VOLUME
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 7 0/4/1/1.1.0.0.0.0.2 sdisk NO_HW DEVICE HP MSA VOLUME
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
disk 15 0/4/1/1.2.0.0.0.0.1 sdisk CLAIMED DEVICE HP MSA VOLUME
disk 16 0/4/1/1.2.0.0.0.0.2 sdisk CLAIMED DEVICE HP MSA VOLUME

说明SAN设备或光纤交换设备发生过变动,导致系统中的磁盘设备路径出现了变化。绿色的路径中丢失了设备文件,但它们及可能就是原来的设备—红色标出的。

在主机上可以这样做来重新生成设备文件:

# insf -e -C disk

$ ioscan -funC disk

删除红色已经失效的路径:

# rmsf -H 0/4/1/1.1.0.0.0.0.1

# rmsf -H 0/4/1/1.1.0.0.0.0.2
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: