mkfdmn(8) — Maintenance
NAME
mkfdmn − creates a new file domain
SYNOPSIS
/sbin/mkfdmn [−o] [−l log_pages] [−t type] special domain
specialSpecifies the block special device name, such as /dev/rz1c, of the initial volume that you use to create the file domain.
domainSpecifies the name of the file domain.
FLAGS
−oOverwrites an existing file domain, allowing you to recreate the domain structure.
−l log_pages
Specifies the number of log pages in the file domain. The default is 512 log pages. Each log page is 8192 bytes.
−rSpecifies the file domain as the root domain. This prevents multiple volumes in the root domain. AdvFS supports only one volume in the root domain.
−t typeEnables you to define the disk type of the initial volume. This action is necessary only if the disk has not already been labeled with the disklabel utility.
DESCRIPTION
The mkfdmn command creates a file domain, which is a logical construct containing both physical volumes (disks or disk partitions) and filesets. When you create a file domain, you must specify one volume. Existing data on the volume you assign to a new file domain is destroyed when the file domain is created.
The mkfdmn command does not create a file system that you can mount. In order to mount an Advanced File System, the file domain must contain one or more filesets.
After you run the mkfdmn command, you must run the mkfset command to create at least one fileset within the new file domain. You can access the file domain as soon as you mount one or more filesets. For more information about creating filesets, see the mkfset(8) reference page.
To remove a file domain, dismount all filesets in the domain you want to delete. Then, if you have the POLYCENTER Advanced File System Utilities installed, use the rmfdmn command to delete the file domain.
If you do not have the rmfdmn utility, remove the definition of the domain by removing the defining directory and all links under it in the /etc/fdmns directory. To accomplish this, execute the following command line:
# rm -rf /etc/fdmns/domain_name
Note
Maintain a current hardcopy record of each file domain, its initial volume, and all volumes that you add to it. You may need this information to restore your system.
RESTRICTIONS
You must have root-user privilege to access this command.
You cannot have more than 100 active file domains at one time. A file domain is active when at least one fileset is mounted.
Each file domain must have a unique name of up to 31 characters. The space character and the / # : ∗ ? characters are invalid for file domain names.
EXAMPLE
The following example creates the accounts_dmn file domain with the special device /dev/rz1c as the initial volume:
# mkfdmn /dev/rz1c accounts_dmn
Until you create and mount a fileset for the accounts_dmn file domain, you cannot access the file system.
FILES
/etc/fdmnsContains file domain names and devices.