Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

索引删除

贡献者

NFS indexdelete 命令删除目录索引。

语法
xcp indexdelete
显示示例
[root@client1 linux]# ./xcp indexdelete

Job ID: Job_2023-11-16_02.41.20.260166_indexdelete
===========================================================================================
Name Command Size Created Updated
===========================================================================================
isync_tc1_retry copy 996 KiB 15-Nov-2023 15-Nov-2023
isync_est_isync isync 1012 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_05.56.17.522428 verify 1016 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_06.04.31.693517 verify 1.00 MiB 15-Nov-2023 15-Nov-2023
isync_tc1_retry1 copy 988 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_09.02.46.973624 verify 988 KiB 15-Nov-2023 15-Nov-2023
est001 isync 1012 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_09.37.24.179634 verify 0 15-Nov-2023 15-Nov-2023
a1batch_error1 copy 368 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_09.45.53.104055 verify 360 KiB 15-Nov-2023 15-Nov-2023
a1batch_error2 isync 376 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_09.48.05.000473 verify 372 KiB 15-Nov-2023 15-Nov-2023
b1batch_error1 copy 4.50 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_12.00.29.214479 verify 4.50 KiB 15-Nov-2023 15-Nov-2023
b1batch_error2 isync 4.50 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_12.00.40.536687 verify 4.50 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_12.27.08.055501 verify 4.50 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_12.27.39.797020 verify 4.50 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_12.52.29.408766 verify 4.50 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_12.53.01.870109 verify 4.50 KiB 15-Nov-2023 15-Nov-2023
c1batch_error1 copy 988 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_22.54.11.081944 verify 976 KiB 15-Nov-2023 15-Nov-2023
c1batch_error2 isync 1020 KiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_23.19.44.158263 verify 1.00 MiB 15-Nov-2023 15-Nov-2023
XCP_verify_2023-11-15_23.44.01.274732 verify 4.50 KiB 15-Nov-2023 15-Nov-2023
c1batch_error132576 copy 992 KiB 16-Nov-2023 16-Nov-2023
c1batch_error227998 isync 1004 KiB 16-Nov-2023 16-Nov-2023
XCP_verify_2023-11-16_01.07.45.824516 verify 1012 KiB 16-Nov-2023 16-Nov-2023
S3_index copy 52.5 KiB 16-Nov-2023 16-Nov-2023
S3_index1 copy 52.5 KiB 16-Nov-2023 16-Nov-2023
c1batch_error14383 copy 728 KiB 16-Nov-2023 16-Nov-2023
32 scanned, 941 KiB in (1.04 MiB/s), 48.8 KiB out (55.4 KiB/s), 0s.
WARNING: 31 indexes will be deleted permanently.
Are you sure you want to delete (yes/no): yes
Xcp command : xcp indexdelete
Stats : 466 scanned, 31 index deleted
Speed : 1.09 MiB in (216 KiB/s), 133 KiB out (25.8 KiB/s)
Total Time : 5s.
Job ID : Job_2023-11-16_02.41.20.260166_indexdelete
Log Path : /opt/NetApp/xFiles/xcp/xcplogs/Job_2023-11-16_02.41.20.260166_indexdelete.log
STATUS : PASSED
[root@client1 linux]#

下表列出了 indexdelete 参数及其问题描述。

参数 Description

<<nfs_indexdelete_match,indexdelete -匹配过滤器

仅处理与筛选器匹配的文件和目录。

<<nfs_indexdelete_loglevel,indexdelete -loglevel ();name

设置日志级别;可用级别为info、debug (默认值:info)。

indexdelete -match <filter>

使用 -match <filter> 参数 indexdelete 命令以仅处理与筛选器匹配的文件和目录。

语法
xcp indexdelete -match <filter>
显示示例
[root@client1 linux]# ./xcp indexdelete -match "fnm('S3_index12')"

Job ID: Job_2023-11-16_02.44.39.862423_indexdelete
=========================================================================
Name Command Size Created Updated
=========================================================================
S3_index12 copy 52.5 KiB 16-Nov-2023 16-Nov-2023
5 scanned, 1 matched, 141 KiB in (121 KiB/s), 6.05 KiB out (5.20 KiB/s), 1s.
WARNING: 1 matched index will be deleted permanently.
Are you sure you want to delete (yes/no): yes
Xcp command : xcp indexdelete -match fnm('S3_index12')
Stats : 19 scanned, 1 matched, 1 index deleted
Speed : 146 KiB in (29.3 KiB/s), 8.59 KiB out (1.72 KiB/s)
Total Time : 4s.
Job ID : Job_2023-11-16_02.44.39.862423_indexdelete
Log Path : /opt/NetApp/xFiles/xcp/xcplogs/Job_2023-11-16_02.44.39.862423_indexdelete.log
STATUS : PASSED
[root@client1 linux]#

indexdelete -loglevel <name>

使用 -loglevel <name> 参数 indexdelete 用于设置日志级别的命令;可用级别为info和debug。默认级别为info。

语法
xcp indexdelete -loglevel <name> -match <filter>
显示示例
root@client1 linux]# ./xcp indexdelete -loglevel DEBUG -match "fnm('test*')"

Job ID: Job_2023-11-16_03.39.36.814557_indexdelete
===========================================================================================
Name Command Size Created Updated
===========================================================================================
testing scan 24.5 KiB 16-Nov-2023 16-Nov-2023
testingisync isync 12.5 KiB 16-Nov-2023 16-Nov-2023
5 scanned, 2 matched, 65.1 KiB in (61.1 KiB/s), 6.24 KiB out (5.85 KiB/s), 1s.
WARNING: 2 matched indexes will be deleted permanently.
Are you sure you want to delete (yes/no): yes
6 scanned, 2 matched, 65.1 KiB in (10.5 KiB/s), 6.39 KiB out (1.03 KiB/s), 7s
Xcp command : xcp indexdelete -loglevel DEBUG -match fnm('test*')
Stats : 32 scanned, 2 matched, 2 index deleted
Speed : 75.5 KiB in (10.3 KiB/s), 11.1 KiB out (1.52 KiB/s)
Total Time : 7s.
Job ID : Job_2023-11-16_03.39.36.814557_indexdelete
Log Path : /opt/NetApp/xFiles/xcp/xcplogs/Job_2023-11-16_03.39.36.814557_indexdelete.log
STATUS : PASSED
[root@client1 linux]#