Veritas Volume Manager – vxdiskadm
>
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
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d0: a single disk
Select disk devices to encapsulate:
[all,list,q,?] c2t5d0
can be a single disk, or a series of disks and/or controllers (with optional targets). If
consists of multiple items, those items must be separated by white space.
Here is the disk selected. Output format: [Device_Name]
c2t5d0
Continue operation? [y,n,q,?] (default: y) y
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 [,list,q,?] (default: rootdg)
Use a default disk name for the disk? [y,n,q,?] (default: y)
The selected disks will be encapsulated and added to the rootdg
disk group with default disk names.
c2t5d0
Continue with operation? [y,n,q,?] (default: y) y
The following disk has been selected for encapsulation. Output format:
[Device_Name]
c2t5d0
Continue with encapsulation? [y,n,q,?] (default: y) y
The disk device c2t5d0 will be encapsulated and added to the disk
group rootdg with the disk name disk01.
The c2t5d0 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.
Encapsulate other disks? [y,n,q,?] (default: n) n
The disk device c2t5d0 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 c2t5d0, for the following reason:
Hit RETURN to continue.
Encapsulation may fail if there is not enough free space available on the disk to accommodate volume manager. If this happens, the procedure above will end abruptly with an error message as above .


September 2nd, 2010 at 12:15 am
Best for the beginners
August 25th, 2011 at 12:37 am
Really helpful, and simplified…. easy to understand…
Great Job…