-
Create a file to contain the access names of the disks:
# vi /tmp/disklist
For example:
/dev/rdsk/c0t0d0s2
-
Read the existing keys:
# vxfenadm -g all -f
/tmp/disklist
The output from this command displays the key:
Device Name: /dev/rdsk/c0t0d0s2
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:
# vxfenadm -x -kA1 -f /tmp/disklist
The key is removed.
If you do not know on which node the key was created, follow step 4 through step 6 to remove the key.
-
Register a second key "A2" temporarily with the disk:
# vxfenadm -m -kA2 -f /tmp/disklist
Registration completed for disk path /dev/sdh
-
Remove the first key from the disk by pre-empting it with the second key:
# vxfenadm -p -kA2 -f /tmp/disklist -vA1
key: A2------ prempted the key: A1------ on disk
/dev/sdh
-
Remove the temporary key assigned in step 4.
# vxfenadm -x -kA2 -f /tmp/disklist
Deleted the key : [A2------] from device /dev/sdk
No registration keys exist for the disk.
-
Verify that the keys were properly cleaned:
# vxfenadm -g all -f /tmp/diskslist