Search This Blog

Sunday, April 6, 2014

Removing Disk from Diskgroup

Removing Disk from Diskgroup

Before Removing a Disk:

·         When removing a disk from a disk group, you have two options:
    • Move the disk to the free disk pool.
    • Return the disk to an uninitialized state
  • You cannot remove the last disk in a disk group, unless you destroy the disk group:
    • In CLI, you must destroy the diskgroup to free the last disk in the diskgroup.
    • In VEA, when you remove the last disk in a disk group, the diskgroup is automatically destroyed.
  • Before removing a disk, ensure that the disk does not contain data that is needed.
VEA:

Select the disk that you want to remove.

Select Actions-> Remove Disk from Dynamic Disk Group.

vxdiskadm:

“Remove a disk”

CLI:

# vxdg –g diskgroup rmdisk dm_name
# vxdiskunsetup [-C] device_tag

Example:
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
IBM_VSCSI0_1 auto: LVM        -            -            LVM
TagmaStore-USP0_1 auto:cdsdisk    disk01       testdg       online
TagmaStore-USP1_0 auto:cdsdisk    disk02       testdg       online

# vxdg -g testdg rmdisk disk02
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
IBM_VSCSI0_1 auto:LVM        -            -            LVM
TagmaStore-USP0_1 auto:cdsdisk    disk01       testdg       online
TagmaStore-USP1_0 auto:cdsdisk    -            -            online

# vxdiskunsetup –C disk01
# vxdisk rm TagmaStore-USP1_0




No comments:

Post a Comment