SunSolve Internal

 

  Simple Search | Advanced Search | Product Search | Tips | Investigation Wizard

 Search for in

Printer Friendly Page ] [ E-mail this Document to Someone ]
Was this document useful? Yes or No ]

Jump to
Infodoc ID   Synopsis   Date
16051   How to 'encapsulate' disks with no free space.   30 Oct 1997

Description Top
To encapsulate a disk into volume manager, you must have some free
space on the disk in order for volume manager to make a private area.

But what can you do if you have no free space on a disk that you must
encapsulate?

In these situations, you can TEMPORARILY "encapsulate" one or more
slices from a disk into volume manager so that the data may be mirrored
to another disk.  Once the data is mirrored to a "real" volume manager
disk, the mirror is broken and the temporarily encapsulated disk is
removed from volume manager, leaving the data accessable in a volume
manager volume. 

Here's how to do it:

For each slice on the disk (excluding slice 2), run the following
command.  In this example, only slices 5 and 6 have data on them.

        vxdisk define c#t#d#s5 type=nopriv
        vxdisk define c#t#d#s6 type=nopriv

Then add each of these "slices" as a disk in a disk group.  This
example places these slices into the 'rootdg' disk group.   

        vxdg -g rootdg adddisk NPdisk05=c#t#d#s5
        vxdg -g rootdg adddisk NPdisk06=c#t#d#s6

Then, create a simple volume (not a filesystem, just a volume) on each
of these new "disks" that spans the entire "disk".  To do this, in the
vxva GUI, click on the "disk" NPdisk05, then select
"BasicOps->VolumeOperations->Create->Simple".  If you're running a
version that supports it, press the MAXSIZE button to determine the
size.  Otherwise, use the entire size of the slice for the size of the
volume your are about to create.

Then, you can mirror this volume to another disk (one WITH a private area)
and then remove the original side of the mirror.

To remove the old disks from the disk group, after removing the
subdisks from the disks, select the disks, then click on
AdvancedOps->DiskGroup->RemoveDisks.  After doing this, run the
following command for each disk:

        vxdisk rm c#t#d#s5
        vxdisk rm c#t#d#s6

SOLUTION SUMMARY:
Product Area SunOS Unbundled
Product Veritas Volume Manager
OS n/a
Hardware n/a

Top

SunWeb Home SunWeb Search SunSolve Home Simple Search

Sun Proprietary/Confidential: Internal Use Only
Feedback to SunSolve Team