To prevent the encapsulation from failing, make sure that the following conditions apply:
The disk has a small amount of free space (at least 1 megabyte at the beginning or end of the disk) that does not belong to any partition. If the disk being encapsulated is the root disk, and this does not have sufficient free space available, a similar sized portion of the swap partition is used instead.
Use the format or fdisk commands to obtain a printout of the root disk partition table before you encapsulate a root disk. For more information, see the appropriate manual pages. You may need this information should you subsequently need to recreate the original root disk.
You cannot grow or shrink any volume (rootvol, usrvol, varvol, optvol, swapvol, and so on) that is associated with an encapsulated root disk. This is because these volumes map to physical partitions on the disk, and these partitions must be contiguous.
If the root disk is encapsulated and the dump device is covered by the swap volume, it is not safe to use the savecore -L operation because this overwrites the swap area. Configure a dedicated dump device on a partition other than the swap area.
To encapsulate a disk for use in VxVM
Select disk devices to encapsulate: [<pattern-list>,all,list,q,?] device name
Here is the disk selected. Output format: [Device] device name 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 [<group>,list,q,?]
Use a default disk name for the disk? [y,n,q,?] (default: y)
The selected disks will be encapsulated and added to the disk group name disk group with default disk names. device name Continue with operation? [y,n,q,?] (default: y) y
The following disk has been selected for encapsulation. Output format: [Device] device name Continue with encapsulation? [y,n,q,?] (default: y) y
The disk device device name will be encapsulated and added to the disk group diskgroup with the disk name diskgroup01.
Enter the desired format [cdsdisk,sliced,q,?] (default: cdsdisk)
At the following prompt, vxdiskadm asks if you want to use the default private region size of 65536 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,?] (default: 65536)
If you entered cdsdisk as the format in step 7, you are prompted for the action to be taken if the disk cannot be converted this format:
Do you want to use sliced as the format should cdsdisk fail? [y,n,q,?] (default: y)
# shutdown -g0 -y -i6
/etc/vfstab file is updated to include the volume devices that are used to mount any encapsulated file systems. You may need to update any other references in backup scripts, databases, or manually created swap devices. The original
/etc/vfstab file is saved as
Encapsulate other disks? [y,n,q,?] (default: n) n