반응형

 

 
• Written by Jung Byung Wook
 

 


0. 목차

  • NIM 백업 복구 실패 [0042-172]
  • 확인방법
  • 조치방법1 : NIM Client에서 CPU ID 정보를 NIM Master에 업데이트
  • 조치방법2 : NIM Master에서 Client CPU ID를 업데이트 

1. NIM 백업/복구 실패 [0042-172]

  • 설명1 : NIM Operation 정상동작 실패
  • 설명2 : NIM Master에 등록되어있는 NIM Client의 "CPU ID"와 현재 동작하고 있는 NIM Client의 "CPU ID"가 서로 상이할때 발생.
  • 설명3 : LPM을 통한 호스트간 VM Migration이 이뤄지면, Target 호스트 기준으로 CPU ID가 바뀌게 됨.
1
2
3
4
5
Command: running       stdout: yes           stderr: no
 
Before command completion, additional instructions may appear below.
 
0042-172 NIMkid: This machine's CPU ID does not match the CPU ID stored in the NIM database.
jbw
 

2. CPU ID 확인

   1) NIM Master에서 NIM Client의 CPU Id 확인

       • NIM Master에 등록되어있는 "lpar1" NIM Client의 CPU ID는 "00F6AFE64C00".

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[root@nim-master /]# lsnim -l lpar1 ⤶
lpar1:
   class           = machines
   type            = standalone
   connect         = nimsh
   platform        = chrp
   netboot_kernel  = 64
   if1             = ent-Network1 lpar1 0
   cable_type1     = tp
   Cstate          = ready for a NIM operation
   prev_state      = currently running
   Mstate          = not running
   cpuid           = 00F6AFE64C00
   Cstate_result   = success
   installed_image = mksysb_lpar1
jbw

 

   2) 현재 동작중인 NIM Client에서 CPU ID 확인

       • NIM Client "lpar1"의 CPU ID는 "00F6AFE88C00"

1
2
[root@lpar1 /]# uname -auM
AIX lpar1 2 7 00F6AFE88C00 IBM,9117-MMB IBM,0210AEE67
jbw

 

   3) 결론

       • NIM Master에 등록된 NIM Client CPU ID 정보와 동작중인 NIM Client CPU ID가 서로 다르면, NIM Operation 에러 발생.    

        위의 경우,  동작중인 NIM Client "lpar1"의 CPU ID는 "00F6AFE88C00"를 NIM Master에 등록해줘야 정상적으로 NIM 관련 동작들이 수행된다.


3. 조치방법1 : NIM Client에서 CPU ID 정보를 NIM Master에 업데이트

   1) NIM Client의 기존 "niminfo" 파일 백업

1
[root@lpar1 /]# mv /etc/niminfo /etc/niminfo.old
jbw

 

   2) NIM Client 정보 초기화(재정의)

1
2
3
4
5
[root@lpar1 /]# smitty nim 
   → Perform NIM administration Tasks
     → Manage Machines
       → Define a Machine
        → hostname type (lpar1)
jbw

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
         Configure Network Installation Management Client Fileset
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                        [Entry Fields]
* Machine Name                                       [lpar1]
* Primary Network Install Interface                  [en1]                     +
* Host Name of Network Install Master                [nim-master]
  Hardware Platform Type                              chrp
  Kernel to use for Network Boot                     [64]                      +
  Communication Protocol used by client              [nimsh]                   +
  Ethernet Interface Options
    Network Speed Setting                            []                        +
    Network Duplex Setting                           []                        +
  Comments                                           []
  Alternate Port Numbers for Network Communications
       (reserved values will be used if left blank)
    Client Registration                              []                        #
    Client Communications                            []                        #
jbw

 

1
2
3
4
5
6
Command: OK            stdout: yes           stderr: no
 
Before command completion, additional instructions may appear below.
 
0513-044 The nimsh Subsystem was requested to stop.
0513-059 The nimsh Subsystem has been started. Subsystem PID is 3645616.
jbw

 

 


4. 조치방법2 : NIM Master에서 Client CPU ID를 업데이트 

   1) NIM 명령어로 Client CPU ID 변경

1
[root@nim-master /]# nim -o change -a cpuid=00F6AFE88C00 lpar1
jbw

 

   2) CPU ID 변경 확인

1
2
3
[root@nim-master /]# lsnim -l instlab163 | grep -i cpuid
 
   cpuid          = 00F6AFE88C00
jbw
 

 

 

 

반응형

'NIM > NIM Backup_Restore' 카테고리의 다른 글

