Skip to content

Commit 6861e2e

Browse files
committed
upd
Signed-off-by: Pavel Tishkov <[email protected]>
1 parent 3c20acc commit 6861e2e

File tree

2 files changed

+62
-3
lines changed

2 files changed

+62
-3
lines changed

docs/USER_GUIDE.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ VolumeBindingMode property:
617617

618618
AccessMode:
619619

620-
- `ReadWriteOnce (RWO)` - only one instance of the virtual machine is granted access to the disk.
621620
- `ReadWriteMany (RWX)` - multiple disk access. Live migration of virtual machines with such disks is possible.
621+
- `ReadWriteOnce (RWO)` - only one instance of the virtual machine is granted access to the disk. Live migration of virtual machines with such disks is possible only in the DVP commercial editions. Live migration is only available if all disks are connected statically via (`.spec.blockDeviceRefs`). Disks connected dynamically via `VirtualMachineBlockDeviceAttachments` must be reconnected statically by specifying them in `.spec.blockDeviceRefs`.
622622

623623
When creating a disk, the controller will independently determine the most optimal parameters supported by the storage.
624624

@@ -649,7 +649,7 @@ How to find out the available storage options in the DVP web interface:
649649

650650
- Go to the "System" tab, then to the "Storage" section → "Storage Classes".
651651

652-
## Create an empty disk
652+
### Create an empty disk
653653

654654
Empty disks are usually used to install an OS on them, or to store some data.
655655

@@ -862,6 +862,35 @@ Method #2:
862862
- Click on the "Save" button that appears.
863863
- The disk status is displayed at the top left, under its name.
864864

865+
### Changing the disk StorageClass
866+
867+
In the DVP commercial editions, it is possible to change the StorageClass for existing disks. At the moment, this is only supported for running VMs (`Phase` should be `Running`).
868+
869+
{{< alert level="warning">}}
870+
Storage class migration is only available for disks connected statically via (`.spec.blockDeviceRefs`).
871+
872+
To migrate the storage class of disks attached via `VirtualMachineBlockDeviceAttachments`, you must statically reattach them by specifying them in `.spec.blockDeviceRefs`.
873+
{{< /alert >}}
874+
875+
Example:
876+
877+
```bash
878+
d8 k patch vd disk --type=merge --patch '{"spec":{"persistentVolumeClaim":{"storageClassName":"new-storage-class-name"}}}'
879+
```
880+
881+
After the disk configuration is updated, a live migration of the VM will be initiated, during which the VM’s disk will be migrated to the new storage.
882+
883+
If a VM has multiple disks attached and you need to change the storage class for several of them, this operation must be performed sequentially:
884+
885+
```bash
886+
d8 k patch vd disk1 --type=merge --patch '{"spec":{"persistentVolumeClaim":{"storageClassName":"new-storage-class-name"}}}'
887+
d8 k patch vd disk2 --type=merge --patch '{"spec":{"persistentVolumeClaim":{"storageClassName":"new-storage-class-name"}}}'
888+
```
889+
890+
If migration fails, repeated attempts are made with increasing delays (exponential backoff algorithm). The maximum delay is 300 seconds (5 minutes). Delays: 5 seconds (1st attempt), 10 seconds (2nd), then each delay doubles, reaching 300 seconds (7th and subsequent attempts). The first attempt is performed without delay.
891+
892+
To cancel migration, the user must return the storage class in the specification to the original one.
893+
865894
## Virtual machines
866895

867896
The `VirtualMachine` resource is used to create a virtual machine, its parameters allow you to configure:

docs/USER_GUIDE.ru.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,9 @@ EOF
625625

626626
Режим доступа AccessMode:
627627

628-
- `ReadWriteOnce (RWO)` - доступ к диску предоставляется только одному экземпляру виртуальной машины.
629628
- `ReadWriteMany (RWX)` - множественный доступ к диску. Живая миграция виртуальных машин с такими дисками возможна.
629+
- `ReadWriteOnce (RWO)` - доступ к диску предоставляется только одному экземпляру виртуальной машины. Живая миграция виртуальных машин с такими дисками возможна только для платных редакций DVP. Живая миграция доступна только если все диски подключенны статически через (`.spec.blockDeviceRefs`). Диски подключенные динамически через `VirtualMachineBlockDeviceAttachments`, необходимо статически подключить их заново, указав их в `.spec.blockDeviceRefs`.
630+
630631

631632
При создании диска контроллер самостоятельно определит наиболее оптимальные параметры поддерживаемые хранилищем.
632633

@@ -870,6 +871,35 @@ linux-vm-root Ready 11Gi 12m
870871
- Нажмите на появившуюся кнопку «Сохранить».
871872
- Статус диска отображается слева вверху, под его именем.
872873

874+
### Изменение класса хранения диска
875+
876+
Для платных редакций DVP существует возможность изменения класса хранения для созданных дисков. На данный момент это возможно только для работающих ВМ (`Phase` должна быть `Running`).
877+
878+
{{< alert level="warning">}}
879+
Миграция класса хранения поддерживается только для дисков, статически подключенных через параметр `.spec.blockDeviceRefs` в конфигурации виртуальной машины.
880+
881+
Для миграции класса хранения дисков, подключенных через `VirtualMachineBlockDeviceAttachments`, необходимо переподключить их статически, указав в `.spec.blockDeviceRefs`.
882+
{{< /alert >}}
883+
884+
Пример:
885+
886+
```bash
887+
d8 k patch vd disk --type=merge --patch '{"spec":{"persistentVolumeClaim":{"storageClassName":"new-storage-class-name"}}}'
888+
```
889+
890+
После изменения конфигурации диска запустится живая миграция ВМ, в процессе которой диск ВМ будет смигрирован на новое хранилище.
891+
892+
Если к виртуальной машине подключены несколько дисков и требуется изменить класс хранения для нескольких дисков, эту операцию необходимо выполнить последовательно:
893+
894+
```bash
895+
d8 k patch vd disk1 --type=merge --patch '{"spec":{"persistentVolumeClaim":{"storageClassName":"new-storage-class-name"}}}'
896+
d8 k patch vd disk2 --type=merge --patch '{"spec":{"persistentVolumeClaim":{"storageClassName":"new-storage-class-name"}}}'
897+
```
898+
899+
При неуспешной миграции повторные попытки выполняются с увеличивающимися задержками (алгоритм экспоненциального backoff). Максимальная задержка — 300 секунд (5 минут). Задержки: 5 секунд (1-я попытка), 10 секунд (2-я), далее каждая задержка удваивается, достигая 300 секунд (7-я и последующие попытки). Первая попытка выполняется без задержки.
900+
901+
Для отмены миграции пользователь должен вернуть класс хранения в спецификации на исходный.
902+
873903
## Виртуальные машины
874904

875905
Для создания виртуальной машины используется ресурс `VirtualMachine`. Его параметры позволяют сконфигурировать:

0 commit comments

Comments
 (0)