IBM伺服器更換rootvg故障磁碟操作指南

eric0435發表於2015-03-12

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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26015009/viewspace-1457617/,如需轉載,請註明出處,否則將追究法律責任。

相關文章