Skip to content

Commit d50d5ac

Browse files
committed
CA-409710: Modify the default backup parameters
The current default count of metadata backup files is 25. This number is too many. For the customer in XSI-1873, the backup disk is 500 MB, and each backup file is about 35 MB. So it can't keep 25 backup files. A quick solution is to modify the backup parameters, including: 1. Reduce the default count of metadata backup files to 12. 2. Increase the backup VDI size to 1024 MB so it can keep more backup files. Signed-off-by: Bengang Yuan <[email protected]>
1 parent c7a04c0 commit d50d5ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/xe-backup-metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "${master_uuid}" != "${INSTALLATION_UUID}" ]; then
2424
exit 1
2525
fi
2626

27-
history_kept=25
27+
history_kept=12
2828
metadata_version=1
2929
debug=/bin/true
3030

@@ -129,7 +129,7 @@ if [ -z "${vdi_uuid}" ]; then
129129
echo -n "Creating new backup VDI: "
130130
label="Pool Metadata Backup"
131131
# the label must match what xapi_vdi.ml is using for backup VDIs
132-
vdi_uuid=$(${XE} vdi-create virtual-size=500MiB sr-uuid="${sr_uuid}" type=user name-label="${label}")
132+
vdi_uuid=$(${XE} vdi-create virtual-size=1024MiB sr-uuid="${sr_uuid}" type=user name-label="${label}")
133133
init_fs=1
134134
if [ $? -ne 0 ]; then
135135
echo failed

0 commit comments

Comments
 (0)