Here is a Friday question that can give you back hours: how long does your business go down for a backup, and does it actually need to?
For a lot of shops, the save window is a sacred, painful block of time. The application comes down, users are locked out, the save runs, and everyone waits. It has been done that way for so long that nobody questions it anymore. But many of those shops do not actually need that downtime, because IBM i has been able to save your data while the application stays up and running for a very long time, and a lot of people have simply never turned it on. Some people like this, others hate it. Now, this isn’t the only method, but it is available to anyone. If you have IBM SANs for your IBM i storage, you can do snapshots, which are an instant save, but that requires another partition to assign those flashed disks to save the date, but with little to no downtime. Or, if you have logical replication, you can backup from your target machine. Both processes, I will save for another Friday.
The capability is save-while-active, controlled by the SAVACT parameter on the save commands:
SAVLIB LIB(MYAPPLIB) DEV(TAP01)
SAVACT(*LIB)
SAVACTWAIT(120)
With that, the system reaches a synchronization point, a checkpoint of your objects in a consistent state, and then saves from that checkpoint while the application keeps running. Your users stay on. Your window shrinks from hours of hard downtime to, in many cases, a brief checkpoint and nothing more.
Now the honest part, because this is a real technique with real responsibilities. Save-while-active requires that your applications can reach a clean commit boundary, and it works hand in hand with journaling to account for the changes that happen during the save. It is not a checkbox you flip blindly on a complex application. It is something you understand, test carefully, and roll out deliberately. But for the right libraries, it is the difference between a four-hour outage and no outage at all, and that is a conversation your business will very much want to have.
So the weekend thought is this. If your backup window is costing your business real downtime, ask whether it still has to. The technology to shrink it has been sitting in the operating system this whole time, included, waiting for someone to pick it up.
Have a great weekend, everyone. See you in 258 days (That’s 36 weeks and 5 days, 37 weekends, or 183 weekdays).
Oh, BTW, have you written any procedures down that I discussed on Tuesday, so you can have more relaxed weekends and vacations?
Originally posted on LinkedIn. Join the conversation there.
Leave a Reply