IBM服务器更换rootvg故障磁盘操作指南

1 Rootvg做镜像
1.1 Rootvg做镜像要求
在安装完操作系统,配完应用后,我们一般要给rootvg做镜像,做rootvg镜像的硬盘必须和rootvg的硬盘空间大小相同,转速相同的同一型号内置SCSI硬盘。可通过下面这些命令来确认:
lsdev -Cc disk 确定主机中有几块硬盘,有几块内置硬盘

# lsdev -Cc disk
[IBMP740-1:root:/]#lsdev -Cc disk
hdisk0      Available 00-00-00 SAS Disk Drive
hdisk1      Available 00-00-00 SAS Disk Drive
hdisk2      Defined   07-00-02 EMC CLARiiON FCP LUNZ Disk
hdisk3      Defined   07-00-02 EMC CLARiiON FCP LUNZ Disk
hdisk4      Defined   05-00-02 EMC CLARiiON FCP LUNZ Disk
hdisk5      Defined   05-00-02 EMC CLARiiON FCP LUNZ Disk
hdisk6      Defined   07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk7      Defined   07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk8      Defined   07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk9      Defined   07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk10     Available 05-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk11     Available 05-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk12     Available 05-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk13     Available 05-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk14     Defined   07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk15     Defined   07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk16     Available 05-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk17     Available 05-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk18     Available 07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk19     Available 07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk20     Available 07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk21     Available 07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk22     Available 07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdisk23     Available 07-00-02 EMC CLARiiON FCP RAID 5 Disk
hdiskpower0 Available 05-00-02 PowerPath Device
hdiskpower1 Available 07-00-02 PowerPath Device
hdiskpower2 Available 05-00-02 PowerPath Device

lspv 确定主机中那块内置硬盘没有被VG使用

# lspv
hdisk0          0057908c7251c07a                    rootvg
hdisk1          0057908cea9403a2                    None
hdisk2          005d03fc9859db6c                    datavg
[IBMP740-1:root:/]# lspv
hdisk0          00f7ac3dfb20ed5a                    None
hdisk1          00f7ac3d60694e5e                    rootvg          active
hdisk10         none                                None
hdisk11         none                                None
hdisk12         none                                None
hdisk13         none                                None
hdisk16         none                                None
hdisk17         none                                None
hdisk18         none                                None
hdisk19         none                                None
hdisk20         none                                None
hdisk21         none                                None
hdisk22         none                                None
hdisk23         none                                None

lsattr -El 确定hdisk0与hdisk1硬盘的大小一致

[IBMP740-1:root:/]#lsattr -El hdisk0
PCM             PCM/friend/scsiscsd                        Path Control Module           False
algorithm       fail_over                                  Algorithm                     True
dist_err_pcnt   0                                          Distributed Error Percentage  True
dist_tw_width   50                                         Distributed Error Sample Time True
hcheck_interval 0                                          Health Check Interval         True
hcheck_mode     nonactive                                  Health Check Mode             True
max_coalesce    0x10000                                    Maximum Coalesce Size         True
max_transfer    0x100000                                   Maximum TRANSFER Size         True
pvid            00f7ac3dfb20ed5a0000000000000000           Physical volume identifier    False
queue_depth     16                                         Queue DEPTH                   True
reserve_policy  no_reserve                                 Reserve Policy                True
size_in_mb      300000                                     Size in Megabytes             False
unique_id       2A1135000C50053CA70070BST9300653SS03IBMsas Unique device identifier      False
ww_id           5000c50053ca7007                           World Wide Identifier         False
[IBMP740-1:root:/]#lsattr -El hdisk1
PCM             PCM/friend/scsiscsd                        Path Control Module           False
algorithm       fail_over                                  Algorithm                     True
dist_err_pcnt   0                                          Distributed Error Percentage  True
dist_tw_width   50                                         Distributed Error Sample Time True
hcheck_interval 0                                          Health Check Interval         True
hcheck_mode     nonactive                                  Health Check Mode             True
max_coalesce    0x10000                                    Maximum Coalesce Size         True
max_transfer    0x100000                                   Maximum TRANSFER Size         True
pvid            00f7ac3d60694e5e0000000000000000           Physical volume identifier    False
queue_depth     16                                         Queue DEPTH                   True
reserve_policy  no_reserve                                 Reserve Policy                True
size_in_mb      300000                                     Size in Megabytes             False
unique_id       2A1135000C500594B60570BST9300653SS03IBMsas Unique device identifier      False
ww_id           5000c500594b6057                           World Wide Identifier         False
[IBMP740-1:root:/]#lscfg -vpl hdisk0

