How to set the nohotuse flag using the vxedit command

book

Article ID: 100023340

calendar_today

Updated On:

Resolution

VERITAS Volume Manager (tm) uses hot-relocation by default on RAID-5 and mirrored subdisks. Volume Manager will detect I/O failures and relocate subdisks to spare disks or other free space within the disk group.Volume Manager will relocate to spare disks that have been designated as hot-relocation spares. If no designated spares exist,  then any free space in the disk group will be used. Additionally,  if not enough spare diskspace exists,  then Volume Manager will use any available disk space with in the same disk group for the remaining relocation.

At times it may be deemed necessary to disable the hot-relocation feature for a particular disk. It may be desired to keep a disk free from subdisks that belong to other volumes if there are no disks being used as spare disks. The reason could be to keep I/Ooff other volumes away from the disk or,  in the case of mirror,  to keep the mirror free of other subdisks for recovery reasons.


A sample vxdisk list output is shown below withhot-relocation enabled(on):

   DEVICE      TYPE      DISK        GROUP        STATUS
   c0t0d0s2      sliced      rootdisk    rootdg          online
   c0t1d0s2      sliced      disk01      datadg          online
   c0t2d0s2      sliced      disk02      datadg          online


By default, nohotuse is set to off.

To disable hot-relocation for aparticular disk, use the followingcommand:

    vxedit -g set nohotuse=on

Forexample:

   vxedit -g datadg set nohotuse=on disk01

This will enable the "nohotuse" flag and make the disk unavailable for hot relocation.

The vxdisk list command should now provide the following output for the same disks above:

    DEVICE      TYPE      DISK        GROUP        STATUS
   c0t0d0s2      sliced      rootdisk    rootdg          online
   c0t1d0s2      sliced      disk01      datadg          onlinenohotuse
   c0t2d0s2      sliced      disk02      datadg          online

The nohotuse status for a particular disk is also reported in the detailed disk description using the command:

    vxdisk listc#t#d#s2

The nohotuse flag will appear in the "flags" row if nohotuse is enabled.  For example,

    # vxdisk listc0t1d0s2
   Device:    c0t1d0s2
   ...
   flags:    online ready private autoconfig nohotuse autoimportimported
   ...
   c0t1d0s2      state=enabled

To clear the "nohotuse" flag and make a disk available again for hot-relocation, use the following command:

    vxedit -g set nohotuse=off

Forexample:

    vxedit -g datadg setnohotuse=off disk01

 
 

 

Issue/Introduction

How to set the nohotuse flag using the vxedit command