diskadd(1M)


diskadd -- disk set up utility

Synopsis

diskadd [-F dm_type] [disk_number]

Description

The initial system disk is set up during system installation. Additional disks not used during system installation must be set up using diskadd.

diskadd is an interactive command which prompts you for information about the setup of the disk.

Command options

-F dm_type
Denotes the disk manager interface to use. If this option is not specified, diskadd looks in the /etc/default/dskmgmt file for the disk manager interface to use. If the /etc/default/dskmgmt file is missing or the default cannot be determined, the value s5dm is used. This is also the default disk manager entry in the /etc/default/dskmgmt file; to set a different default disk manager, you must change this entry.

disk_number
Represents the disk device to be added to the system. If you specify 1 as the disk_number, diskadd defaults to adding the second disk on your system. For additional disks, the format of the disk_number argument is: cCbBtTdD

See disk(7) for an explanation of this notation.

Files

/dev/dsk/cCbBtTdDsS

/etc/vfstab

Usage

To setup a hard disk, first the fdisk(1M) command is invoked to partition the disk. This step breaks up the disk into logical portions for the UnixWare operating system and, optionally, for up to 3 other operating systems.

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.

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

References

emergency_disk(1M), disk(7), disksetup(1M), fdisk(1M), mkdir(1), mkfs(1M), sd01(7), swap(1M), vtoc(7)

Notices

Due to compatibility considerations, when you set up a UFS filesystem greater than 128 MB, it will hold only 64k inodes. To create more than 64k inodes, either recreate the filesystem using mkfs or use the UFS filesystem debugger to allocate more inodes.

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


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.