lscfg -vpl 确认硬盘的Part number或FRU Number号是否一样,如一样说明硬盘型号一样。

[IBMP740-1:root:/]#lscfg -vpl hdisk0
  hdisk0           U78AA.001.WZSHLUK-P2-D1  SAS Disk Drive (300000 MB)

        Manufacturer................IBM
        Machine Type and Model......ST9300653SS
        FRU Number..................74Y6496
        ROS Level and ID............37343044
        Serial Number...............6XN12EQS
        EC Level....................N23780
        Part Number.................74Y6486
        Device Specific.(Z0)........000006329F001002
        Device Specific.(Z1)........0301740D
        Device Specific.(Z2)........0021
        Device Specific.(Z3)........12136
        Device Specific.(Z4)........
        Device Specific.(Z5)........22
        Device Specific.(Z6)........N23780
        Hardware Location Code......U78AA.001.WZSHLUK-P2-D1


  PLATFORM SPECIFIC

  Name:  disk
    Node:  disk
    Device Type:  block
[IBMP740-1:root:/]#lscfg -vpl hdisk1
  hdisk1           U78AA.001.WZSHLUK-P2-D2  SAS Disk Drive (300000 MB)

        Manufacturer................IBM
        Machine Type and Model......ST9300653SS
        FRU Number..................74Y6496
        ROS Level and ID............37343044
        Serial Number...............6XN1F0V1
        EC Level....................N23780
        Part Number.................74Y6486
        Device Specific.(Z0)........000006329F001002
        Device Specific.(Z1)........0301740D
        Device Specific.(Z2)........0021
        Device Specific.(Z3)........12217
        Device Specific.(Z4)........
        Device Specific.(Z5)........22
        Device Specific.(Z6)........N23780
        Hardware Location Code......U78AA.001.WZSHLUK-P2-D2


  PLATFORM SPECIFIC

  Name:  disk
    Node:  disk
    Device Type:  block由上可知,hdisk0与hdisk1型号、大小一致,可以做rootvg镜像。

#一般基本上除了haview ,netwiew ( Tivoli)的包以外,所有的hacmp的包都要安装。
1.2 配制rootvg镜像
首先将hdisk1硬盘加入到rootvg中

# extendvg rootvg hdisk1
0516-014 linstallpv: The physical volume appears to belong to another
        volume group.
005d027c00004c00
0516-631 extendvg: Warning, all data belonging to physical
        volume hdisk1 will be destroyed.
extendvg: Do you wish to continue? y(es) n(o)? y
# lspv
hdisk0          0057908c7251c07a                    rootvg
hdisk1          0057908cea9403a2                    rootvg
hdisk2          005d03fc9859db6c                    datavg

给rootvg做镜像

# mirrorvg rootvg hdisk1
0516-1124 mirrorvg: Quorum requirement turned off, reboot system for this
        to take effect for rootvg.
0516-1126 mirrorvg: rootvg successfully mirrored, user should perform
        bosboot of system to initialize boot records.  Then, user must modify
        bootlist to include:  hdisk0 hdisk1.

给hdisk0、hdisk1分别做引导分区

# bosboot -ad hdisk0
bosboot: Boot image is 15092 512 byte blocks.
# bosboot -ad hdisk1
bosboot: Boot image is 15092 512 byte blocks.

设定系统的引导顺序为hdisk0、hdisk1

# bootlist -m normal hdisk0 hdisk1
# bootlist -m normal -o
hdisk0 blv=hd5 pathid=0
hdisk1 blv=hd5 pathid=0

设定Quorum为Disable.,这样保证了一旦硬盘坏了一块,rootvg还是能正常启来。

# chvg -Qn rootvg
0516-1804 chvg: The quorum change takes effect immediately.

执行lsvg命令确认rootvg已做镜像,可看到除了lg_dumplv之外所有其它LPs和PPs的对应关系为1对2的关系。

# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     33      66      2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       40      80      2    open/syncd    /
hd2                 jfs2       10      20      2    open/syncd    /usr
hd9var              jfs2       10      20      2    open/syncd    /var
hd3                 jfs2       20      40      2    open/syncd    /tmp
hd1                 jfs2       10      20      2    open/syncd    /home
hd10opt             jfs2       196     392     2    open/syncd    /opt
hd11admin           jfs2       10      20      2    open/syncd    /admin
fwdump              jfs2       3       6       2    open/syncd    /var/adm/ras/platform
lg_dumplv           sysdump    16      16      1    open/syncd    N/A
livedump            jfs2       1       2       2    open/syncd    /var/adm/ras/livedump
fslv00              jfs2       40      80      2    closed/syncd  /u01

2 更换rootvg中的故障盘
这里假设hdisk0硬盘故障,需要更换。
2.1 确定hdisk0硬盘故障
首先执行errpt命令查看错误日志,如果hdisk0损坏的话,会有很多hdisk0的报错。

# errpt -d H
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
12296806   0312162815 T H sissas0        SAS ERROR
12296806   0312162715 T H sissas0        SAS ERROR
12296806   0311235615 T H sissas0        SAS ERROR
12296806   0311235515 T H sissas0        SAS ERROR
12296806   0310235615 T H sissas0        SAS ERROR
12296806   0310235515 T H sissas0        SAS ERROR
12296806   0309235615 T H sissas0        SAS ERROR
12296806   0309235515 T H sissas0        SAS ERROR
12296806   0308235615 T H sissas0        SAS ERROR
12296806   0308235515 T H sissas0        SAS ERROR
12296806   0307235615 T H sissas0        SAS ERROR
12296806   0307235515 T H sissas0        SAS ERROR
12296806   0306235615 T H sissas0        SAS ERROR
12296806   0306235515 T H sissas0        SAS ERROR
12296806   0305235615 T H sissas0        SAS ERROR
12296806   0305235515 T H sissas0        SAS ERROR
12296806   0304235615 T H sissas0        SAS ERROR
12296806   0304235515 T H sissas0        SAS ERROR
E86653C3   0304054615 P H LVDD           I/O ERROR DETECTED BY LVM
E86653C3   0304054615 P H LVDD           I/O ERROR DETECTED BY LVM
C62E1EB7   0304054615 P H hdisk0         DISK OPERATION ERROR
12296806   0304054615 T H sissas0        SAS ERROR
E86653C3   0304054615 P H LVDD           I/O ERROR DETECTED BY LVM
E86653C3   0304054615 P H LVDD           I/O ERROR DETECTED BY LVM
C62E1EB7   0304054615 P H hdisk0         DISK OPERATION ERROR
C62E1EB7   0304054615 P H hdisk0         DISK OPERATION ERROR
12296806   0304054615 T H sissas0        SAS ERROR
12296806   0304054615 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054515 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR
12296806   0304054415 T H sissas0        SAS ERROR

执行lsvg 确认镜像丢失,可看到LPs和PPs的对应关系变为11对应。

# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     33      33      1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       40      40      1    open/syncd    /
hd2                 jfs2       10      10      1    open/syncd    /usr
hd9var              jfs2       10      10      1    open/syncd    /var
hd3                 jfs2       20      20      1    open/syncd    /tmp
hd1                 jfs2       10      10      1    open/syncd    /home
hd10opt             jfs2       196     196     1    open/syncd    /opt
hd11admin           jfs2       10      10      1    open/syncd    /admin
fwdump              jfs2       3       3       1    open/syncd    /var/adm/ras/platform
lg_dumplv           sysdump    8       8       1    open/syncd    N/A
livedump            jfs2       1       1       1    open/syncd    /var/adm/ras/livedump
fslv00              jfs2       40      40      1    closed/syncd  /u01

执行lspv -l hdisk0命令会报错,确认hdisk0硬盘故障。

2.2 更换hdisk0硬盘
首先将hdisk0硬盘从rootvg中unmirror

# unmirrorvg rootvg hdisk0
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c '
        as root user to clear the boot record and avoid a potential boot
        off an old boot image that may reside on the disk from which this
        logical volume is moved/removed.
0516-1132 unmirrorvg: Quorum requirement turned on, reboot system for this
        to take effect for rootvg.
0516-1144 unmirrorvg: rootvg successfully unmirrored, user should perform
        bosboot of system to reinitialize boot records.  Then, user must modify
        bootlist to just include:  hdisk1.

执行chpv -c hdisk0命令清除掉boot记录

