跳过导航链接 | |
退出打印视图 | |
![]() |
Solaris Volume Manager 管理指南 Oracle Solaris 10 1/13 Information Library (简体中文) |
4. Solaris Volume Manager for Sun Cluster(概述)
5. 配置和使用 Solaris Volume Manager(方案)
20. 维护 Solaris Volume Manager(任务)
21. Solaris Volume Manager 的最佳做法
25. Solaris Volume Manager 故障排除(任务)
Solaris Volume Manager 故障排除(任务列表)
Solaris Volume Manager 故障排除的一般原则
如何使用 Solaris Volume Manager 配置来恢复系统
A. 重要的 Solaris Volume Manager 文件
B. Solaris Volume Manager 快速参考
本节说明如何恢复软分区的配置信息。仅当所有的状态数据库副本都已丢失,而且没有下列任一信息时,才应该使用以下过程:
metastat -p 输出的当前或正确副本
md.cf 文件的当前或正确副本
最新的 md.tab 文件
在每个软分区盘区的开头,有一个用于标记软分区盘区开始的扇区。这些隐藏的扇区称为盘区标头。这些标头不对软分区的用户显示。如果所有的 Solaris Volume Manager 配置数据都已丢失,则可以通过扫描磁盘来尝试生成配置数据。
不到万不得已,请不要使用此过程来恢复所丢失的软分区配置信息。仅当 metadb 和 md.cf 文件均已丢失,并且 md.tab 文件也已丢失或过期时,才应使用 metarecover 命令。
注 - 此过程仅用于恢复软分区信息,无法从丢失其他配置中进行恢复或者恢复其他 Solaris Volume Manager 卷的配置信息。
注 - 如果您的配置中包括在软分区之上构建的其他 Solaris Volume Manager 卷,则在尝试恢复其他卷之前应该先恢复软分区。
有关软分区的配置信息存储在设备上和状态数据库中。由于这两个源都可能会损坏,因此必须向 metarecover 命令指示哪个源可靠。
首先,使用 metarecover 命令来确定这两个源是否一致。如果它们一致,就不能使用 metarecover 命令执行任何更改。但是,如果 metarecover 命令报告存在不一致,则必须仔细检查其输出,以确定磁盘或状态数据库是否已损坏。然后,应使用 metarecover 命令基于适当的源重新生成配置。
# metarecover component-p -d
指定原始组件的 cnt ndnsn 名称
指定重新生成软分区
指定扫描物理分片以查找软分区的盘区标头
示例 25-2 从磁盘上的盘区标头中恢复软分区
# metarecover c1t1d0s1 -p -d The following soft partitions were found and will be added to your metadevice configuration. Name Size No. of Extents d10 10240 1 d11 10240 1 d12 10240 1 # metarecover c1t1d0s1 -p -d The following soft partitions were found and will be added to your metadevice configuration. Name Size No. of Extents d10 10240 1 d11 10240 1 d12 10240 1 WARNING: You are about to add one or more soft partition metadevices to your metadevice configuration. If there appears to be an error in the soft partition(s) displayed above, do NOT proceed with this recovery operation. Are you sure you want to do this (yes/no)?yes c1t1d0s1: Soft Partitions recovered from device. bash-2.05# metastat d10: Soft Partition Device: c1t1d0s1 State: Okay Size: 10240 blocks Device Start Block Dbase Reloc c1t1d0s1 0 No Yes Extent Start Block Block count 0 1 10240 d11: Soft Partition Device: c1t1d0s1 State: Okay Size: 10240 blocks Device Start Block Dbase Reloc c1t1d0s1 0 No Yes Extent Start Block Block count 0 10242 10240 d12: Soft Partition Device: c1t1d0s1 State: Okay Size: 10240 blocks Device Start Block Dbase Reloc c1t1d0s1 0 No Yes Extent Start Block Block count 0 20483 10240
在本示例中,状态数据库副本被意外删除后,从磁盘恢复了三个软分区。