|
当存储系统的物理配置发生改变以后,你必须重新配置PowerPath以避免数据损失.
重新配置PowerPath设备包含以下步骤:
1.更新/kernel/drv/sd.conf确保文件包含足够的target/logical设备号
2.创建设备节点,使用相应的命令:
-------------------------------------
Solaris7,8,9 devfsadm -C
Solaris2.6 drvconfig;disks;devlinks
-------------------------------------------------
3.可选
运行powercf -q 命令
4.运行
powermt config命令
这一步骤非常重要
5.运行format命令查看emcpower设备
6.查看所有设备
powermt display dev=all
我们看一下操作日志:
bash-2.03# devfsadm -C
bash-2.03# powermt config
bash-2.03# format
Searching for disks...done
c2t0d1: configured with capacity of 1023.94MB
c2t1d1: configured with capacity of 1023.94MB
c3t0d1: configured with capacity of 1023.94MB
c3t1d1: configured with capacity of 1023.94MB
emcpower3a: configured with capacity of 1023.94MB
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01077a8d1,0
1. c1t1d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01077cb01,0
2. c1t2d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e0107823d1,0
3. c1t3d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e010782471,0
4. c1t4d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e0107a6b21,0
5. c1t5d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e0107aacc1,0
6. c2t0d0
/pci@8,700000/fibre-channel@2/sd@0,0
7. c2t0d1
/pci@8,700000/fibre-channel@2/sd@0,1
8. c2t1d0
/pci@8,700000/fibre-channel@2/sd@1,0
9. c2t1d1
/pci@8,700000/fibre-channel@2/sd@1,1
10. c3t0d0
/pci@8,700000/fibre-channel@3/sd@0,0
11. c3t0d1
/pci@8,700000/fibre-channel@3/sd@0,1
12. c3t1d0
/pci@8,700000/fibre-channel@3/sd@1,0
13. c3t1d1
/pci@8,700000/fibre-channel@3/sd@1,1
14. emcpower1a
/pseudo/emcp@1
15. emcpower3a
/pseudo/emcp@3
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> q
bash-2.03# powermt display dev=all
Pseudo name=emcpower3a
CLARiiON ID=CK200041200044 [Storage Group 3]
Logical device ID=6006016028A610009C6865C77622D911 [LUN 26]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP A, current=SP A
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
2304 pci@8/fibre-channel@2 c2t0d1s0 SP B1 active alive 0 0
2304 pci@8/fibre-channel@2 c2t1d1s0 SP B0 active alive 0 0
2305 pci@8/fibre-channel@3 c3t0d1s0 SP A1 active alive 0 0
2305 pci@8/fibre-channel@3 c3t1d1s0 SP A0 active alive 0 0
Pseudo name=emcpower1a
CLARiiON ID=CK200041200044 [Storage Group 3]
Logical device ID=6006016028A610009E75C11E7322D911 [LUN 25]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP A, current=SP A
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
2304 pci@8/fibre-channel@2 c2t0d0s0 SP B1 active alive 0 0
2304 pci@8/fibre-channel@2 c2t1d0s0 SP B0 active alive 0 0
2305 pci@8/fibre-channel@3 c3t0d0s0 SP A1 active alive 0 0
2305 pci@8/fibre-channel@3 c3t1d0s0 SP A0 active alive 0 0
|
如果不进行devfsadm这一步骤的操作,信息将无法正确显示,此前我的显示是:
bash-2.03# powermt display dev=all
Pseudo name=emcpower3a
CLARiiON ID=CK200041200044 [Storage Group 3]
Logical device ID=6006016028A610009C6865C77622D911 [LUN 26]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP A, current=SP A
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
2304 pci@8/fibre-channel@2 c2t0d1s0 SP B1 active alive 0 0
2305 pci@8/fibre-channel@3 c3t0d1s0 SP A1 active alive 0 0
Pseudo name=emcpower1a
CLARiiON ID=CK200041200044 [Storage Group 3]
Logical device ID=6006016028A610009E75C11E7322D911 [LUN 25]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP A, current=SP A
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
2304 pci@8/fibre-channel@2 c2t0d0s0 SP B1 active alive 0 0
2304 pci@8/fibre-channel@2 c2t1d0s0 SP B0 active alive 0 0
2305 pci@8/fibre-channel@3 c3t0d0s0 SP A1 active alive 0 0
2305 pci@8/fibre-channel@3 c3t1d0s0 SP A0 active alive 0 0
|
本文作者:
eygle,Oracle技术关注者,来自中国最大的Oracle技术论坛itpub.
www.eygle.com是作者的个人站点.你可通过Guoqiang.Gai@gmail.com来联系作者.欢迎技术探讨交流以及链接交换.
原文出处:
http://www.eygle.com/unix/Reconfiguring.PowerPath.Devices.Online.htm
如欲转载,请注明作者与出处.并请保留本文的连接.
回首页
|