成为超级用户。
要检查状态数据库副本的状态,请使用以下方法之一:
从 Solaris Management Console 中增强的存储工具中,打开“状态数据库副本”节点以查看现有的全部状态数据库副本。有关更多信息,请参见联机帮助。
使用 metadb 命令查看状态数据库副本的状态。添加 -i 选项以显示状态标志的说明,如以下示例中所示。请参见 metadb(1M)。
# metadb -i flags first blk block count a m p luo 16 8192 /dev/dsk/c0t0d0s7 a p luo 8208 8192 /dev/dsk/c0t0d0s7 a p luo 16400 8192 /dev/dsk/c0t0d0s7 a p luo 16 8192 /dev/dsk/c1t3d0s1 W p l 16 8192 /dev/dsk/c2t3d0s1 a p luo 16 8192 /dev/dsk/c1t1d0s3 a p luo 8208 8192 /dev/dsk/c1t1d0s3 a p luo 16400 8192 /dev/dsk/c1t1d0s3 r - replica does not have device relocation information o - replica active prior to last mddb configuration change u - replica is up to date l - locator for this replica was read successfully c - replica's location was in /etc/lvm/mddb.cf p - replica's location was patched in kernel m - replica is master, this is replica selected as input W - replica has device write errors a - replica is active, commits are occurring to this replica M - replica had problem with master blocks D - replica had problem with data blocks F - replica had format problems S - replica is too small to hold current data base R - replica had device read errors |
所有标志的说明后跟相应的状态。设备名称前面的字符表示状态。大写字母表示处于问题状态,小写字母表示处于“正常”状态。
可能需要删除状态数据库副本以维护 Solaris Volume Manager 配置。例如,如果要替换磁盘驱动器,则需要在删除驱动器之前先删除状态数据库副本。否则,Solaris Volume Manager 将报告磁盘驱动器有错误。
成为超级用户。
要删除状态数据库副本,请使用以下方法之一:
从 Solaris Management Console 中增强的存储工具中,打开“状态数据库副本”节点以查看现有的全部状态数据库副本。选择要删除的副本,然后选择“编辑”⇒“删除”将它们删除。有关更多信息,请参见联机帮助。
使用 metadb 命令的以下格式:
# metadb -d -f ctds-of-slice |
指定要删除状态数据库副本。
指定要强制执行该操作,即使没有副本存在也是如此。
指定包含副本的部件的名称。
请注意,需要指定要删除其中的状态数据库副本的每个片。有关更多信息,请参见 metadb(1M) 手册页。
# metadb -d -f c0t0d0s7 |
此示例说明如何从片中删除最后一个副本。
必须添加 -f 选项才能强制删除系统上的最后一个副本。