-
Create a file to contain the access names of the disks:
# vi /tmp/disklist
For example:
/dev/sdu
-
Read the existing keys:
# vxfenadm -g all -f
/tmp/disklist
The output from this command displays the key:
Device Name: /dev/sdu
Total Number Of Keys: 1
key[0]:
Key Value [Numeric Format]: 65,49,45,45,45,45,45,45
Key Value [Character Format]: A1------
-
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.
-
If you do not know on which node the key was created, follow step 5 through step 7 to remove the key.
-
Register a second key "A2" temporarily with the disk:
# vxfenadm -m -k A2 -f /tmp/disklist
Registration completed for disk path /dev/sdu
-
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/sdu
-
Remove the temporary key assigned in step 5.
# vxfenadm -x -kA2 -f /tmp/disklist
Deleted the key : [A2------] from device /dev/sdu
No registration keys exist for the disk.