Wednesday, March 28, 2012

co-existence of vxvm with ZFS

This is interesting link that talk about co-existence of vxvm  with ZFS


To reuse a ZFS disk as a VxVM disk

Remove the disk from the zpool, or destroy the zpool.

See the Oracle documentation for details.

Clear the signature block using the dd command:

# dd if=/dev/zero of=/dev/rdsk/c#t#d#s# oseek=16 bs=512 count=1

Where c#t#d#s# is the disk slice on which the ZFS device is configured. If the whole disk is used as the ZFS device, clear the signature block on slice 0.

You can now initialize the disk as a VxVM device using the vxdiskadm command or the vxdisksetup command.


To reuse a VxVM disk as a ZFS disk
If the disk is in a disk group, remove the disk from the disk group or destroy the disk group.

To remove the disk from the disk group:

# vxdg [-g diskgroup] rmdisk diskname

To destroy the disk group:

# vxdg destroy diskgroup

Remove the disk from VxVM control

# /usr/lib/vxvm/bin/vxdiskunsetup diskname

You can now initialize the disk as a ZFS device using ZFS tools.

See the Oracle documentation for details.

You must perform step 1 and step 2 in order for VxVM to recognize a disk as ZFS device

No comments:

Post a Comment