Previous  |  Next  >  
Product: Storage Foundation for Oracle RAC Guides   
Manual: Storage Foundation 4.1 for Oracle RAC Installation and Configuration   

Removing Existing Keys From Disks

To remove the registration and reservation keys created by another node from a disk:

  1. Create a file to contain the access names of the disks:
      # vi /tmp/disklist

    For example:


      /dev/rdsk/c1t0d11s2
  2. Read the existing keys:
      # vxfenadm -g all -f /tmp/disklist

    The output from this command displays the key:


      Device Name: /dev/rdsk/c1t0d11s2
      Total Number Of Keys: 1
      key[0]:
         Key Value [Numeric Format]:   65,49,45,45,45,45,45,45
         Key Value [Character Format]: A1------
  3. If you know on which node the key was created, log in to that node and enter the following command:
      # vxfenadm -x -kA1 -f /tmp/disklist

    The key is removed.

  4. If you do not know on which node the key was created, follow step 5 through step 7 to remove the key.
  5. Register a second key "A2" temporarily with the disk:
      # vxfenadm -m -kA2 -f /tmp/disklist
      Registration completed for disk path /dev/rdsk/c1t0d11s2
  6. Remove the first key from the disk by preempting it with the second key:
      # vxfenadm -p -kA2 -f /tmp/disklist -vA1
      key: A2------ prempted the key: A1------ on disk  
      /dev/rdsk/c1t0d11s2
  7. Remove the temporary key assigned in step 5.
      # vxfenadm -x -kA2 -f /tmp/disklist
      Deleted the key : [A2------] from device /dev/rdsk/c1t0d11s2

    No registration keys exist for the disk.

 ^ Return to Top Previous  |  Next  >  
Product: Storage Foundation for Oracle RAC Guides  
Manual: Storage Foundation 4.1 for Oracle RAC Installation and Configuration  
VERITAS Software Corporation
www.veritas.com