NIM/NIM Backup_Restore
NIM 서버에서 Non-rootvg Restore
정병욱
2021. 3. 14. 22:04
반응형
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
반응형