Seite 1 von 1

Warum ändert sich die PID ständig?

Verfasst: 21.07.2009, 08:59
von Stingulus
Hallo,

ich wollte eine VM mit Kill -9 PID abschiessen. Als Meldung bekomme ich dann " No such process"

Wenn ich dann den Befehl: "ps -auxww | grep" erneut eingebe bekomme jedesmal eine andere PID zurück.
Was mache ich da falsch?

[root@lvtvm01 root]# ps -auxww | grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
root 26772 0.0 0.2 3696 688 pts/0 S 08:25 0:00 grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
[root@lvtvm01 root]# ps -auxww | grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
root 26777 0.0 0.2 3700 688 pts/0 S 08:25 0:00 grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
[root@lvtvm01 root]# ps -auxww | grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
root 26779 0.0 0.2 3692 688 pts/0 S 08:25 0:00 grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
[root@lvtvm01 root]# ps -auxww | grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
root 26781 0.0 0.2 3704 688 pts/0 S 08:25 0:00 grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
[root@lvtvm01 root]# ps -auxww | grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx
root 26783 0.0 0.1 1480 272 pts/0 R 08:25 0:00 grep /vmfs/volumes/Datastore04-vol073/LvtsvplotClone/LvtsvplotClone.vmx

Verfasst: 21.07.2009, 11:41
von Martin
Die pid ändert sich dauernd, weil Du nur die pid des gerade von Dir aufgerufenen "grep" Prozesses erwischst...

Verfasst: 21.07.2009, 15:55
von Tschoergez
Wenn Du ne VM hart abschießen willst, such mal hier im Forum nach vm-support -x bzw -X. Da gabs einige ganz gute anleitungen.

Viele Grüße,
Jörg