|
|
VxVM User's Guide
vxdiskadm
). vxdiskadm
is used to perform physical and logical device administration.
This chapter provides the following information on performing disk and volume operations using vxdiskadm
:
vxdiskadm
vxdiskadm
, enter:
vxdiskadm
vxdiskadm
starts up and displays its main menu containing the operations available to you. vxdiskadm
Main Menuvxdiskadm
main menu:
Volume Manager Support Operations Menu: VolumeManager/Disk 1 Add or initialize one or more disks 2 Encapsulate one or more disks 3 Remove a disk 4 Remove a disk for replacement 5 Replace a failed or removed disk 6 Mirror volumes on a disk 7 Move volumes from a disk 8 Enable access to (import) a disk group 9 Remove access to (deport) a disk group 10 Enable (online) a disk device 11 Disable (offline) a disk device 12 Mark a disk as a spare for a disk group 13 Turn off the spare flag on a disk list List disk information ? Display help about menu ?? Display help about the menuing system q Exit from menus Select an operation to perform
?
can be entered at any time to provide help in using the menu. The output of ?
is a list of operations and a definition of each.
??
lists inputs that can be used at any prompt.
q
returns you to the main menu if you need to restart a process; however, using q
at the main menu level exits the Volume Manager Support Operations.
vxdiskadm
menu provides access to the following operations:
none
is selected, the disk is held as a spare to be used for future operations or disk replacements without needing to be initialized at that time. You can also specify that selected disks be marked as hot-relocation spares for a disk group. If the disk has not been initialized already, the disk is partitioned and initialized for use with the Volume Manager.
rootdg
cannot, however, be deported.
removed
. If there are any initialized disks that are not part of a disk group, you are given the option of using one of these disks as a replacement.
Remove
a
disk
for
replacement
menu entry, or one that failed during use. You are prompted for a disk name to replace and a disk device to use as a replacement. You can choose an uninitialized disk, in which case the disk will be initialized, or you can choose a disk that you have already initialized using the Add
or
initialize
a
disk
menu operation.
vxdiskadm
. When performing disk administration, it is important that you recognize the difference between a device name and a disk name.
The device name (sometimes referred to as devname or disk access name) is the location of the disk. The syntax of a device name is c#b#t#d#s#
, where:
c#
is the number of the controller to which the disk drive is attached.
b#
is the corresponding bus number
t#
is the number of the target disk on that controller.
d#
is the number of the disk (or UNIX partition).
s#
is the number of the disk slice.
vxdiskadm
interface, the slice portion of the device name (s#
) should not be entered. Only c#t#d#
should be used.
/dev/dsk/devicename
. In this document, only the device name is listed and /dev/dsk
is assumed. An example of a device name is c0b0t0d0s0
.
The disk name (sometimes referred to as disk media name) is an administrative name for the disk, such as disk01
. If you do not assign a disk name, the disk name defaults to disk##
if the disk is being added to rootdg
(where ##
is a sequence number). Otherwise, the default disk name is groupname##
, where groupname is the name of the disk group to which the disk is added.
Unless another disk group is specified, VxVM places new disks in the default disk group, rootdg
. Instructions on creating additional disk groups are provided later in this chapter.
The method by which you place a disk under Volume Manager control depends on the circumstances:
/etc/vx/disks.exclude
before the initialization or encapsulation. Similarly, you can exclude all disks on specific controllers from initialization or encapsulation by listing those controllers in the file /etc/vx/cntrls.exclude
.
vxdiskadm
to place disks under VxVM control in various ways and circumstances.
diskadd
) before it can be placed under Volume Manager control. vxdiskadm
, the initialization will begin as normal, but will quit with a message that informs you that the disk does not appear to be valid and may not be formatted. If this happens, you need to format the disk properly and then attempt to place the disk under VxVM control again.
1
(Add
or
initialize
one
or
more
disks
) from the vxdiskadm
main menu.
list
for a list of disks):
Add or initialize 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. The
selected disks may also be initialized without adding them to a
disk group leaving the disks available for use as replacement
disks.
More than one disk or pattern may be entered at the prompt. Here
are some disk selection examples:
all: all disks
c3 c4b0t2: all disks on both controller 3 and controller
4, bus 0, target 2
c3b0t4d0: a single disk
Select disk devices to add:
[<pattern-list>,all,list,q,?] list
list
at the prompt, vxdiskadm
displays a list of the disks available to the system, followed by a prompt at which you should enter the device name of the disk to be added:
DEVICE DISK GROUP STATUS
c0b0t0d0 rootdisk rootdg online
c0b0t1d0 disk02 rootdg online
c0b0t3d0 - - online
c1b0t0d0 disk10 rootdg online
c1b0t1d0 - - online
c1b0t2d0 - - error
c1b0t3d0 - - error
.
.
.
c3b0t0d0 - - error
c3b0t1d0 disk33 rootdg online
c3b0t2d0 disk34 rootdg online
c3b0t3d0 disk35 rootdg online
Select disk devices to add:
[<pattern-list>,all,list,q,?] c1b0t2d0
error
in the STATUS
line tells you that a disk has not yet been added to Volume Manager control. These disks may or may not have been initialized before. The disks that are listed with a disk name and disk group cannot be used for this operation, as they are already under Volume Manager control.
y
(or press Return) at the following prompt:
Here is the disk selected. Output format: [Device_Name]
c1b0t2d0
Continue operation? [y,n,q,?] (default: y) y
rootdg
:
You can choose to add this disk to an existing disk group, a new disk group, or leave the disk 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 disk available for future use, specify a disk group name of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg)
Use a default disk name for the disk? [y,n,q,?] (default: y)
vxdiskadm
asks whether this disk should become a hot-relocation spare, enter n
(or press Return):
Add disk as a spare disk for rootdg? [y,n,q,?] (default: n) n
y
(or press Return) at the following prompt:
The selected disks will be added to the disk group rootdg with default disk names.
c1b0t2d0
Continue with operation? [y,n,q,?] (default: y) y
n
to avoid encapsulation. When vxdiskadm
asks if you want to initialize the disk instead, enter y
:
The following disk device has a valid VTOC, but does not appear to have been initialized for the Volume Manager. If there is data on the disk that should NOT be destroyed you should encapsulate the existing disk partitions as volumes instead of adding the disk as a new disk. Output format: [Device_Name]
c1b0t2d0
Encapsulate this device? [y,n,q,?] (default: y) n
c1b0t2d0
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
c1b0t2d0
is being placed under Volume Manager control. You are also given the option of performing surface analysis.
Initializing device c1b0t2d0.
Perform surface analysis (highly recommended) [y,n,q,?] (default: y) n
Adding disk device c1b0t2d0 to disk group rootdg with disk name disk39.
y
) or return to the vxdiskadm
main menu (n
):
Add or initialize other disks? [y,n,q,?] (default: n)
Depending on the circumstances, some of the specified disks might be handled differently to others. For example, some may be initialized, while others may be encapsulated.
/etc/vx/disks.exclude
before the initialization or encapsulation. Similarly, you can exclude all disks on specific controllers from initialization or encapsulation by listing those controllers in the file /etc/vx/cntrls.exclude
.Place multiple disks under VxVM control at once as follows:
1
(Add
or
initialize
one
or
more
disks
) from the vxdiskadm
main menu.
c3
to indicate all disks on controller 3:
Add or initialize 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. The selected disks may also be initialized without adding them to a disk group leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are some disk selection examples:
all: all disks c3 c4b0t2: all disks on both controller 3 and controller 4, bus 0, target 2 c3b0t4d0: a single disk
Select disk devices to add:
[<pattern-list>,all,list,q,?] c3
list
at the prompt for a complete listing of available disks.
y
(or press Return) at the following prompt:
Here are the disks selected. Output format: [Device_Name]
c3b0t0d0 c3b0t1d0 c3b0t2d0 c3b0t3d0
Continue operation? [y,n,q,?] (default: y) y
rootdg
, enter y
(or press Return) at the following prompt:
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 name of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg) y
vxdiskadm
to use default disk names for each of the disks, enter y
(or Press Return) at the following prompt:
Use default disk names for these disks? [y,n,q,?] (default: y) y
n
to indicate that these disks should not be used as hot-relocation spares:
Add disks as spare disks for rootdg? [y,n,q,?] (default: n) n
y
(or press Return) at the following prompt:
The selected disks will be added to the disk group rootdg with
default disk names.
c3b0t0d0 c3b0t1d0 c3b0t2d0 c3b0t3d0
Continue with operation? [y,n,q,?] (default: y) y
Y
to indicate that all of these disks should be used now:
The following disk devices appear to have been initialized already. The disks are currently available as replacement disks. Output format: [Device_Name]
c3b0t1d0 c3b0t2d0 c3b0t3d0
Use these devices? [Y,N,S(elect),q,?] (default: Y) Y
Note that this prompt allows you to indicate "yes" or "no" for all of these disks (Y
or N
) or to select how to handle each of these disks on an individual basis (S
).
If you are sure that you want to reinitialize all of these disks, enter Y
at the following prompt:
The following disks you selected for use appear to already have
been initialized for the Volume Manager. If you are certain the
disks already have been initialized for the Volume Manager, then
you do not need to reinitialize these disk devices.
Output format: [Device_Name]
c3b0t1d0 c3b0t2d0 c3b0t3d0
Reinitialize these devices? [Y,N,S(elect),q,?] (default: Y) Y
vxdiskadm
now indicates that one of the disks on controller 3 is a candidate for encapsulation; enter y
(or press Return) to encapsulate this disk:
The following disk device has a valid VTOC, but does not appear to have been initialized for the Volume Manager. If there is data on the disk that should NOT be destroyed you should encapsulate the existing disk partitions as volumes instead of adding the disk as a new disk. Output format: [Device_Name]
c3b0t0d0
Encapsulate this device? [y,n,q,?] (default: y) y
vxdiskadm
now confirms those disks that are being initialized and added to VxVM control with messages similar to the following:
Initializing device c3b0t1d0.
Initializing device c3b0t2d0.
Initializing device c3b0t3d0.
Adding disk device c3b0t1d0 to disk group rootdg with disk name disk33. Adding disk device c3b0t2d0 to disk group rootdg with disk name disk34. Adding disk device c3b0t3d0 to disk group rootdg with disk name disk35.
vxdiskadm
then confirms any disks that have been selected for encapsulation and prompts you for permission to proceed with the encapsulation; enter y
(or press Return) to continue encapsulation:
The following disk has been selected for encapsulation. Output format: [Device_Name]
c3b0t0d0
Continue with encapsulation? [y,n,q,?] (default: y) y
vxdiskadm
now displays an encapsulation status and informs you that you must perform a shutdown and reboot as soon as possible:
The disk device c3b0t0d0 will be encapsulated and added to the disk group rootdg with the disk name disk38.
The first stage of encapsulation has completed successfully. You should now reboot your system at the earliest possible opportunity. The encapsulation will require two or three reboots which will happen automatically after the next reboot. To reboot execute the command:
shutdown -g0 -y -i6
This will update the /etc/vfstab file so that volume devices are used to mount the file systems on this disk device. You will need to update any other references such as backup scripts, databases, or manually created swap devices.
y
) or return to the vxdiskadm
main menu (n
):
Add or initialize other disks? [y,n,q,?] (default: n)
To reduce the chance of encapsulation failure, make sure that the disk:
s0
slice that represents the whole disk
2
(Encapsulate
one
or
more
disks
) from the vxdiskadm
main menu.
Encapsulate one or more disks Menu: VolumeManager/Disk/Encapsulate Use this operation to convert one or more disks to use the Volume Manager. This adds the disks to a disk group and replaces existing partitions with volumes. Disk encapsulation requires a reboot for the changes to take effect. More than one disk or pattern may be entered at the prompt. Here are some disk selection examples: all: all disks c3b0 c4b0t2: all disks on both controller 3 and controller 4, bus 0, target 2 c3b0t4d0: a single disk Select disk devices to encapsulate: [<pattern-list>,all,list,q,?] c2b0t5d0
l
or list
at the prompt for a complete listing of available disks.
y
(or press Return) at the following prompt:
Here is the disk selected. Output format: [Device_Name]
c2b0t5d0
Continue operation? [y,n,q,?] (default: y) y
rootdg
, press Return at the following prompt:
You can choose to add this disk to an existing disk group or to a new disk group. To create a new disk group, select a disk group name that does not yet exist. Which disk group [<group>,list,q,?] (default: rootdg)
Use a default disk name for the disk? [y,n,q,?] (default: y)
y
(or press Return) at the following prompt:
The selected disks will be encapsulated and added to the rootdg disk group with default disk names.
c2b0t5d0
Continue with operation? [y,n,q,?] (default: y) y
y
(or press Return) at the following prompt:
The following disk has been selected for encapsulation. Output format: [Device_Name]
c2b0t5d0
Continue with encapsulation? [y,n,q,?] (default: y) y
The disk device c2b0t5d0 will be encapsulated and added to the disk group rootdg with the disk name disk01. The c2b0t5d0 disk has been configured for encapsulation. The first stage of encapsulation has completed successfully. You should now reboot your system at the earliest possible opportunity. The encapsulation will require two or three reboots which will happen automatically after the next reboot. To reboot execute the command:
shutdown -g0 -y -i6
This will update the /etc/vfstab file so that volume devices are used to mount the file systems on this disk device. You will need to update any other references such as backup scripts, databases, or manually created swap devices.
y
) or return to the vxdiskadm
main menu (n
):
Encapsulate other disks? [y,n,q,?] (default: n) n
Under some circumstances, encapsulation of a disk may fail. Encapsulation often fails because there is not enough free space available on the disk to accommodate VxVM. If this happens, the procedure outlined above will end abruptly with an error message such as the following:
The disk device c2b0t5d0 will be encapsulated and added to the disk group rootdg with the disk name disk01. The encapsulation operation failed with the following error: It is not possible to encapsulate c2b0t5d0, for the following reason: <vxvm:vxslicer: ERROR: Unsupported disk layout.>
Hit RETURN to continue.
none
instead of selecting rootdg
or typing in a disk group name. The disk is then initialized as before, but is reserved for use at some later time. It cannot be used until it is added to a disk group.Note that this type of "spare disk" should not be confused with a hot-relocation spare disk.
If the disk you wish to add has been used before, but not with VxVM, you can do either of the following:
1
(Add
or
initialize
one
or
more
disks
) from the vxdiskadm
main menu.
Add or initialize 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. The selected disks may also be initialized without
adding them to a disk group leaving the disks available for use
as replacement disks.
More than one disk or pattern may be entered at the prompt. Here
are some disk selection examples:
all: all disks
c3 c4b0t2: all disks on both controller 3 and controller
4, target 2
c3b0t4d0: a single disk
Select disk devices to add:
[<pattern-list>,all,list,q,?] c1b0t3d0
l
or list
at the prompt for a complete listing of available disks.
y
(or press Return) at the following prompt:
Here is the disk selected. Output format: [Device_Name]
c1b0t3d0
Continue operation? [y,n,q,?] (default: y) y
rootdg
:
You can choose to add this disk to an existing disk group, a new disk group, or leave the disk 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 disk available for future use, specify a disk group name of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg)
Use a default disk name for the disk? [y,n,q,?] (default: y)
vxdiskadm
asks whether this disk should become a hot-relocation spare, enter n
(or press Return):
Add disk as a spare disk for rootdg? [y,n,q,?] (default: n) n
y
(or press Return) at the following prompt:
The selected disks will be added to the disk group rootdg with default disk names.
c1b0t3d0
Continue with operation? [y,n,q,?] (default: y) y
y
to confirm that you now want to use this disk:
The following disk device appears to have been initialized already. The disk is currently available as a replacement disk. Output format: [Device_Name]
c1b0t3d0
Use this device? [y,n,q,?] (default: y) y
y
(or press Return) at the following prompt:
The following disk you selected for use appears to already have been initialized for the Volume Manager. If you are certain the disk has already been initialized for the Volume Manager, then you do not need to reinitialize the disk device. Output format: [Device_Name]
c1b0t3d0
Reinitialize this device? [y,n,q,?] (default: y) y
Initializing device c1b0t3d0.
Adding disk device c1b0t3d0 to disk group rootdg with disk name disk40.
y
) or return to the vxdiskadm
main menu (n
):
Add or initialize other disks? [y,n,q,?] (default: n)
To designate a disk as a spare, do the following:
12
(Mark
a
disk
as
a
spare
for
a
disk
group
) from the vxdiskadm
main menu.
disk01
):
Mark a disk as a spare for a disk group Menu: VolumeManager/Disk/MarkSpareDisk
Use this operation to mark a disk as a spare for a disk group. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [<disk>,list,q,?] disk01
vxdiskadm
displays the following confirmation:
Marking of disk01 in rootdg as a spare disk is complete.
y
) or return to the vxdiskadm
main menu (n
):
Mark another disk as a spare? [y,n,q,?] (default: n)
To verify which disks are currently designated as spares, select the list
menu item from the vxdiskadm
main menu. Disks that are spares should be listed with the spare
flag.
To remove a disk from the hot-relocation pool, do the following:
13
(Turn
off
the
spare
flag
on
a
disk
) from the vxdiskadm
main menu.
disk01
):
Turn off the spare flag on a disk Menu: VolumeManager/Disk/UnmarkSpareDisk Use this operation to turn off the spare flag on a disk. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [<disk>,list,q,?] disk01
vxdiskadm
displays the following confirmation:
Disk disk01 in rootdg no longer marked as a spare disk.
y
) or return to the vxdiskadm
main menu (n
):
Turn-off spare flag on another disk? [y,n,q,?] (default: n)
list
command displays device names for all recognized disks, the disk names, the disk group names associated with each disk, and the status of each disk. To display disk information, do the following:
list
from the vxdiskadm
main menu.
all
for a list of all disks:
List disk information Menu: VolumeManager/Disk/ListDisk Use this menu operation to display a list of disks. You can also choose to list detailed information about the disk at a specific disk device address. Enter disk device or "all" [<address>,all,q,?] (default: all)
all
, the Volume Manager displays the following information:
DEVICE DISK GROUP STATUS c0b0t0d0 rootdisk rootdg online c1b0t0d0 disk01 rootdg online c1b0t1d0 - - online Device to list in detail [<address>,none,q,?] (default: none)
3
(Remove
a
disk
) from the vxdiskadm
main menu.
Remove a disk Menu: VolumeManager/Disk/RemoveDisk Use this operation to remove a disk from a disk group. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [<disk>,list,q,?] disk01
y
. Otherwise, answer n
.
Requested operation is to remove disk disk01 from group rootdg.
Continue with operation? [y,n,q,?] (default: y)
vxdiskadm
removes the disk from the disk group and displays the following success message:
Removal of disk disk01 is complete.
y
) or return to the vxdiskadm
main menu (n
):
Remove another disk? [y,n,q,?] (default: n)
11
(Disable
(offline)
a
disk
device
) from the vxdiskadm
main menu.
Disable (offline) a disk device
Menu: VolumeManager/Disk/OfflineDisk
Use this menu operation to disable all access to a disk device
by the Volume Manager. This operation can be applied only to
disks that are not currently in a disk group. Use this operation
if you intend to remove a disk from a system without rebooting.
NOTE: Many systems do not support disks that can be removed from
a system during normal operation. On such systems, the
offline operation is seldom useful.
Select a disk device to disable [<address>,list,q,?] c1t1d0
vxdiskadm
disables the specified disk.
y
) or return to the vxdiskadm
main menu (n
):
Disable another device? [y,n,q,?] (default: n)
10
(Enable
(online)
a
disk device
) from the vxdiskadm
main menu.
list
for a list of devices):
Enable (online) a disk device Menu: VolumeManager/Disk/OnlineDisk Use this operation to enable access to a disk that was disabled with the "Disable (offline) a disk device" operation. You can also use this operation to re-scan a disk that may have been changed outside of the Volume Manager. For example, if a disk is shared between two systems, the Volume Manager running on the other system may have changed the disk. If so, you can use this operation to re-scan the disk. NOTE: Many vxdiskadm operations re-scan disks without user intervention. This will eliminate most needs to online a disk directly, except when the disk is directly offlined.
Select a disk device to enable [<address>,list,q,?] c1b0t1d0
vxdiskadm
enables the specified device.
y
) or return to the vxdiskadm
main menu (n
):
Enable another device? [y,n,q,?] (default: n)
4
(Remove
a
disk
for
replacement
) from the vxdiskadm
main menu.
list
for a list of disks):
Remove a disk for replacement Menu: VolumeManager/Disk/RemoveForReplace Use this menu operation to remove a physical disk from a disk group, while retaining the disk name. This changes the state for the disk name to a removed disk. If there are any initialized disks that are not part of a disk group, you will be given the option of using one of these disks as a replacement. Enter disk name [<disk>,list,q,?] disk02
The following devices are available as replacements: c1b0t1d0 You can choose one of these disks now, to replace disk02. Select "none" if you do not wish to select a replacement disk. Choose a device, or select "none" [<device>,none,q,?] (default: c1b0t1d0)
Requested operation is to remove disk disk02 from group rootdg. The removed disk will be replaced with disk device c1b0t1d0. Continue with operation? [y,n,q,?] (default: y)
vxdiskadm
displays the following success screens:
Removal of disk disk02 completed successfully.
Proceeding to replace disk02 with device c1b0t1d0.
Disk replacement completed successfully.
y
) or return to the vxdiskadm
main menu (n
):
Remove another disk? [y,n,q,?] (default: n)
4
(Remove
a
disk
for
replacement
) to remove a disk, then do the following:
5
(Replace
a
failed
or
removed
disk
) from the vxdiskadm
main menu.
Replace a failed or removed disk Menu: VolumeManager/Disk/ReplaceDisk Use this menu operation to specify a replacement disk for a disk that you removed with the "Remove a disk for replacement" menu operation, or that failed during use. You will be prompted for a disk name to replace and a disk device to use as a replacement . You can choose an uninitialized disk, in which case the disk will be initialized, or you can choose a disk that you have already initialized using the Add or initialize a disk menu operation. Select a removed or failed disk [<disk>,list,q,?] disk02
vxdiskadm
displays the device names of the disk devices available for use as replacement disks; enter the device name of the device of your choice or press Return to select the default device:
The following devices are available as replacements: c1b0t0d0s0 c1b0t1d0s0 You can choose one of these disks to replace disk02. Choose "none" to initialize another disk to replace disk02. Choose a device, or select "none" [<device>,none,q,?] (default: c1b0t0d0s0)
The requested operation is to use the initialized device c1b0t0d0s0 to replace the removed or failed disk disk02 in disk group rootdg. Continue with operation? [y,n,q,?] (default: y)
vxdiskadm
displays the following success screen:
Replacement of disk disk02 in group rootdg with disk device c1b0t0d0s0 completed successfully.
y
) or return to the vxdiskadm
main menu (n
):
Replace another disk? [y,n,q,?] (default: n)
To mirror volumes on a disk, make sure that the target disk has an equal or greater amount of space as the originating disk and then do the following:
6
(Mirror
volumes
on
a
disk
) from the vxdiskadm
main menu.
Mirror volumes on a disk Menu: VolumeManager/Disk/Mirror This operation can be used to mirror volumes on a disk. These volumes can be mirrored onto another disk or onto any available disk space. Volumes will not be mirrored if they are already mirrored. Also, volumes that are comprised of more than one subdisk will not be mirrored. Mirroring volumes from the boot disk will produce a disk that can be used as an alternate boot disk. Enter disk name [<disk>,list,q,?] disk02
You can choose to mirror volumes from disk disk02 onto any available disk space, or you can choose to mirror onto a specific disk. To mirror to a specific disk, select the name of that disk. To mirror to any available disk space, select "any". Enter destination disk [<disk>,list,q,?] (default: any) disk01
The requested operation is to mirror all volumes on disk disk02 in disk group rootdg onto available disk space on disk disk01. NOTE: This operation can take a long time to complete. Continue with operation? [y,n,q,?] (default: y)
vxdiskadm
displays the status of the mirroring operation:
Mirror volume voltest-bk00 ...
Mirroring of disk disk01 is complete.
y
) or return to the vxdiskadm
main menu (n
):
Mirror volumes on another disk? [y,n,q,?] (default: n)
7
(Move
volumes
from
a
disk
) from the vxdiskadm
main menu.
Move volumes from a disk Menu: VolumeManager/Disk/Evacuate Use this menu operation to move any volumes that are using a disk onto other disks. Use this menu immediately prior to removing a disk, either permanently or for replacement. You can specify a list of disks to move volumes onto, or you can move the volumes to any available disk space in the same disk group. NOTE: Simply moving volumes off of a disk, without also removing the disk, does not prevent volumes from being moved onto the disk by future operations. For example, using two consecutive move operations may move volumes from the second disk to the first.
Enter disk name [<disk>,list,q,?] disk01
You can now specify a list of disks to move onto. Specify a list of disk media names (e.g., disk01) all on one line separated by blanks. If you do not enter any disk media names, then the volumes will be moved to any available space in the disk group.
Requested operation is to move all volumes from disk disk01 in group rootdg.
NOTE: This operation can take a long time to complete.
Continue with operation? [y,n,q,?] (default: y)
vxdiskadm
displays the status of the operation:
Move volume voltest ... Move volume voltest-bk00 ...
vxdiskadm
displays the following success screen:
Evacuation of disk disk01 is complete.
y
) or return to the vxdiskadm
main menu (n
):
Move volumes from another disk? [y,n,q,?] (default: n)
rootdg
, in which all volumes are created if no further specification is given. All commands will default to rootdg
as well.
If you need to create a disk group in addition to rootdg
, do the following:
1
(Add
or
initialize
one
or
more
disks
) from the vxdiskadm
main menu.
Add or initialize 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. The selected disks may also be initialized without adding them to a disk group leaving the disks available for use as replacement disks. More than one disk or pattern may be entered at the prompt. Here are some disk selection examples: all: all disks c3c4b0t2: all disks on both controller 3 and controller 4, target 2 c3b0t4d0: a single disk Select disk devices to add: [<pattern-list>,all,list,q,?] c1b0t2d0
l
or list
at the prompt for a listing of all disks.
y
(or press Return) at the following prompt:
Here is the disk selected. Output format: [Device_Name]
c1b0t2d0
Continue operation? [y,n,q,?] (default: y) y
anotherdg
, in this case):
You can choose to add this disk to an existing disk group, a new disk group, or leave the disk 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 disk available for future use, specify a disk group name of "none". Which disk group [<group>,none,list,q,?] (default: rootdg) anotherdg
vxdiskadm
confirms that no active disk group currently exists with the same name and prompts for confirmation that you really want to create this new disk group:
There is no active disk group named anotherdg.
Create a new group named anotherdg? [y,n,q,?] (default: y) y
Use a default disk name for the disk? [y,n,q,?] (default: y)
vxdiskadm
asks whether this disk should become a hot-relocation spare, enter n
(or press Return):
Add disk as a spare disk for anotherdg? [y,n,q,?] (default: n) n
y
(or press Return) at the following prompt:
A new disk group will be created named anotherdg and the selected disks will be added to the disk group with default disk names.
c1b0t2d0
Continue with operation? [y,n,q,?] (default: y) y
y
to confirm that you now want to use this disk:
The following disk device appears to have been initialized already. The disk is currently available as a replacement disk. Output format: [Device_Name]
c1b0t2d0
Use this device? [y,n,q,?] (default: y) y
y
(or press Return) at the following prompt:
The following disk you selected for use appears to already have been initialized for the Volume Manager. If you are certain the disk has already been initialized for the Volume Manager, then you do not need to reinitialize the disk device. Output format: [Device_Name]
c1b0t2d0
Reinitialize this device? [y,n,q,?] (default: y) y
Initializing device c1b0t2d0.
Creating a new disk group named anotherdg containing the disk device c1b0t2d0 with the name another01.
y
) or return to the vxdiskadm
main menu (n
):
Add or initialize other disks? [y,n,q,?] (default: n)
To deport a disk group, do the following:
9
(Remove
access
to
(deport)
a
disk
group
) from the vxdiskadm
main menu.
Remove access to (deport) a disk group Menu: VolumeManager/Disk/DeportDiskGroup Use this menu operation to remove access to a disk group that is currently enabled (imported) by this system. Deport a disk group if you intend to move the disks in a disk group to another system. Also, deport a disk group if you want to use all of the disks remaining in a disk group for some new purpose. You will be prompted for the name of a disk group. You will also be asked if the disks should be disabled (offlined). For removable disk devices on some systems, it is important to disable all access to the disk before removing the disk. Enter name of disk group [<group>,list,q,?] (default: list) newdg
y
if you intend to remove the disks in this disk group:
The requested operation is to disable access to the removable disk group named newdg. This disk group is stored on the following disks: newdg01 on device c1b0t1d0s0 You can choose to disable access to (also known as "offline") these disks. This may be necessary to prevent errors if you actually remove any of the disks from the system. isable (offline) the indicated disks? [y,n,q,?] (default: n)
Continue with operation? [y,n,q,?] (default: y)
vxdiskadm
displays the following screen:
Removal of disk group newdg was successful.
y
) or return to the vxdiskadm
main menu (n
):
Disable another disk group? [y,n,q,?] (default: n)
To import a disk group, do the following:
8
(Enable
access
to
(import)
a
disk
group
) from the vxdiskadm
main menu.
Enable access to (import) a disk group Menu: VolumeManager/Disk/EnableDiskGroup Use this operation to enable access to a disk group. This can be used as the final part of moving a disk group from one system to another. The first part of moving a disk group is to use the "Remove access to (deport) a disk group" operation on the original host. A disk group can be imported from another host that failed without first deporting the disk group. Be sure that all disks in the disk group are moved between hosts. If two hosts share a SCSI bus, be very careful to ensure that the other host really has failed or has deported the disk group. If two active hosts import a disk group at the same time, the disk group will be corrupted and will become unusable. Select disk group to import [<group>,list,q,?] (default: list) newdg
vxdiskadm
displays the following success screen:
The import of newdg was successful.
y
) or return to the vxdiskadm
main menu (n
):
Select another disk group? [y,n,q,?] (default: n)
To exit from the Volume Manager Support Operations, select menu item q
from the vxdiskadm
main menu.