AIX下更换rootvg磁盘与DIAG工具定位故障磁盘

 

AIX下rootvg镜像硬盘更换步骤,以下以rootvg中hdisk0故障为例: 

1、 卸载系统磁盘镜像

# unmirrorvg rootvg hdisk0 

2、 确认unmirror是否成功 

# lsvg -l rootvg
3、 从卷中删除物理卷hdisk0,可能会报0516-016,0516-884错误,原因是lg_dumolv(dump device)建在hdisk0上,lslv -l lg_dumolv可以查看

# reducevg rootvg hdisk0

4、修改dump

# sysdumpdev -P -p /dev/sysdumpnull 

5、重新执行删除物理卷hdisk0,可能会报0516-914错误,可以用smitty reducevg强制删除

# reducevg rootvg hdisk0

6、,删除坏硬盘,用diag工具中Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device  选项移除hdisk0  

# rmdev -dl hdisk0

7、插入新硬盘,cfgmgr,lspv识别的新磁盘如果无PVID,执行

# chdev -l hdisk0 -a pv=yes 

8、将更换后的硬盘添加如卷组当中

# extendvg rootvg hdisk0

9、用smit工具做mirrorvg镜像,选择 rootvg和hdisk0,同步模式选择background后台同步 

# smit mirrorvg  

10、添加启动镜像到新硬盘 

# bosboot -ad /dev/hdisk0

11、设置启动顺序

# bootlist -m normal hdisk0 hdisk1
# bootlist -m normal -o  

12、重建dumplv,其中16为dump lv的PP数量,可以根据具体环境更改 
# mklv -t sysdump -y lg_dumplv rootvg 16 hdisk0

13、修改主设用dump device     

# sysdumpdev -Pp /dev/lg_dumplv 

14、查看rootvg

# lsvg -l rootvg

--------------------------------------------------------------------------------------------------

DIAG定位磁盘  

1.登陆AIX,执行#diag 

2.回车   
3.选择“Task Selection”  
4.按PgDn,选择“Hot Plug Task”  
5.选择“SCSI and SCSI RAID Hot Plug Manager”  
6.选择“Identify a Device Attached to a SCSI Hot Swap Enclosure Device” 
7.选择想判定位置的目标DISK,比如:hdisk0  
8.回车,这个时候去观察硬盘,你会发现硬盘的指示灯会显示“红色”,这个硬盘就是你需要判定的目标盘。  
9.如果想把这个有故障的硬盘从SCSI剔除,返回上一级菜单选择“Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device” 
10.然后选择想剔除的硬盘即可。

下面是本次实验的所有步骤:

AIX Version 5
Copyright IBM Corporation, 1982, 2009.
login: root
root's Password:
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
Last unsuccessful login: 2017?  11?20n /dev/pts/0 from 10.20.67.43
Last login: 2017?  15?10n /dev/pts/0 from 10.20.67.43

# diag
DIAGNOSTIC OPERATING INSTRUCTIONS  VERSION 5.3.10.0          801001


LICENSED MATERIAL and LICENSED INTERNAL CODE - PROPERTY OF IBM
(C) COPYRIGHTS BY IBM AND BY OTHERS 1982, 2009.
ALL RIGHTS RESERVED.

These programs contain diagnostics, service aids, and tasks for
the system.  These procedures should be used whenever problems
with the system occur which have not been corrected by any
software application procedures available.

In general, the procedures will run automatically.  However,
sometimes you will be required to select options, inform the
system when to continue, and do simple tasks.

Several keys are used to control the procedures:
- The Enter key continues the procedure or performs an action.
- The Backspace key allows keying errors to be corrected.
- The cursor keys are used to select an option.

Press the F3 key to exit or press Enter to continue.


+------------------------------------------------------+
| Processing data ...                                  |
+------------------------------------------------------+
FUNCTION SELECTION         801002


Move cursor to selection, then press Enter.

  Diagnostic Routines
    This selection will test the machine hardware. Wrap plugs and
    other advanced functions will not be used.
  Advanced Diagnostics Routines
    This selection will test the machine hardware. Wrap plugs and
    other advanced functions will be used.
  Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.)
    This selection will list the tasks supported by these procedures.
    Once a task is selected, a resource menu may be presented showing
    all resources supported by the task.
  Resource Selection
    This selection will list the resources in the system that are supported
    by these procedures. Once a resource is selected, a task menu will
    be presented showing all tasks that can be run on the resource(s).

