Nonstop Database, HiRDB Version 9 System Operation Guide

[Contents][Index][Back][Next]

15.10.2 Example

This example explains the procedure for moving a HiRDB file system area (/dev1/HiRDB_P/area1/rdarea1) stored on /dev1 to /dev2 and creating a symbolic link named /dev1/HiRDB_P/area1/rdarea1 on /dev1.

Figure 15-2 Moving a HiRDB file system area and using a symbolic link

[Figure]

Organization of this subsection
(1) Place the source RDAREAs in shutdown and closed status
(2) Refresh the user server processes and verify that the user server processes have terminated
(3) Copy the HiRDB file system area constituting the source RDAREAs to the target disk
(4) Delete the source HiRDB file system area
(5) Create symbolic links
(6) Release the RDAREAs from step 1 from shutdown and closed status, and place them in open status

(1) Place the source RDAREAs in shutdown and closed status

Place in shutdown and closed status all RDAREAs that store configuration files in the HiRDB file system area (/dev1/HiRDB_P/area1/rdarea1) that is to be moved.

 
pdhold -r RDAREA1 -c
 

Explanation
-r: Specifies the name of the RDAREA that is to be shut down.
-c: Specifies that the RDAREA is to be placed in shutdown status and then is to be closed.

(2) Refresh the user server processes and verify that the user server processes have terminated

(a) Refresh the user server process
 
pdpfresh
 
(b) Verify that the user server processes have terminated

Execute the pdpfresh command with the -c option specified. If the return code is 1, repeat executing the command until the return code 0 is obtained.

 
pdpfresh -c
 

Explanation
-c: Specifies that the pdpfresh command is to be used to check whether all user server processes that received a process termination request have terminated.

(3) Copy the HiRDB file system area constituting the source RDAREAs to the target disk

Copy the HiRDB file system area (/dev1/HiRDB_P/area1/rdarea1) from /dev1 to /dev2 (/dev2/HiRDB_P/dbdir2/generation2).

(4) Delete the source HiRDB file system area

Delete the source HiRDB file system area (/dev1/HiRDB_P/area1/rdarea1).

(5) Create symbolic links

Execute the ln command with the HiRDB administrator privilege to create a symbolic link.

Use the same symbolic link name as for the source HiRDB file system area.

 
ln -s /dev2/HiRDB_P/dbdir2/generation2  /dev1/HiRDB_P/area1/rdarea1 
      --------------------------------  ---------------------------
                 (target)                      (source)
 

Explanation
For details about the format of the ln command, see the OS documentation.

(6) Release the RDAREAs from step 1 from shutdown and closed status, and place them in open status

 
pdrels -r RDAREA1 -o
 

Explanation
-r: Specifies the name of an RDAREA that is to be released from shutdown status.
-o: Specifies that the RDAREA is to be released from shutdown status and then opened.