# chpv -c hdisk0
0301-108 mkboot: Unable to read file blocks. Return code: -1
0516-1248 chpv: mkboot failure

# reducevg rootvg hdisk0
0516-016 ldeletepv: Cannot delete physical volume with allocated
        partitions. Use either migratepv to move the partitions or
        reducevg with the -d option to delete the partitions.
0516-884 reducevg: Unable to remove physical volume hdisk0.

这是因为 lg_dumplv在rootvg缺省情况下没有做镜像的原因,只创建在hdisk0上,现在要修改主dump目录为null(空目录)

# lslv -l lg_dumplv
lg_dumplv:N/A
PV                COPIES        IN BAND       DISTRIBUTION
hdisk0            008:000:000   100%          000:008:000:000:000

# sysdumpdev -P -p /dev/sysdumpnull
primary              /dev/sysdumpnull
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON
type of dump         traditional

从rootvg中删除hdisk0硬盘

# reducevg -d rootvg hdisk0
0516-914 rmlv: Warning, all data belonging to logical volume
        lg_dumplv on physical volume hdisk0 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? yes
rmlv: Logical volume lg_dumplv is removed.

# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     33      33      1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       40      40      1    open/syncd    /
hd2                 jfs2       10      10      1    open/syncd    /usr
hd9var              jfs2       10      10      1    open/syncd    /var
hd3                 jfs2       20      20      1    open/syncd    /tmp
hd1                 jfs2       10      10      1    open/syncd    /home
hd10opt             jfs2       196     196     1    open/syncd    /opt
hd11admin           jfs2       10      10      1    open/syncd    /admin
fwdump              jfs2       3       3       1    open/syncd    /var/adm/ras/platform
livedump            jfs2       1       1       1    open/syncd    /var/adm/ras/livedump
fslv00              jfs2       40      40      1    closed/syncd  /u01

删除hdisk0硬盘

# rmdev -dl hdisk0
hdisk0 deleted
# lspv
hdisk1          00f45bd06cef0cfa                    rootvg          active
hdisk2          none                                None
hdisk3          none                                None
hdisk4          none                                None
hdisk5          none                                None
hdisk6          none                                None
hdisk7          none                                None
hdisk8          none                                None
hdisk9          none                                None
hdisk10         none                                None
hdisk11         none                                None
hdiskpower0     none                                None
hdiskpower1     none                                None
hdiskpower2     none                                None
hdiskpower3     none                                None
hdiskpower4     none                                None
hdisk12         none                                None
hdisk13         none                                None
hdisk14         none                                None
hdisk15         none                                None
hdisk16         none                                None
hdisk17         none                                None
hdiskpower5     none                                None
hdiskpower6     none                                None
hdiskpower7     none                                None
hdisk18         none                                None
hdisk19         none                                None
hdisk20         none                                None
hdisk21         none                                None
hdisk22         none                                None
hdisk23         none                                None
hdiskpower8     none                                None
hdiskpower9     none                                None
hdiskpower10    none                                None

2.3添加新硬盘到rootvg中,并做镜像
拔出hdisk0故障硬盘,插入新硬盘。执行以下操作将新硬盘加入到rootvg中
# cfgmgr -v
查看磁盘是否有pvid如果没有执行chdev -l hdisk0 -a pv=yes

# lspv
hdisk0          none                                None
hdisk1          00f45bd06cef0cfa                    rootvg          active
hdisk2          none                                None
hdisk3          none                                None
hdisk4          none                                None
hdisk5          none                                None
hdisk6          none                                None
hdisk7          none                                None
hdisk8          none                                None
hdisk9          none                                None
hdisk10         none                                None
hdisk11         none                                None
hdiskpower0     none                                None
hdiskpower1     none                                None
hdiskpower2     none                                None
hdiskpower3     none                                None
hdiskpower4     none                                None
hdisk12         none                                None
hdisk13         none                                None
hdisk14         none                                None
hdisk15         none                                None
hdisk16         none                                None
hdisk17         none                                None
hdiskpower5     none                                None
hdiskpower6     none                                None
hdiskpower7     none                                None
hdisk18         none                                None
hdisk19         none                                None
hdisk20         none                                None
hdisk21         none                                None
hdisk22         none                                None
hdisk23         none                                None
hdiskpower8     none                                None
hdiskpower9     none                                None
hdiskpower10    none                                None



