Patent attributes
Provided is a method and system for operating a non-volatile memory charger. Specifically, during the operation of a storage system, the non-volatile memory of the storage system can temporarily store data. The temporarily stored data is flushed to disks of the storage system during the normal operation of the storage system. However, if the storage system is inoperable, then the temporarily stored data is maintained for a time period by a rechargeable battery of the non-volatile memory. The rechargeable battery prevents data loss when the temporarily stored data cannot be flushed to the disks of the storage system. The rechargeable battery maintains sufficient voltage levels to continue to temporarily store data by the operation of a charger connected to the rechargeable battery. A charger policy operated by an operating system of the storage system enables and disables the charging of the rechargeable battery.