diskadd(1M)


diskadd, diskrm -- disk set up utility

Synopsis

diskadd [-F dm_type] [disk_number]

diskrm [-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; 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.

Command options


-F dm_type
Denotes the disk manager interface to use. If this option is not specified, diskadd and diskrm look 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/1s?

/dev/dsk/cCbBtTdDsS

/dev/dsk/cCbBtTdDpP

/dev/rdsk/1s*

/dev/rdsk/cCbBtTdDs0

/etc/vfstab

Usage

To setup a hard disk, first the fdisk(1M) command is invoked to partition the disk. This partitions 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.

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.

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


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004