forked from vitalif/vitastor
Change rm to rm-data as it was renamed
parent
ef645ee0c2
commit
24b9b19066
|
@ -40,7 +40,7 @@ Vitastor на данный момент находится в статусе п
|
||||||
- Драйвер диска для QEMU (собирается вне дерева исходников QEMU)
|
- Драйвер диска для QEMU (собирается вне дерева исходников QEMU)
|
||||||
- Драйвер диска для утилиты тестирования производительности fio (также собирается вне дерева исходников fio)
|
- Драйвер диска для утилиты тестирования производительности fio (также собирается вне дерева исходников fio)
|
||||||
- NBD-прокси для монтирования образов ядром ("блочное устройство в режиме пользователя")
|
- NBD-прокси для монтирования образов ядром ("блочное устройство в режиме пользователя")
|
||||||
- Утилита для удаления образов/инодов (vitastor-cli rm)
|
- Утилита для удаления образов/инодов (vitastor-cli rm-data)
|
||||||
- Пакеты для Debian и CentOS
|
- Пакеты для Debian и CentOS
|
||||||
- Статистика операций ввода/вывода и занятого места в разрезе инодов
|
- Статистика операций ввода/вывода и занятого места в разрезе инодов
|
||||||
- Именование инодов через хранение их метаданных в etcd
|
- Именование инодов через хранение их метаданных в 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
|
### NBD
|
||||||
|
|
|
@ -34,7 +34,7 @@ breaking changes in the future. However, the following is implemented:
|
||||||
- QEMU driver (built out-of-tree)
|
- QEMU driver (built out-of-tree)
|
||||||
- Loadable fio engine for benchmarks (also built out-of-tree)
|
- Loadable fio engine for benchmarks (also built out-of-tree)
|
||||||
- NBD proxy for kernel mounts
|
- NBD proxy for kernel mounts
|
||||||
- Inode removal tool (vitastor-cli rm)
|
- Inode removal tool (vitastor-cli rm-data)
|
||||||
- Packaging for Debian and CentOS
|
- Packaging for Debian and CentOS
|
||||||
- Per-inode I/O and space usage statistics
|
- Per-inode I/O and space usage statistics
|
||||||
- Inode metadata storage in etcd
|
- Inode metadata storage in etcd
|
||||||
|
@ -444,10 +444,10 @@ just like in qemu-img.
|
||||||
|
|
||||||
### Remove inode
|
### 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
|
### NBD
|
||||||
|
|
|
@ -356,7 +356,7 @@ func (cs *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol
|
||||||
|
|
||||||
// Delete inode data by invoking vitastor-cli
|
// Delete inode data by invoking vitastor-cli
|
||||||
args := []string{
|
args := []string{
|
||||||
"rm", "--etcd_address", strings.Join(etcdUrl, ","),
|
"rm-data", "--etcd_address", strings.Join(etcdUrl, ","),
|
||||||
"--pool", fmt.Sprintf("%d", idx.PoolId),
|
"--pool", fmt.Sprintf("%d", idx.PoolId),
|
||||||
"--inode", fmt.Sprintf("%d", idx.Id),
|
"--inode", fmt.Sprintf("%d", idx.Id),
|
||||||
}
|
}
|
||||||
|
@ -372,7 +372,7 @@ func (cs *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol
|
||||||
stderrStr := string(stderr.Bytes())
|
stderrStr := string(stderr.Bytes())
|
||||||
if (err != nil)
|
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()+")")
|
return nil, status.Error(codes.Internal, stderrStr+" (status "+err.Error()+")")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -514,7 +514,7 @@ class VitastorDriver(driver.CloneableImageVD,
|
||||||
# Clear data
|
# Clear data
|
||||||
for kv in layers:
|
for kv in layers:
|
||||||
args = [
|
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',
|
'--inode', str(kv['value']['id']), '--progress', '0',
|
||||||
*(self._vitastor_args())
|
*(self._vitastor_args())
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue