Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008
55Storage pools
Adding disks to a storage pool
Adding disks to a storage pool
To add one or more initialized disks to the storage pool, use the following
command:
# vxpool [-g
diskgroup
] adddisk
storage_pool
\
dm=
dm1
[,
dm2
,...]
The following example shows two disks, mydg04 and mydg05, being added to
the storage pool, mypool:
# vxpool -g mydg adddisk mypool dm=mydg04,mydg05
Note: Any disks that you add to a storage pool must have already been initialized
for use, and must belong to the same disk group as the storage pool.
If a storage pool’s autogrow policy is set to diskgroup, ISP automatically
brings additional disks from the disk group into the storage pool as required.
Removing disks from a storage pool
To remove one or more disks from the storage pool, use the following command:
# vxpool [-g
diskgroup
] rmdisk
storage_pool
dm=
dm1
[,
dm2
...]
In the following example, the disks, mydg01 and mydg04, are removed from the
storage pool, ReliablePool, for use elsewhere:
# vxpool -g mydg rmdisk ReliablePool dm=mydg01,mydg04
Note: You cannot remove a disk from a storage pool if any volumes are
configured on that disk. To remove such a disk, first use the
vxassist evacute
command to move the volumes away from the disk. When you have done this,
you can then remove the disk from the storage pool.
Associating templates with a storage pool
To associate one or more volume templates with a storage pool, use the vxpool
assoctemplate command as shown here:
# vxpool [-g
diskgroup
] assoctemplate
storage_pool
\
template=
t1
[,
t2
,...]
For example, the following command associates the templates Mirroring and
Striping with the storage pool, ReliablePool:
# vxpool -g mydg assoctemplate ReliablePool \
template=Mirroring,Striping