NIM Mksysb backup  (0) 2021.03.22
NIM 서버에서 Non-rootvg Restore  (0) 2021.03.14
NIM 서버에서 Non-rootvg Backup  (0) 2021.03.13
Posted by 정병욱

반응형

1. 고려사항

  • NIM Server / Client 간의 네트워크 통신이 정상적인 상황인지 확인필요. (Network check)
  • NIM Server / Client 간의 NFS 통신이 정상적인지 확인필요. (NFS Communication Check)
  • NIM Server 에서 Client로 nimpush 프로세스를 이용하여, 백업이 진행된다.

2. NIM Mksysb backup

  1) NIM Master와 Client간에 nimsh 통신 상태 확인1. 고려사항

NIM Server / Client 간의 네트워크 통신이 정상적인 상황인지 확인필요. (Network check)

NIM Server / Client 간의 NFS 통신이 정상적인지 확인필요. (NFS Communication Check)

NIM Server 에서 Client로 nimpush 프로세스를 이용하여, 백업이 진행된다.

2. NIM Mksysb backup

  1) NIM Master와 Client간에 nimsh 통신 상태 확인NIM Server / Client 간의 네트워크 통신이 정상적인 상황인지 확인필요. (Network check)

  • NIM Server / Client 간의 NFS 통신이 정상적인지 확인필요. (NFS Communication Check)
  • NIM Server 에서 Client로 nimpush 프로세스를 이용하여, 백업이 진행된다.
반응형

'NIM > NIM Backup_Restore' 카테고리의 다른 글

[AIX, NIM] NIM 백업/복구 실패 [0042-172]  (0) 2024.07.31
NIM 서버에서 Non-rootvg Restore  (0) 2021.03.14
NIM 서버에서 Non-rootvg Backup  (0) 2021.03.13
Posted by 정병욱

반응형

1. 고려사항

  • NIM Master는 NIM Client보다 AIX Level 같거나, 높아야한다.
  • NIM Master와 Client가 보안 통신을 위해서, nimsh과 ssl 통신을 사용할 것을 권장한다.
  • 여러 대역의 Network를 구성할 수 있으며, 이를 위해서는 Network Definition을 통해, 해당 Network에 대한 정의가 필요하다.

2. 기능

  • NIM Client에 Software 설치 및 업데이트 기능.
  • NIM Client의 mksysb 파일 or rootvg copy를 통한 alternate disk(통칭 alt_disk) 수행.
  • NIM Client의 rootvg 영역에 대한 mksysb 백업 및 복구 기능.
  • NIM Server / Client 구성을 통한, mksysb 중앙관리 및 자동 백업기능 수행.

3. 구성 권장사항

  • 백업/복구 기능이 주요한 기능이므로, 관리하고자 하는 AIX장비와 독립적인 장비로 구성하는 것을 권장.
  • Service Network와 별개로, Backup Network를 통한 구성을 권장.
  • Resource를 저장할 별도의 Storage 공간확보 필요.
  • Storage를 연결할 경우, Multipath 기능을 통해, Load balance 구성을 권장.

반응형
Posted by 정병욱

반응형

1. 고려사항

  • NIM Master에 복구하고자 하는 클라이언트의 "savevg" Resource가 있는지 확인필요.
  • NIM Server / Client 간의 네트워크 통신이 정상적인 상황인지 확인필요. (Network check)
  • NIM Server / Client 간의 NFS 통신이 정상적인지 확인필요. (NFS Communication Check)
  • NIM Server 에서 Client로 nimpush 프로세스를 이용하여, 복구가 진행된다.
  • 일반적인 restvg 복구절차와 동일하게, 복구하는 과정에서 "VG 생성 > LV 생성 > FS 생성 > 데이터복구" 가 발생하며, 복구한 VG 내의 파일시스템은 자동 마운트된다.

2. 확인

  1) 복구하고자 하는 클라이언트 Machine 상태확인.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[NIM_Master:root] /] lsnim -l lpar10
lpar10:
   class           = machines
   type            = standalone
   installed_image = 71_mksysb
   current_master  = NIM_Master
   connect         = shell
   sync_required   = yes
   platform        = chrp
   netboot_kernel  = 64
   if1             = net-pri lpar10 0
   cable_type1     = tp
   Cstate          = ready for a NIM operation
   prev_state      = unavailable for use
   Mstate          = ready for use
   cpuid           = 00C48B554C00
   Cstate_result   = success
 
  • Cstate 가 ready 상태이므로, NIM Remote opreation이 가능한 상태. 

2) 기존에 savevg로 백업받아놓은 Resource가 있는지 확인.

