Nonstop Database, HiRDB Version 9 System Operation Guide
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
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 |
pdpfresh |
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 |
Copy the HiRDB file system area (/dev1/HiRDB_P/area1/rdarea1) from /dev1 to /dev2 (/dev2/HiRDB_P/dbdir2/generation2).
Delete the source HiRDB file system area (/dev1/HiRDB_P/area1/rdarea1).
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) |
pdrels -r RDAREA1 -o |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.