|
|
diskrm [-F dm_type] [disk_number]
The initial system disk is set up during system installation. Additional disks not used during system installation must be set up using diskadd; the diskrm command is used to remove disk drives from the system. The only function of diskrm is to update /etc/vfstab.
diskadd is an interactive command which prompts you for information about the setup of the disk.
See disk(7) for an explanation of this notation.
Next, the disksetup(1M) command is executed for surface analysis, creating/writing the pdinfo, VTOC and alternates information to the disk, issuing the needed mkfs calls, and mounting filesystems.
Then surface analysis is performed to catch any detectable defects and remap them. The creation of the VTOC divides the UNIX system partition into slices. Slices are created to contain a filesystem or act as a raw device (for example, the swap or dump device). Executing the mkfs(1M) command for the needed filesystems handles the creation of a specific type of filesystem on a slice. If you requested automatic mounting, directories are created in the root filesystem to hold the new filesystems, they are mounted, and /etc/vfstab is updated to remount them on subsequent bootups of the system.
If you add swap/paging space on the new drive, you must make it available for system use with the swap(1M) command.
The diskadd command cannot be used to enable large file support. If you need to enable large file support for files greater than 2GB on a vxfs filesystem, use fsadm_vxfs(1M).
As mentioned previously, the diskrm command can be used to remove disk drives from the system by updating the /etc/vfstab file. The drive to be removed is designated in the same way as for the diskadd command.
If you change the hard disk configuration on your system (for example, if you add, replace, or remove a hard disk), you should create new emergency recovery diskettes. For details, see emergency_disk(1M).