1
2
[NIM_Master:root] /] lsnim -c resources | grep -i savevg
lpar10_savevg_test     resources       savevg
 

3. 복구

  1) SMIT로 복구.

    #smitty nim > Perform NIM Administration Tasks > Manage Machines > Perform Operations on Machines > 복구 클라이언트 선택 > restvg 지정

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
______________________________________________________
l                              Target Name            l                    
l                                                     l                     
l Move cursor to desired item and press Enter.        l                     
l                                                     l                     
l   master          machines       master             l                     
l   lpar1           machines       standalone         l                     
l   lpar2           machines       standalone         l                     
l   lpar3           machines       standalone         l                     
l   lpar4           machines       standalone         l                     
l   lpar5           machines       standalone         l                     
l   lpar6           machines       standalone         l                     
l   lpar7           machines       standalone         l                     
l   lpar8           machines       standalone         l                     
l   lpar9           machines       standalone         l                     
l   lpar10          machines       standalone         l    << 복구 클라이언트 지정
l   NIM_Master      machines       alternate_master   l
l_____________________________________________________l                     
cs

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
____________________________________________________________________________
l                          Operation to Perform                            l
l                                                                          l
l  Move cursor to desired item and press Enter. Use arrow keys to scroll.  l 
l                                                                          l 
l     diag             = enable a machine to boot a diagnostic image       l
l     cust             = perform software customization                    l
l     bos_inst         = perform a BOS installation                        l
l     maint            = perform software maintenance                      l
l     reset            = reset an object's NIM state                       l
l     fix_query        = perform queries on installed fixes                l
l     check            = check the status of a NIM object                  l
l     reboot           = reboot specified machines                         l
l     maint_boot       = enable a machine to boot in maintenance mode      l
l     showlog          = display a log in the NIM environment              l
l     lppchk           = verify installed filesets                         l
l     restvg           = perform a restvg operation                        l << restvg 선택
l     linux_inst       = operation to install Linux onto a standalone      l
l     lswpar           = show the characteristics of a workload partition  l
l     syncwpar         = synchronize workload partition software with the  l
l     showdump         = Show the location of a client dump                l
l     snap             = collect a snap record from a client               l
l     update_all = update all currently installed filesets                 l
l__________________________________________________________________________l                                                                         
 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
        Perform Network Restore of a Volume Group
 
Type or select values in entry fields.      
Press Enter AFTER making all desired changes.
                               
                                                        [Entry Fields]
  Target Name                                         lpar10
* SAVEVG                                             [lpar10_savevg_test] << F4를 눌러, 백업한 savevg 파일 선택
  SHRINK the filesystems?                             no
 PHYSICAL VOLUME names                              [hdisk1] << 클라이언트에 복구할 디스크 선택
     (Leave blank to use the PHYSICAL VOLUMES listed
      in the vgname.data file in the backup image)
  Use existing MAP files?                             yes
  Physical partition SIZE in megabytes               []
     (Leave blank to have the SIZE determined
      based on disk size)
  Number of BLOCKS to read in a single input         []
     (Leave blank to use a system default)
  Alternate vg.data resource                         []
     (Leave blank to use vg.data stored in
      backup image)
  Recreate logical volumes and filesystems only?      no
 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
                                                           COMMAND STATUS
 
Command: OK            stdout: yes           stderr: no
 
Before command completion, additional instructions may appear below.
 
hdisk1
testvg
test_lv
loglv00
x           11 ./tmp/vgdata/testvg/image.info
x          127 ./tmp/vgdata/vgdata.files8519888
x          127 ./tmp/vgdata/vgdata.files
x         2301 ./tmp/vgdata/testvg/filesystems
x         2587 ./tmp/vgdata/testvg/testvg.data
x          358 ./tmp/vgdata/testvg/backup.data
x            0 ./nim_backup
x            8 ./nim_backup/backup_vg_test
x            0 ./nim_backup/lost+found
The total size is 5519 bytes.
 
Will create the Volume Group:   testvg
Target Disks:   Allocation Policy:
        Shrink Filesystems:     no
        Preserve Physical Partitions for each Logical Volume:   no
 
New volume on /tmp/_nim_dir_7536766/mnt0:
Cluster size is 51200 bytes (100 blocks).
The volume number is 1.
The backup date is: Sun Mar 14 08:13:51 KORST 2021
Files are backed up by name.
The user is root.
The number of restored files is 9.
 
 

 

  2) CLI로 복구.

    #nim -o restvg -a savevg=lpar10_savevg_test -a disk=hdisk1 lpar10

  • savevg : 저장한 savevg resource name
  • disk    : 복구할 클라이언트의 hdisk number
  • lpar10 : 복구할 클라이언트의 Machine name

    

