18.17.4 Creating a HiRDB file system area for system files

Figure 18-4 shows the procedure for creating a HiRDB file system area for system files.

Figure 18-4 Procedure for creating a HiRDB file system area for system files

[Figure]

Note
The numbers to the left of the process boxes correspond to the paragraph numbers of the explanations on the following pages. For example, step 3 is explained in paragraph (3) below.
Organization of this subsection
(1) Initialize the hard disk
(2) Set partitions
(3) Initialize the UNIX file system (applicable to regular files)
(4) Change each character special file's owner and access privileges (applicable to character special files)
(5) Link the file names symbolically
(6) Initialize the HiRDB file system area for system files

(1) Initialize the hard disk

Executor: Superuser

Initialize the hard disk.

Initialize the hard disk; for the procedure, see the OS manual.

(2) Set partitions

Executor: Superuser

Set partitions on the initialized hard disk.

Set partitions on the initialized hard disk; for the procedure, see the OS manual.

(3) Initialize the UNIX file system (applicable to regular files)

Executor: Superuser

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 manual.

If the partitions are already initialized, skip this step.

(4) Change each character special file's owner and access privileges (applicable to character special files)

Executor: Superuser

Change the owner and access privileges of the HiRDB file system area, so it will be protected from unauthorized accesses. Table 18-20 shows the owner and access privileges to be set for the HiRDB file system area.

Table 18-20 Owner and access privileges to be set for HiRDB file system area (HiRDB file system area for system files)

Owner, access privilegesInformation to be setCommand to be executed*
OwnerUser IDHiRDB administratorchown command
Group IDHiRDB groupchgrp command
Access privilegeOwnerrw- (read and write operations permitted)chmod command
Grouprw- (read and write operations permitted)
Other--- (access denied)

* These are OS commands; for details, see the OS manual.

(5) Link the file names symbolically

Executor: Superuser

For a HiRDB file system area, a name linked symbolically to its entity by the ln OS command should be used instead of using the name of its character special file or regular file entity as is. When a symbolically linked name is used, the HiRDB file system area can be restored easily onto another hard disk in the event of a hard disk failure.

For details on the ln command, see the OS manual.

(6) Initialize the HiRDB file system area for system files

Executor: HiRDB administrator

Use the pdfmkfs command to initialize the HiRDB file system area for system files:

pdfmkfs -n 40 -l 5 -k SYS /sysfile_c

Explanation
-n: Specifies the size of the HiRDB file system area. Set the size of the HiRDB file system area to be initialized so that it does not exceed the partition size. If it exceeds the partition size, the partitions physically following the HiRDB file system area may be damaged.
-l: Specifies the maximum number of files that can be created in the HiRDB file system area.
-k SYS: Specifies that this is a HiRDB file system area for system files.
/sysfile_c: Specifies a name for the HiRDB file system area.
It is recommended that after the command has executed you check whether or not the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 8 Command Reference.
Duplicating the HiRDB file system area using a mirror disk
If the HiRDB file system area is to be duplicated using a mirror disk, do the following:
  • 3050RX group or 3500/3xx
    In the pdfmkfs command, specify the name of the character special file on the master disk (/dev/rdsk/rdskxxx) or the name linked to it symbolically.
  • 3500 series (except 3500/3xx)
    In the pdfmkfs command, specify the mirror special file name (/dev/mirror/rdskxxx) or the name linked to it symbolically.