

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# `pcluster update` 사용하기
<a name="using-pcluster-update"></a>

 AWS ParallelCluster 버전 2.8.0부터는 현재 클러스터를 생성하는 데 사용된 설정과 구성 파일의 설정에 문제가 있는지 [`pcluster update`](pcluster.update.md) 분석합니다. 문제가 발견되면 해당 문제가 보고되고 문제 해결을 위해 취해야 할 단계가 표시됩니다. 예를 들어 [`compute_instance_type`](cluster-definition.md#compute-instance-type) 설정이 다른 인스턴스 유형으로 변경되면 업데이트를 진행하기 전에 컴퓨팅 플릿을 중지해야 합니다. 이 문제는 발견되면 보고됩니다. 차단 문제가 보고되지 않은 경우 변경 사항을 적용할지 여부를 묻는 메시지가 표시됩니다.

각 설정의 설명서에는 해당 설정에 대한 업데이트 정책이 정의되어 있습니다.

업데이트 정책: 업데이트 중에 이 설정들을 변경할 수 있습니다.****업데이트 정책: 업데이트 중에 이 설정을 변경할 수 있습니다.****  
이 설정들은 변경할 수 있으며 [`pcluster update`](pcluster.update.md)를 사용하여 클러스터를 업데이트할 수 있습니다.

업데이트 정책: 이 설정을 변경하면 업데이트가 허용되지 않습니다.****  
기존 클러스터를 삭제하지 않은 경우 이 설정들을 변경할 수 없습니다. 변경 내용을 되돌리거나 클러스터를 삭제한([`pcluster delete`](pcluster.delete.md) 사용) 다음 이전 클러스터 대신 새 클러스터를 생성해야([`pcluster create`](pluster.create.md) 사용) 합니다.

업데이트 정책: 이 설정은 업데이트 중에 분석되지 않습니다.****  
이 설정들은 변경할 수 있으며 [`pcluster update`](pcluster.update.md)를 사용하여 클러스터가 업데이트됩니다.

업데이트 정책: 업데이트를 위해 이 설정을 변경하려면 컴퓨팅 플릿을 중지해야 합니다.****  
컴퓨팅 플릿이 존재하는 동안에는 이 설정들을 변경할 수 없습니다. 변경 내용을 되돌리거나 컴퓨팅 플릿을 중지([`pcluster stop`](pcluster.stop.md) 사용), 업데이트([`pcluster update`](pcluster.update.md) 사용)한 다음 새 컴퓨팅 플릿을 생성([`pcluster start`](pcluster.start.md) 사용)해야 합니다.

업데이트 정책: 업데이트 중에는 이 설정을 줄일 수 없습니다.****  
이 설정들은 변경할 수 있지만 줄일 수는 없습니다. 이러한 설정을 줄여야 하는 경우 클러스터를 삭제([`pcluster delete`](pcluster.delete.md) 사용)하고 새 클러스터를 생성([`pcluster create`](pluster.create.md) 사용)해야 합니다.

업데이트 정책: 대기열 크기를 현재 노드 수 미만으로 줄이려면 먼저 컴퓨팅 플릿을 중지해야 합니다.****  
이 설정들은 변경할 수 있지만 변경으로 인해 대기열 크기가 현재 크기보다 작아지면 컴퓨팅 플릿을 중지([`pcluster stop`](pcluster.stop.md) 사용)하고 업데이트([`pcluster update`](pcluster.update.md) 사용)한 다음 새 컴퓨팅 플릿을 생성([`pcluster start`](pcluster.start.md) 사용)해야 합니다.

업데이트 정책: 대기열의 정적 노드 수를 줄이려면 먼저 컴퓨팅 플릿을 중지해야 합니다.****  
이 설정들은 변경할 수 있지만 변경으로 인해 대기열에 있는 정적 노드 수가 현재 크기 아래로 줄어드는 경우 컴퓨팅 플릿을 중지([`pcluster stop`](pcluster.stop.md) 사용)하고 업데이트([`pcluster update`](pcluster.update.md) 사용)한 다음 새 컴퓨팅 플릿을 생성([`pcluster start`](pcluster.start.md) 사용)해야 합니다.

업데이트 정책: 이 설정을 변경하면 업데이트가 허용되지 않습니다.** 이 설정은 강제로 업데이트할 수 없습니다.**  
기존 클러스터를 삭제하지 않은 경우 이 설정들을 변경할 수 없습니다. 변경 내용을 되돌리거나 클러스터를 삭제한([`pcluster delete`](pcluster.delete.md) 사용) 다음 이전 클러스터 대신 새 클러스터를 생성해야([`pcluster create`](pluster.create.md) 사용) 합니다.

**업데이트 정책: 구성에 AWS ParallelCluster 관리형 Amazon FSx for Lustre 파일 시스템이 지정되지 않은 경우 업데이트 중에이 설정을 변경할 수 있습니다.**  
이 설정은 [`[cluster]`](cluster-definition.md) [`fsx_settings`](cluster-definition.md#fsx-settings)가 지정되지 않았거나 `fsx_settings`와 [`[fsx fs]`](fsx-section.md)의 [`fsx-fs-id`](fsx-section.md#fsx-fs-id)가 기존 외부 FSx for Lustre 파일 시스템을 탑재하기 위해 지정되어 있으면 변경할 수 있습니다.

이 예제는 업데이트를 차단하는 일부 변경 사항이 적용된 [`pcluster update`](pcluster.update.md)를 보여줍니다.

```
$ pcluster update
  Validating configuration file /home/{{username}}/.parallelcluster/config...
Retrieving configuration from CloudFormation for cluster test-1...
Found Changes:

#   section/parameter         old value                 new value               
--  ------------------------  ------------------------  ------------------------
    [cluster default]
01* compute_instance_type     t2.micro                  c4.xlarge
02* ebs_settings              ebs2                      -

    [vpc default]
03  additional_sg             sg-0cd61884c4ad16341       sg-0cd61884c4ad11234

    [ebs ebs2]
04* shared_dir                shared                     my/very/very/long/sha...

Validating configuration update...
The requested update cannot be performed. Line numbers with an asterisk indicate 
updates requiring additional actions. Please look at the details below:

#01
Compute fleet must be empty to update "compute_instance_type"
How to fix:
Make sure that there are no jobs running, then run the following command: 
  pcluster stop -c $CONFIG_FILE $CLUSTER_NAME

#02
Cannot add/remove EBS Sections
How to fix:
Revert "ebs_settings" value to "ebs2"

#04
Cannot change the mount dir of an existing EBS volume
How to fix:
Revert "my/very/very/long/shared/dir" to "shared"

In case you want to override these checks and proceed with the update please
use the --force flag. Note that the cluster could end up in an unrecoverable
state.

Update aborted.
```