![]() |
![]() |
![]() |
![]() |
![]() |
Formatted disks being placed under VxVM control may be new or previously used outside VxVM. The set of disks can consist of all disks on the system, all disks on a controller, selected disks, or a combination of these.
Depending on the circumstances, all of the disks may not be processed in the same way.
When initializing multiple disks at one time, it is possible to exclude certain disks or certain controllers.
To exclude a device from the view of VxVM, select item 17 (Prevent multipathing/Suppress devices from VxVM's view
) from the vxdiskadm
main menu.
See "Disabling multipathing and making devices invisible to VxVM" on page 129.
To initialize disks for VxVM use
1 (Add or initialize one or more disks)
from the vxdiskadm
main menu.
list
for a list of disks):
Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group.
You can add the selected disks to an existing disk group or to
a new disk group that will be created as a part of the
operation. The selected disks may also be added to a disk group
as spares. Or they may be added as nohotuses to be excluded
from hot-relocation use. The selected disks may also be
initialized without adding them to a disk group leaving the
disks available for use as replacement disks.
c3 c4t2: all disks on both controller 3 and controller
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming
xyz_ : all disks on the enclosure whose name is xyz
<pattern-list> can be a single disk, or a series of disks and/or controllers (with optional targets). If <pattern-list> consists of multiple items, separate them using white space, for example:
specifies fours disks at separate target IDs on controller 3.
If you enter list
at the prompt, the vxdiskadm
program displays a list of the disks available to the system:
c4t2d0 TCd1-18238 TCg1-18238 online
The phrase online invalid
in the STATUS
line indicates that a disk has yet to be added or initialized for VxVM control. Disks that are listed as online
with a disk name and disk group are already under VxVM control.
Enter the device name or pattern of the disks that you want to initialize at the prompt and press Return.
y
(or press Return) at the following prompt:
none
to reserve the disks for future use:
You can choose to add these disks to an existing disk group, a
new disk group, or you can leave these disks available for use
by future add or replacement operations. To create a new disk
group, select a disk group name that does not yet exist. To
leave the disks available for future use, specify a disk group
vxdiskadm
prompts for confirmation that you really want to create this new disk group:
There is no active disk group named disk group name.
Create a new group named disk group name? [y,n,q,?]
You are then prompted to confirm whether the disk group should support the Cross-platform Data Sharing (CDS) feature:
Create the disk group as a CDS disk group? [y,n,q,?]
If the new disk group may be moved between different operating system platforms, enter y
. Otherwise, enter n
.
n
to allow you to define your own disk names:
Use default disk names for the disks? [y,n,q,?] (default: y)
n
(or press Return):
n
(or press Return).
Exclude disks from hot-relocation use? [y,n,q,?}
(default: n) n
Add site tag to disks? [y,n,q,?] (default: n)
A site tag is usually applied to disk arrays or enclosures, and is not required unless you want to use the Remote Mirror feature.
If you enter y
to choose to add a site tag, you are prompted to the site name at step 11.
y
(or press Return) at the following prompt:
The selected disks will be added to the disk group
Enter site tag for disks on enclosure enclosure_name
[<name>,q,?] site_name
vxdiskadm
asks if you are sure that want to destroy it. Enter y
to confirm this:
The following disk device appears to contain a currently
Are you sure you want to destroy these file systems
vxdiskadm
asks you to confirm that the devices are to be reinitialized before proceeding:
hpdisk
-format disk:
Enter the desired format [cdsdisk,hpdisk,q,?]
Enter the format that is appropriate for your needs. In most cases, this is the default format, cdsdisk
.
vxdiskadm
asks if you want to use the default private region size of 32768 blocks (32MB). Press Return to confirm that you want to use the default value, or enter a different value. (The maximum value that you can specify is 524288 blocks.)
Enter desired private region length [<privlen>,q,?]
vxdiskadm
then proceeds to add the disks.
Adding disk device device name to disk group disk group name with
y
) or return to the vxdiskadm
main menu (n
):
The default layout for disks can be changed.
See "Displaying or changing default disk layout attributes" on page 98.