Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Created December 11, 2013 17:36
Show Gist options
  • Save jcpowermac/7914885 to your computer and use it in GitHub Desktop.
Save jcpowermac/7914885 to your computer and use it in GitHub Desktop.
Replica lock
2013-01-08T20:14:02.132Z cpu24:5867805)DLX: 3901: vol 'View-Replica-31': [Req mode: 2] Not free; Lock [PhoenixDTaaS:type 10c00001 offset 216922112 v 1179, hb offset 319897
gen 619, mode 1, owner 508951c0-5359e3be-36b6-0025b5020a0e mtime 12190974 nHld 0 nOvf 0]
2013-01-08T20:14:02.435Z cpu24:5867805)DLX: 3394: vol 'View-Replica-31': PhoenixDTaaS:Req mode 2 Checking liveness of [PhoenixDTaaS:type 10c00001 offset 216922112 v 1179, hb offset 3
gen 619, mode 1, owner 508951c0-5359e3be-36b6-0025b5020a0e mtime 12190974 nHld 0 nOvf 0]
#!/bin/sh
path=/vmfs/volumes/View-Replica-31/replica-3faf9959-a2e8-4a8a-9dde-908577cb73a2/
list=`ls $path`
for i in $list ; do
echo $i;
/sbin/vmkfstools -D $path$i;
done
vms=`vmkvsitools lsof | grep replica-3faf9959-a2e8-4a8a-9dde-908577cb73a2-flat.vmdk | awk '{print $1}'`
for i in $vms ; do
/bin/ps | grep $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment