Do we have a command to check status of the freeze after issuing the "iris freeze" command so that we can be sure that the database is frozen and no writes are going to the database ?
I am issuing "iris freeze <instance_name> to freeze the instance. I want confirmation that no IO is going to the database so taht I can take a snapshot.
Comments
You can check the status of the database freeze after issuing the iris freeze command by using the method ##Class(Backup.General).IsWDSuspendedExt() in an external script. This method checks if the write daemon is currently suspended due to a freeze. It provides an exit status: 5 if the write daemon is suspended and 3 otherwise. For example:
iris terminal <INSTANCE_NAME> -U%SYS "##Class(Backup.General).IsWDSuspendedExt()"
echo $?
If the result is 5, the system is confirmed as frozen. If the result is 3, the system is not frozen anymore 1.
Sources:
Hey Malaya.
If you're not already getting the status code of 5 for successfully frozen and 3 for failure, then there is ##Class(Backup.General).IsWDSuspendedExt() that can be called to see if the Write Daemon is suspended, which follows that same output of either 5 or 3 depending on it's status.
Thank you Julian for the response.
After issuing "iris freeze <instance_name> , if I check iris stat <instance_name> and there I can check the parameter WDSUSPD=1, can it be also be a validation of IRIS instance freeze.
because as soon as I am thawing the instance "WDSUSPD" in "iris stat" output changes back to 0.
I'm pretty sure WDSUSPD is a flag to see if the write daemon is suspended, so that is also a good way to check.