2009/11/18 Gaëtan Lehmann <[email protected]>:
>
> Hi,
>
> Is it possible to freeze a zone and unfreeze it a few seconds later?
>
> I can't find anything like that in the doc. In the mean time, I've done
> that:
>
> running_processes=`ps -o s= -o pid= -z $zone_name | grep -v T | awk '{print
> $2}'`
> kill -s SIGSTOP $running_processes
> ... do important stuff here...
> kill -s SIGCONT $running_processes
You could probably use a dtrace script along the lines of the
following in the global zone...
# dtrace -wqn 'sched:::on-cpu /zonename == $1/ { printf("Stopping pid
%d/%d in %s\n", pid, tid, zonename); stop(); }' $zone
When you are ready to unfreeze it:
# prun `pgrep -z $zone`
--
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
opensolaris-discuss mailing list
[email protected]