diff --git a/README-ru.md b/README-ru.md index e9e0c340..edab0000 100644 --- a/README-ru.md +++ b/README-ru.md @@ -40,7 +40,7 @@ Vitastor на данный момент находится в статусе п - Драйвер диска для QEMU (собирается вне дерева исходников QEMU) - Драйвер диска для утилиты тестирования производительности fio (также собирается вне дерева исходников fio) - NBD-прокси для монтирования образов ядром ("блочное устройство в режиме пользователя") -- Утилита для удаления образов/инодов (vitastor-cli rm) +- Утилита для удаления образов/инодов (vitastor-cli rm-data) - Пакеты для Debian и CentOS - Статистика операций ввода/вывода и занятого места в разрезе инодов - Именование инодов через хранение их метаданных в etcd @@ -492,10 +492,10 @@ qemu-system-x86_64 -enable-kvm -m 1024 ### Удалить образ -Используйте утилиту vitastor-cli rm. Например: +Используйте утилиту vitastor-cli rm-data. Например: ``` -vitastor-cli rm --etcd_address 10.115.0.10:2379/v3 --pool 1 --inode 1 --parallel_osds 16 --iodepth 32 +vitastor-cli rm-data --etcd_address 10.115.0.10:2379/v3 --pool 1 --inode 1 --parallel_osds 16 --iodepth 32 ``` ### NBD diff --git a/README.md b/README.md index 65797650..23703930 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ breaking changes in the future. However, the following is implemented: - QEMU driver (built out-of-tree) - Loadable fio engine for benchmarks (also built out-of-tree) - NBD proxy for kernel mounts -- Inode removal tool (vitastor-cli rm) +- Inode removal tool (vitastor-cli rm-data) - Packaging for Debian and CentOS - Per-inode I/O and space usage statistics - Inode metadata storage in etcd @@ -444,10 +444,10 @@ just like in qemu-img. ### Remove inode -Use vitastor-rm. For example: +Use vitastor-rm / vitastor-cli rm-data. For example: ``` -vitastor-rm --etcd_address 10.115.0.10:2379/v3 --pool 1 --inode 1 --parallel_osds 16 --iodepth 32 +vitastor-cli rm-data --etcd_address 10.115.0.10:2379/v3 --pool 1 --inode 1 --parallel_osds 16 --iodepth 32 ``` ### NBD diff --git a/csi/src/controllerserver.go b/csi/src/controllerserver.go index 049e9a5f..0e5a3033 100644 --- a/csi/src/controllerserver.go +++ b/csi/src/controllerserver.go @@ -356,7 +356,7 @@ func (cs *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol // Delete inode data by invoking vitastor-cli args := []string{ - "rm", "--etcd_address", strings.Join(etcdUrl, ","), + "rm-data", "--etcd_address", strings.Join(etcdUrl, ","), "--pool", fmt.Sprintf("%d", idx.PoolId), "--inode", fmt.Sprintf("%d", idx.Id), } @@ -372,7 +372,7 @@ func (cs *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol stderrStr := string(stderr.Bytes()) if (err != nil) { - klog.Errorf("vitastor-cli rm failed: %s, status %s\n", stderrStr, err) + klog.Errorf("vitastor-cli rm-data failed: %s, status %s\n", stderrStr, err) return nil, status.Error(codes.Internal, stderrStr+" (status "+err.Error()+")") } diff --git a/patches/cinder-vitastor.py b/patches/cinder-vitastor.py index 4eb29d38..514455fa 100644 --- a/patches/cinder-vitastor.py +++ b/patches/cinder-vitastor.py @@ -514,7 +514,7 @@ class VitastorDriver(driver.CloneableImageVD, # Clear data for kv in layers: args = [ - 'vitastor-cli', 'rm', '--pool', str(kv['value']['pool_id']), + 'vitastor-cli', 'rm-data', '--pool', str(kv['value']['pool_id']), '--inode', str(kv['value']['id']), '--progress', '0', *(self._vitastor_args()) ]