+------------------------------------------------------+
|                                                      |
| Building Resource Database.                          |
| Please stand by.                                     |
+------------------------------------------------------+ 
F1= [50CF10= [49CF3= ??[6;2H Diagnostic Routines                                              
TASKS SELECTION LIST        801004


From the list below, select a task by moving the cursor to
the task and pressing 'Enter'.
To list the resources for the task highlighted, press 'List'.

  Run Diagnostics
  Run Error Log Analysis
  Run Exercisers
  Display or Change Diagnostic Run Time Options
  
  Add Resource to Resource List
  Automatic Error Log Analysis and Notification
  Backup and Restore Media
  Certify Media
  Change Hardware Vital Product Data
  Configure Dials and Lpfkeys
  Configure Platform Processor Diagnostics
  Configure Reboot Policy
  Delete Resource from Resource List
  Disk Maintenance
  Display Configuration and Resource List
  Display Firmware Device Node Information
  Display Hardware Error Report
  Display Hardware Vital Product Data
  Display Multipath I/O (MPIO) Device Configuration
  Display Previous Diagnostic Results
  Display Resource Attributes
  Display Service Hints
  Display Software Product Data
  Display Test Patterns
  Display USB Devices
  Display or Change Bootlist
  Format Media
  Gather System Information
  Hot Plug Task
  Identify and Attention Indicators
  Load ISO Image to Flashdrive
  Local Area Network Analyzer
  Log Repair Action
  Microcode Tasks
  RAID Array Manager
  SSA Service Aids
    This selection provides tools for diagnosing and resolving
    problems on SSA attached devices.
  Update Disk Based Diagnostics
  Update and Manage System Flash

+------------------------------------------------------+
| Processing data ...                                  |
+------------------------------------------------------+

Hot Plug Task                                                             801004



  SCSI and SCSI RAID Hot Plug Manager


+------------------------------------------------------+
| Processing data ...                                  |
+------------------------------------------------------+
SCSI and SCSI RAID HOT PLUG MANAGER                                       802481
     
The following operations can be performed on devices attached to
SCSI and SCSI RAID Hot Plug Enclosure devices.

Make selection, use Enter to continue.

  List Hot Swap Enclosure Devices
    This selection lists all scsi hot swap slots and their contents.
  Identify a Device Attached to a SCSI Hot Swap Enclosure Device
    This selection sets the Identify indication.
  Attach a Device to an SCSI Hot Swap Enclosure Device
    This selection sets the Add indication and prepares
    the slot for insertion of a device.
  Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device
    This selection sets the Remove indication and prepares
    the device for removal.
  Configure Added/Replaced Devices
    This selection runs the configuration manager on the
    parent adapter where devices have been added or replaced.

+------------------------------------------------------+
| Processing data ...                                  |
+------------------------------------------------------+
IDENTIFY DEVICE ATTACHED TO SCSI HOT SWAP ENCLOSURE DEVICE                 802483

The following is a list of devices attached to SCSI Hot Swap Enclosure devices.
Selecting a slot will set the LED indicator to Identify.

Make selection, use Enter to continue.

                U78A0.001.DNWK35N-
  ses0            P2-Y1
     slot  2      P2-D2                cd0
     slot  3      P2-D3                hdisk0
     slot  4                           [empty slot]
     slot  5                           [empty slot]
     slot  6      P2-D6                hdisk1
     slot  7                           [empty slot]
     slot  8                           [empty slot]


+------------------------------------------------------+
|                                                      |
|                                                      |
|                                                      |
|                                                      |
|                                                      |
| selected device.                                     |
|                                                      |
| Use 'Enter' to put the device LED in the             |
| Normal state and return to the previous menu.        |
|                                                      |
|                                                      |
|                                                      |
|                                                      |
| F3= ?9CF10= [8CEnter 55;89H                          |
+------------------------------------------------------+

  The LED should be in the Identify state for the


实验定位小机磁盘位置效果如下:


转载https://wenku.baidu.com/view/1f0e329bf12d2af90342e683.html非常感谢!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值