取消
顯示結果 
搜尋替代 
您的意思是: 

如何更换LSM中坏的mirror disk

如何更换LSM中坏的mirror disk

大家好:

因为忙,好久没来这里,你们都还好吗?今天小弟又有事情想麻烦各位了,请多帮助我!

现在我的一台主机上系统盘是使用的lsm管理,并且和另一个硬盘做了mirror,现在mirror disk坏了一块,请问大家怎么更换呢?
3 回覆

如何更换LSM中坏的mirror disk

Here is an LSM doc that I had. Just replace rz9 with rz8 in it.





LSM - Replacing a Failed Disk

=============================



· Delete the failed disk, for example rz9 from the disk group retaining the media

records. Use the disk media name.

# /sbin/voldg -g rootdg -k rmdisk disk09b

rmdisk

Removes the specified disk(s) from a disk group (rootdg by default).

The last disk cannot be removed from its disk group. It is not possible

to remove the last disk containing a valid disk group configuration or

log copy from its disk group.



Normally, the rmdisk operation will fail if subdisk records point to

the named disk media records. However, if the -k option is specified,

the disk media records will be kept, although in a removed state, and

the subdisk records will still point to them. The subdisks, and any

plexes that refer to them, are unusable until the disk is re-added

using the -k option to the adddisk operation. Any volumes that become

unusable, because all plexes become unusable, will be disabled.



Note



Use extra care with the -k option since this option can disable

active volumes.



· Remove the disk access records, using the disk access name.

# /sbin/voldisk rm rz9b

· Physically replace the failed disk with a new disk.

· Disk label the new disk.

· Initialize the new disk for use by LSM.

# /usr/sbin/voldisksetup -i rz9b nconfig=2 nlogs=2 privlen=1024

-i Normally, voldisksetup simply creates partitions for use with the Logi-

cal Storage Manager. If the -i (initialize) option is specified, a disk

header is added and an empty configuration is written on the disk. This

operation destroys any previous LSM database contents on the disk.



· Add the new disk to the disk group.

# /sbin/voldg -g rootdg -k adddisk disk09b=rz9b



· If this is a mirrored volume, attach the stale plex, start the volume, and start recovery.

# volrecover -sb vol-01



-s Starts di

如何更换LSM中坏的mirror disk

you have to provide more information for troubleshooting, for example, do you have hot-

sparing feature enabled in your rootdg ? or the output of your `voldisk list` and anyother warning, error in your system messages file.

如何更换LSM中坏的mirror disk

非常谢谢两位老兄:

  上面的文档应该只是针对更换坏盘不,但不是更换坏的mirror盘的,所以这个方案我觉得不大妥。看了LSM的文档,里面也没有讲怎么更换。