Nonstop Database, HiRDB Version 9 System Operation Guide
This sections explains the actions to take when a disk error occurs.
Replace the hard disk, and initialize it.
Initialize the hard disk; for the procedure, see the OS documentation.
Set partitions on the initialized hard disk; for the procedure, see the OS documentation.
If regular files had been used in the HiRDB file system area, initialize the partitions as a UNIX file system; for the procedure, see the OS documentation.
If the partitions are already initialized, skip this step.
Set the owner and access privileges for each HiRDB file system area to the previous information. The following table shows the owner and access privileges to be set for a HiRDB file system area.
Table 20-19 Owner and access privileges to be set for a HiRDB file system area
Owner, access privileges | Information to be set | Command to be executed# | |
---|---|---|---|
Owner | User ID | HiRDB administrator | chown command |
Group ID | HiRDB group | chgrp command | |
Access privilege | Owner | rw- (read and write operations permitted) | chmod command |
Group | rw- (read and write operations permitted) | ||
Other | --- (access denied) |
#: These are OS commands; for details, see the OS documentation.
If a HiRDB file system area had been linked symbolically to a name, link the same name to the HiRDB file system area; the OS's ln command is used for this purpose (For details on the ln command, see the OS documentation).
Initialize each HiRDB file system area on the erroneous disk with the pdfmkfs command.
Use the pdfmkfs command to initialize a HiRDB file system area for system files:
pdfmkfs -n 40 -l 5 -k SYS -i /sysfile_a |
Use the pdfmkfs command to initialize the HiRDB file system area for RDAREAs:
pdfmkfs -n 40 -l 5 -k DB -i /dbarea1 |
Create system files in the HiRDB file system area that was initialized in subsection (6)(a) above.
pdloginit -d sys -f /sysfile_a/log1a -n 2000 1 pdloginit -d sys -f /sysfile_a/log2a -n 2000 pdloginit -d sys -f /sysfile_a/log3a -n 2000 pdloginit -d sys -f /sysfile_a/log4a -n 2000 pdloginit -d spd -f /sysfile_a/sync1 -n 1000 2 pdloginit -d spd -f /sysfile_a/sync3 -n 1000 pdstsinit -u UNT1 -f /sysfile_a/usts1a -c 500 3 pdstsinit -u UNT1 -f /sysfile_a/usts2a -c 500 pdstsinit -s bes1 -f /sysfile_a/b1sts1a -c 500 4 pdstsinit -s bes1 -f /sysfile_a/b1sts2a -c 500 |
Restore the RDAREAs on the erroneous disk with the pdrstr command. For an example of restoring RDAREAs, see 21. Database Recovery Procedures.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.