You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--title string A short, informational description.
20
-
--size int Size of the storage (GiB).
21
-
--backup-time string The time when to create a backup in HH:MM. Empty value means no backups.
22
-
--backup-interval string The interval of the backup.
23
-
Available: daily,mon,tue,wed,thu,fri,sat,sun
24
-
--backup-retention int How long to store the backups in days. The accepted range is 1-1095.
25
-
-h, --help help for modify
19
+
--title string A short, informational description.
20
+
--size int Size of the storage (GiB).
21
+
--backup-time string The time when to create a backup in HH:MM. Empty value means no backups.
22
+
--backup-interval string The interval of the backup.
23
+
Available: daily,mon,tue,wed,thu,fri,sat,sun
24
+
--backup-retention int How long to store the backups in days. The accepted range is 1-1095.
25
+
--enable-filesystem-autoresize[=true] Enable automatic resize of partition and filesystem when modifying storage size. Note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept. Taking and keeping backups incure costs..
@@ -66,6 +68,7 @@ func (s *modifyCommand) InitCommand() {
66
68
flagSet.StringVar(&s.params.backupTime, "backup-time", s.params.backupTime, "The time when to create a backup in HH:MM. Empty value means no backups.")
67
69
flagSet.StringVar(&s.params.backupInterval, "backup-interval", "", "The interval of the backup.\nAvailable: daily,mon,tue,wed,thu,fri,sat,sun")
68
70
flagSet.IntVar(&s.params.backupRetention, "backup-retention", 0, "How long to store the backups in days. The accepted range is 1-1095.")
71
+
config.AddEnableOrDisableFlag(flagSet, &s.autoresizePartitionFilesystem, false, "filesystem-autoresize", "automatic resize of partition and filesystem when modifying storage size. Note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept. Taking and keeping backups incure costs.")
69
72
70
73
s.AddFlags(flagSet)
71
74
}
@@ -129,6 +132,10 @@ func setBackupFields(storageUUID string, p modifyParams, service service.Storage
// If there was an error during resize attempt, we consider the overall modify operation successful and just log warning about failed resize
171
+
iferr!=nil {
172
+
logline.SetMessage(ui.LiveLogEntryWarningColours.Sprintf("%s: done, but partition and filesystem resize failed; storage was restored using backed taken right before resize attempt", msg))
0 commit comments