DS-System Help : Configuring the DS-System : Updating the DS-System configuration file parameters : Using an automated script to lock storage
 
Using an automated script to lock storage
Instead of manually operating the Lock and Unlock buttons, you can use a third-party application to run an automated script to lock the storage by manipulating the storage_lock table in the DS-System database.
 
Table 6 Storage lock details
column name
Description
lock_cmd
This value must be set by the third-party application.
1 = lock (all attempts to change the online storage will be paused)
2 = unlock (instructs DS-System to release the online storage for normal operation)
lock_status
The third-party application must wait until this value changes from “0” before performing the snapshot. This may take a few moments in an N+1 configuration (where multiple nodes must each lock their storage).
0 = normal
non-zero = locked
Ensure that the third-party application performs the following sequence:
1. Set lock_cmd to “1”.
2. Wait until lock_status is not zero.
3. Run snapshot.
4. Set lock_cmd to “2”.
IMPORTANT:  Do not alter any other table in the DS-System database.