# chdev -l hdisk0 -a pv=yes
hdisk0 changed
# lspv
hdisk0          00f45bd0101716a0                    None
hdisk1          00f45bd06cef0cfa                    rootvg          active
hdisk2          none                                None
hdisk3          none                                None
hdisk4          none                                None
hdisk5          none                                None
hdisk6          none                                None
hdisk7          none                                None
hdisk8          none                                None
hdisk9          none                                None
hdisk10         none                                None
hdisk11         none                                None
hdiskpower0     none                                None
hdiskpower1     none                                None
hdiskpower2     none                                None
hdiskpower3     none                                None
hdiskpower4     none                                None
hdisk12         none                                None
hdisk13         none                                None
hdisk14         none                                None
hdisk15         none                                None
hdisk16         none                                None
hdisk17         none                                None
hdiskpower5     none                                None
hdiskpower6     none                                None
hdiskpower7     none                                None
hdisk18         none                                None
hdisk19         none                                None
hdisk20         none                                None
hdisk21         none                                None
hdisk22         none                                None
hdisk23         none                                None
hdiskpower8     none                                None
hdiskpower9     none                                None
hdiskpower10    none                                None

把hdisk0加入到rootvg

# extendvg rootvg hdisk0
# lspv
hdisk0          00f45bd0101716a0                    rootvg          active
hdisk1          00f45bd06cef0cfa                    rootvg          active
hdisk2          none                                None
hdisk3          none                                None
hdisk4          none                                None
hdisk5          none                                None
hdisk6          none                                None
hdisk7          none                                None
hdisk8          none                                None
hdisk9          none                                None
hdisk10         none                                None
hdisk11         none                                None
hdiskpower0     none                                None
hdiskpower1     none                                None
hdiskpower2     none                                None
hdiskpower3     none                                None
hdiskpower4     none                                None
hdisk12         none                                None
hdisk13         none                                None
hdisk14         none                                None
hdisk15         none                                None
hdisk16         none                                None
hdisk17         none                                None
hdiskpower5     none                                None
hdiskpower6     none                                None
hdiskpower7     none                                None
hdisk18         none                                None
hdisk19         none                                None
hdisk20         none                                None
hdisk21         none                                None
hdisk22         none                                None
hdisk23         none                                None
hdiskpower8     none                                None
hdiskpower9     none                                None
hdiskpower10    none                                None

做rootvg镜像

# mirrorvg rootvg hdisk0
0516-306 getlvodm: Unable to find volume group root in the Device
        Configuration Database.
0516-1200 mirrorvg: Failed to mirror the volume group.

创建引导映像

# bosboot -ad hdisk0

bosboot: Boot image is 53276 512 byte blocks.
# bosboot -ad hdisk1

bosboot: Boot image is 53276 512 byte blocks.

改变引导区引导顺序

# bootlist -m normal hdisk0 hdisk1

查看引导顺序

# bootlist -m normal -o
hdisk0 blv=hd5 pathid=0
hdisk1 blv=hd5 pathid=0
# chvg -Qn rootvg
0516-1804 chvg: The quorum change takes effect immediately.

//-Q:确定卷组在丢失其物理卷的限额后,VG是否保持活动;-n:保持活动,默认为:-y。

重新创建dump

# mklv -t sysdump -y lg_dumplv rootvg 16 hdisk0
lg_dumplv

修改主dump device:

# sysdumpdev -Pp /dev/lg_dumplv
primary              /dev/lg_dumplv
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON
type of dump         traditional
# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     33      66      2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       40      80      2    open/syncd    /
hd2                 jfs2       10      20      2    open/syncd    /usr
hd9var              jfs2       10      20      2    open/syncd    /var
hd3                 jfs2       20      40      2    open/syncd    /tmp
hd1                 jfs2       10      20      2    open/syncd    /home
hd10opt             jfs2       196     392     2    open/syncd    /opt
hd11admin           jfs2       10      20      2    open/syncd    /admin
fwdump              jfs2       3       6       2    open/syncd    /var/adm/ras/platform
lg_dumplv           sysdump    16      16      1    open/syncd    N/A
livedump            jfs2       1       2       2    open/syncd    /var/adm/ras/livedump
fslv00              jfs2       40      80      2    closed/syncd  /u01

发表评论

电子邮件地址不会被公开。