维护时段
使用 SUSE Multi-Linux Manager 中的维护时段功能,可以将操作安排在预定的维护时段执行。如果您创建了维护时段日程安排并将其应用于客户端,则无法在指定的时段以外执行某些操作。
|
维护时段的工作方式不同于系统锁定。系统锁可按需打开或关闭,而维护时段则是定义允许执行操作的时间段。此外,允许和受限的操作也不相同。有关系统锁的详细信息,请参见 系统锁定。 |
Maintenance windows require both a calendar, and a schedule. The calendar defines the date and time of your maintenance window events, including recurring events, and must be in ical format. The schedule uses the events defined in the calendar to create the maintenance windows. You must create an ical file for upload, or link to an ical file to create the calendar, before you can create the schedule.
创建日程安排后,可将其指派给已注册到 SUSE Multi-Linux Manager Server 的客户端。指派有维护日程安排的客户端在维护时段以外无法运行受限操作。
受限操作会对客户端进行重大修改,可能导致客户端停止运行。受限操作的一些示例包括:
-
软件包安装
-
客户端升级
-
产品迁移
-
Highstate 应用
非受限制操作属于次要操作,一般认为它们是安全的,不太可能会在客户端上造成问题。非受限操作的一些示例包括:
-
软件包配置文件更新
-
硬件刷新
-
订阅软件通道
Before you begin, you must create an ical file for upload, or link to an ical file to create the calendar. You can create ical files in your preferred calendaring tool, such as Microsoft Outlook, Google Calendar, or KOrganizer.
-
在 SUSE Multi-Linux Manager Web UI 中,导航到,然后单击 创建。
-
In the
Calendar Namesection, type a name for your calendar. -
Either provide a URL to your
icalfile, or upload the file directly. -
单击 创建日历 以保存您的日历。
-
在 SUSE Multi-Linux Manager Web UI 中,导航到,然后单击 创建。
-
In the
Schedule Namesection, type a name for your schedule. -
OPTIONAL: If your
icalfile contains events that apply to more than one schedule, checkMulti. -
选择要指派到此日程安排的日历。
-
单击 创建日程安排 以保存您的日程安排。
-
In the SUSE Multi-Linux Manager Web UI, navigate to , select the client to be assigned to a schedule, locate the
System Propertiespanel, and click Edit These Properties. 或者,可以通过系统集管理器指派客户端,方法是导航到并使用选项卡。 -
In the
Edit System Detailspage, locate theMaintenance Schedulefield, and select the name of the schedule to be assigned. -
单击 更新属性 以指派维护日程安排。
|
当您将新的维护日程安排指派到某个客户端时,可能已经为该客户端安排了一些受限操作,而这些操作现在可能与新的维护日程安排有冲突。如果发生这种情况,Web UI 会显示错误,并且您无法将该日程安排指派到该客户端。要解决此问题,请在指派日程安排时选中 取消受影响的操作 选项。这样就会取消以前安排的与新维护日程安排冲突的所有操作。 |
创建维护时段后,可以安排要在维护时段内执行的受限操作,例如软件包升级。
-
在 SUSE Multi-Linux Manager Web UI 中,导航到,选择要升级的客户端,然后转到选项卡。
-
从列表中选择要升级的软件包,然后单击 升级软件包。
-
In the
Maintenance Windowfield, select which maintenance window the client should use to perform the upgrade. -
单击 确认 以安排软件包升级。
1. 维护日程安排类型
When you create a calendar, it contains a number of events, which can be either one-time events, or recurring events. Each event contains a summary field. If you want to create multiple maintenance schedules for one calendar, you can specify events for each using the summary field.
For example, you might like to create a schedule for production servers, and a different schedule for testing servers. In this case, you would specify SUMMARY: Production Servers on events for the production servers, and SUMMARY: Testing Servers on events for the testing servers.
There are two types of schedule: single, or multi. If your calendar contains events that apply to more than one schedule, then you must select multi, and ensure you name the schedule according to the summary field you used in the calendar file.
-
在 SUSE Multi-Linux Manager Web UI 中,导航到,然后单击 创建。
-
In the
Schedule Namesection, type the name for your schedule. Ensure it matches thesummaryfield of the calendar. -
Check the
Multioption. -
选择要指派到此日程安排的日历。
-
单击 创建日程安排 以保存您的日程安排。
-
要创建下一个日程安排,请单击 创建。
-
In the
Schedule Namesection, type the name for your second schedule. Ensure it matches thesummaryfield of the second calendar. -
Check the
Multioption. -
单击 创建日程安排 以保存您的日程安排。
-
对需要创建的每个日程安排重复上述过程。
2. 受限制和非受限操作
本节包含受限和非受限操作的完整列表。
受限操作会对客户端进行重大修改,可能导致客户端停止运行。受限操作只能在维护时段内运行。受限操作包括:
-
软件包操作(例如安装、更新或去除软件包)
-
补丁更新
-
重引导客户端
-
回滚事务
-
配置管理更改任务
-
应用 highstate
-
自动安装和重新安装
-
远程命令
-
产品迁移
-
群集操作
|
您可以随时导航到 直接运行远程命令。无论客户端是否处于维护时段,均可执行此操作。有关远程命令的详细信息,请参见 操作。 |
Unrestricted actions are minor actions that are considered safe and are unlikely to cause problems on the client. If an action is not restricted it is, by definition, unrestricted, and can be run at any time.