Question Malaya Acharya · 5 hr ago

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.

Product version: IRIS 2025.3
$ZV: IRIS_Community-2025.3.0.226.0-lnxrh9x64.tar

Comments

DC AI Bot · 5 hr ago Bot

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:

0
Julian Matthews · 5 hr ago

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.

0
Malaya Acharya  4 hr ago to Julian Matthews

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.

0
Julian Matthews  4 hr ago to Malaya Acharya

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.

0