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
Copy file name to clipboardExpand all lines: docs/USER_GUIDE.md
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -617,8 +617,8 @@ VolumeBindingMode property:
617
617
618
618
AccessMode:
619
619
620
-
-`ReadWriteOnce (RWO)` - only one instance of the virtual machine is granted access to the disk.
621
620
-`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`.
622
622
623
623
When creating a disk, the controller will independently determine the most optimal parameters supported by the storage.
624
624
@@ -649,7 +649,7 @@ How to find out the available storage options in the DVP web interface:
649
649
650
650
- Go to the "System" tab, then to the "Storage" section → "Storage Classes".
651
651
652
-
## Create an empty disk
652
+
###Create an empty disk
653
653
654
654
Empty disks are usually used to install an OS on them, or to store some data.
655
655
@@ -862,6 +862,35 @@ Method #2:
862
862
- Click on the "Save" button that appears.
863
863
- The disk status is displayed at the top left, under its name.
864
864
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
+
865
894
## Virtual machines
866
895
867
896
The `VirtualMachine` resource is used to create a virtual machine, its parameters allow you to configure:
Copy file name to clipboardExpand all lines: docs/USER_GUIDE.ru.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -625,8 +625,9 @@ EOF
625
625
626
626
Режим доступа AccessMode:
627
627
628
-
-`ReadWriteOnce (RWO)` - доступ к диску предоставляется только одному экземпляру виртуальной машины.
629
628
-`ReadWriteMany (RWX)` - множественный доступ к диску. Живая миграция виртуальных машин с такими дисками возможна.
629
+
-`ReadWriteOnce (RWO)` - доступ к диску предоставляется только одному экземпляру виртуальной машины. Живая миграция виртуальных машин с такими дисками возможна только для платных редакций DVP. Живая миграция доступна только если все диски подключенны статически через (`.spec.blockDeviceRefs`). Диски подключенные динамически через `VirtualMachineBlockDeviceAttachments`, необходимо статически подключить их заново, указав их в `.spec.blockDeviceRefs`.
630
+
630
631
631
632
При создании диска контроллер самостоятельно определит наиболее оптимальные параметры поддерживаемые хранилищем.
632
633
@@ -870,6 +871,35 @@ linux-vm-root Ready 11Gi 12m
870
871
- Нажмите на появившуюся кнопку «Сохранить».
871
872
- Статус диска отображается слева вверху, под его именем.
872
873
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
+
873
903
## Виртуальные машины
874
904
875
905
Для создания виртуальной машины используется ресурс `VirtualMachine`. Его параметры позволяют сконфигурировать:
0 commit comments