반응형

'NIM > NIM Backup_Restore' 카테고리의 다른 글

[AIX, NIM] NIM 백업/복구 실패 [0042-172]  (0) 2024.07.31
NIM Mksysb backup  (0) 2021.03.22
NIM 서버에서 Non-rootvg Backup  (0) 2021.03.13
Posted by 정병욱

반응형

1. 고려사항

  • 이 문서는 기존에 NIM Server / Client 구성이 되어있다는 가정하에 작성된 문서입니다.
  • NIM Master에 백업하고자하는 Client의 Machine 등록 및 네트워크 통신이 정상적인 상태라는 가정.

2. NIM 서버를 이용한 Non-rootvg 백업 - SMIT

  • NIM Machine 등록확인 및 상태체크
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[NIM_Master:root] /export/lpar10] lsnim -l lpar10
lpar10:
   class           = machines
   type            = standalone
   installed_image = 71_mksysb
   current_master  = NIM_Master
   connect         = shell
   sync_required   = yes
   platform        = chrp
   netboot_kernel  = 64
   if1             = net-pri lpar10 0
   cable_type1     = tp
   Cstate          = ready for a NIM operation
   prev_state      = not running
   Mstate          = currently running
   cpuid           = 00C48B554C00
   Cstate_result   = success
 

          º Cstate 는 NIM Client의 상태를 나타내며, 현재 상태는 "ready 상태"이므로, 바로, Backup이 가능하다.

 

  • NIM Client인 "lpar10" 의 testvg 백업.

          º #smitty nim_mkres > savevg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
                                                         Define a Resource
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
 
                                                        [Entry Fields]
* Resource Name                                      [lpar10_savevg_test] << savevg 리소스이름
* Resource Type                                       savevg
* Server of Resource                                 [master]
* Location of Resource                               [/export/lpar10/testvg] << 저장위치 [/export/lpar10에 해당하는 디렉토리는 반드시 있어야한다.]
  NFS Client Security Method                         []
  NFS Version Access                                 []
  Use exclude_packing.rootvg file?                    no
  Comments                                           []
  
  Source for Replication                             []
                  -OR-                                                                                                              
  System Backup Image Creation Options:
    CREATE volume group backup image?                 yes
   NIM CLIENT containing volume group to backup     [lpar10] << 백업받고자하는 클라이언트 이름
   VOLUME GROUP to backup                           [testvg] << 해당클라이언트의 VG Name
    PREVIEW only?                                     no
    IGNORE space requirements?                        no 
    EXPAND /tmp if needed?                            no
    Backup extended attributes?                       yes
    Generate new VG.DATA file?                        yes
    Create MAP files?                                 no
    Number of BLOCKS to write in a single output     []
     (leave blank to use system default)                                                                                            
    Use local EXCLUDE file?                           no
     (specify no to include all files in backup)                                                                                    
                  -OR-                                                                                                              
    EXCLUDE_FILES resource                           []
     (leave blank to include all files in backup)                                                                                   
  Back up Volume Group information files only?        no
   Create backup using snapshots?                     yes
    Backup encrypted files?                           yes
    Backup DMAPI filesystem files?                    yes
  Disable software packing of backup?                 no
 
 

 

  • "lpar10"의 testvg 백업 완료.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
                                                           COMMAND STATUS
 
Command: OK            stdout: yes           stderr: no
 
Before command completion, additional instructions may appear below.
 
 
+---------------------------------------------------------------------+
                System Backup Image Space Information
              (Sizes are displayed in 1024-byte blocks.)
+---------------------------------------------------------------------+
 
Required = 493 (1 MB)    Available = 88264352 (86196 MB)
 
 
 
Creating information file for volume group testvg.
 
Creating snapshots.
 
Creating list of files to back up.
.
Backing up 9 files
 
9 of 9 files (100%)
0512-038 savevg: Backup Completed Successfully.
 

 

  • 완료된 savevg resource 확인
1
2
3
4
[NIM_Master:root] /] lsnim -c resources |grep -i savevg
savevg_test            resources       savevg
test_savevg            resources       savevg
lpar10_savevg_test     resources       savevg << 생성됨.
 

 

 

반응형

'NIM > NIM Backup_Restore' 카테고리의 다른 글

[AIX, NIM] NIM 백업/복구 실패 [0042-172]  (0) 2024.07.31
NIM Mksysb backup  (0) 2021.03.22
NIM 서버에서 Non-rootvg Restore  (0) 2021.03.14
Posted by 정병욱