duc icon indicating copy to clipboard operation
duc copied to clipboard

Folder mounted with NFS4 are not indexed.

Open sty1103 opened this issue 1 year ago • 4 comments

Hello, I am developing a real-time monitoring system, and I am using duc to pre-index a directory to check the usage of the server.

General directories are indexed well, but network directories mounted with nfs4 are not indexed.

My execution environment is bellow.

  • OS: Ubuntu 20.04
  • duc Version: 1.4.3 options: cairo x11 ui tokyocabinet
  • mount info:
$ df -h /DATA

Filesystem           Size  Used Avail Use% Mounted on
xxx.xxx.xxx.xxx:/DATA 5.5T 1.4T 3.9T 27% /DATA

$ duc index /DATA

If i use the above command, it can be executed

$ duc info

However, When I use the above command, nothing is displayed.

It was the same even if I used the sudo command together.

How do I index an nfs4 directory?

sty1103 avatar Jan 19 '24 04:01 sty1103

Can you run the duc index command with --verbose --debug flags?

zevv avatar Jan 19 '24 07:01 zevv

It works! Thank you.

But how does it work? Can i use verbose, debug flag in crontab?

*/30 * * * * duc index --verbose --debug /DATA

sty1103 avatar Jan 19 '24 08:01 sty1103

Well, this was not supposed to solve your issue, it was just supposed to output verbose information during indexing to see what is happening so we can debug the problem.

Please retry with and without these arguments, the behavior of duc index should not change when these flags are passed, you should not need those flags in normal operation.

zevv avatar Jan 19 '24 08:01 zevv

"JeongHyeonjun" == JeongHyeonjun @.***> writes:

It works! Thank you. But how does it work? Can i use verbose, debug option in crontab?

*/30 * * * * duc index --verbose --debug /DATA

I wonder if your /DATA directory is automounted, and the first time duc comes along, it's not mounted, and when you run it again, it is mounted.

But we'd need to see more details to really understand what's happening. One quick dumb hack might be to have your cronjob be a script which does:

#!/bin/bash

ls /DATA > /dev/null duc index /DATA

But as Ico says, it's hard to know. Please post some of the outout (not all!) of the --debug and --verbose so we can look at what's going on.

John

l8gravely avatar Jan 31 '24 18:01 l8gravely