VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)
139
Creating and Administering Subdisks
5
Introduction
This chapter describes how to create and maintain subdisks. Subdisks are the low-level
building blocks in a VERITAS Volume Mananger (VxVM) configuration that are required
to create plexes and volumes.
Note Most VxVM commands require superuser or equivalent privileges.
Creating Subdisks
Note Subdisks are created automatically if you use the vxassist command or the
VERITAS Enterprise Administrator(VEA) tocreatevolumes. Formoreinformation,
see “Creating a Volume” on page 161.
Use the vxmake command to create VxVM objects, such as subdisks:
# vxmake [-g diskgroup] sd subdisk diskname,offset,length
where:subdisk is thename of thesubdisk, diskname isthe disk name,offset is thestarting
point (offset) of the subdisk within the disk, and length is the length of the subdisk.
For example, to create a subdisk named disk02-01 that starts at the beginning of disk
disk02 and has a length of 8000 sectors, use the following command:
# vxmake sd disk02-01 disk02,0,8000
Note As for all VxVM commands, the default size unit is s, representing a sector. Add a
suffix, such as k for kilobyte, m for megabyte or g for gigabyte, to change the unit of
size. For example, 500m would represent 500 megabytes.
If you intend to use the new subdisk to build a volume, you must associate the subdisk
with a plex (see “Associating Subdisks with Plexes” on page 142). Subdisks for all plex
layouts (concatenated, striped, RAID-5) are created the same way.